public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* DMA descriptor alignment
@ 2007-11-12  6:15 Larry Finger
  2007-11-13 17:00 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Larry Finger @ 2007-11-12  6:15 UTC (permalink / raw)
  To: LKML

For those variants of BCM43xx cards that use 64-bit DMA, there is a requirement that all descriptor
rings must be aligned on an 8K boundary and must fit within an 8K page. On the x86_64 architecture
where the page size is 4K, I was getting addresses like 0x67AF000 when using dma_alloc_coherent
calls. From the description of the dma_pool_create and dma_pool_allocate routines, I thought they
would fix my problems; however, even with a dma_pool_create(name, dev, 8192, 8192, 8192) call, I'm
still getting 4K rather than 8K alignment, which results in DMA errors.

Is there a bug in these routines, am I using them incorrectly, or do I have a misunderstanding of
what it takes to get this kind of alignment?

Thanks,

Larry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-14 14:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12  6:15 DMA descriptor alignment Larry Finger
2007-11-13 17:00 ` Andi Kleen
2007-11-14 14:41   ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox