Re: Problem with DMA on x86_64 with 3 GB RAM

From: Alan
Date: Tue Nov 21 2006 - 06:27:06 EST


> Confused. As in, once the bcm43xx module initcall happens? Or without bcm43xx
> at all? If the former, is the behavior different when built as a module versus
> built-in? (ie, are there ordering problems.)

The pci_dma code on the x86_64 platform is broken for the case of PCI
devices with < 32bit DMA. Has been forever, this is a problem with
various devices, although most of the others are obsolete except for the
bcm43xx and b44 (the latter has hacks to work around the x86-64
brokenness).

At the very least the pci_set_dma_mask should error in this situation or
switch to using GFP_DMA (24bit) memory spaces. Having it error isn't the
whole solution as you still need some way to handle the "what do I do
next".

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/