[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <99737F4847ED0A48AECC9F4A1974A4B80F871A8182@MNEXMB2.qlogic.org>
Date: Tue, 26 Oct 2010 05:52:13 -0500
From: Amit Salecha <amit.salecha@...gic.com>
To: Eric Dumazet <eric.dumazet@...il.com>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Ameen Rahman <ameen.rahman@...gic.com>,
Anirban Chakraborty <anirban.chakraborty@...gic.com>
Subject: RE: [PATCH] qlcnic: dma address align check
> > Is pci_alloc_consistent guarantee to give PAGE align dma address ?
>
> I believe so
>
> By the way, you should use dma_alloc_coherent() instead of
> pci_alloc_consistent() so that you can use GFP_KERNEL allocations
> instead of GFP_ATOMIC, it might help in low memory conditions (if you
> dont hold a spinlock at this point)
>
>
> If TX_DESC_RINGSIZE(tx_ring) is not a power of two, then yes you could
> probably add 64 bytes and avoid allocating a full page only for the u32
> field ;)
>
>
TX_DESC_RINGSIZE is power of two.
If pci_alloc_consistent guarantee to give PAGE align dma address, then this patch is not required.
>
Powered by blists - more mailing lists