[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1288089033.3169.73.camel@edumazet-laptop>
Date: Tue, 26 Oct 2010 12:30:33 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Amit Salecha <amit.salecha@...gic.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
Le mardi 26 octobre 2010 à 05:04 -0500, Amit Salecha a écrit :
> Is it ? I am not aware about such calculation.
Yes it is
> 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 ;)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists