Thread (3 messages) flat view 3 messages, 2 authors, 2012-12-04

Re: [PATCH] net/macb: Use dmapool to align descriptors on 64bits

From: Nicolas Ferre <hidden>
Date: 2012-12-04 17:18:57
Also in: linux-arm-kernel, lkml

On 12/03/2012 03:01 PM, Ben Hutchings :
On Mon, 2012-12-03 at 13:15 +0100, Nicolas Ferre wrote:
quoted
Depending on datapath, some revisions of GEM need
64bits aligned descriptors. Use dmapool to allocate
these descriptors.
Note that different size between RX and TX rings
leads to the creation of two pools.

Signed-off-by: Nicolas Ferre <redacted>
[...]

dma_alloc_coherent() allocates whole pages, which I think is quite
enough alignment.  You can't save memory by doing this, since each pool
needs at least one page.  So what is this change meant to achieve?
Well... I guess we can forget this patch then ;-)

Thanks, best regards,
-- 
Nicolas Ferre
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help