login
Header Space

 
 

Re: [PATCH] firewire: fw-ohci: sync AT dma buffer before use

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jarod Wilson <jwilson@...>
Cc: <linux1394-devel@...>, <linux-kernel@...>
Date: Wednesday, March 12, 2008 - 6:35 pm

On Wed, 2008-03-12 at 17:43 -0400, Jarod Wilson wrote:

Two things:

1. The dma_sync should probably be done before the context_append
because the controller could in theory start reading the data as soon as
context_append is called right?

2. As an optimization, we should attempt to allocate the payload in the
lower 32-bits of physical memory, to prevent extra memcopies on x86_64.
I think this can be done by adding GFP_DMA32 to kmalloc where the
payload was allocated in fw-cdev.c.  There might be other places where
we would benefit from GFP_DMA32 also.  Of course, these optimizations
are probably better saved for another patch.

-David

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] firewire: fw-ohci: sync AT dma buffer before use, David Moore, (Wed Mar 12, 6:35 pm)
speck-geostationary