mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question about dma_alloc_coherent and iommu
@ 2006-05-26 18:55 Robert Walsh
  0 siblings, 0 replies; only message in thread
From: Robert Walsh @ 2006-05-26 18:55 UTC (permalink / raw)
  To: Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

Hi there,

Our driver (the ipath driver in drivers/infiniband) uses
dma_alloc_coherent to allocate buffers that our device will DMA into.
We use a 64-bit DMA mask.  Although we don't set a consistent DMA mask,
it doesn't seem to matter whether we do or not for the following
problem.

Everything works fine on 2.6.16: when the device tells us it's DMA'd
into a buffer, the data is there and everyone is happy.  It also works
fine on kernels from 2.6.9 through 2.6.15, but only as long as there is
4GB or less of memory on the machine.  On our machines with > 4GB
memory, the buffers do not appear to have had anything DMA'd into them.

If we use "iommu=off" on the kernel boot line, the problem goes away and
the data starts appearing.

Has anyone seen this behaviour on other devices?  Are we missing
something in the device setup, maybe?  As I mentioned, setting a
consistent DMA mask doesn't help, no matter whether we set it to 64-bits
or 32-bits.  Setting the regular DMA mask to 32-bits doesn't help
either: the problem still crops up.

Regards,
 Robert.

-- 
Robert Walsh
Amalgamated Durables, Inc.  -  "We don't make the things you buy."
Email: rjwalsh@durables.org

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-26 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-26 18:55 Question about dma_alloc_coherent and iommu Robert Walsh

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

all inboxes | Powered by JetHome®