]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/dma: pci_set_dma_mask() shouldn't fail if mask fits in RAM
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 10 Aug 2009 06:36:38 +0000 (16:36 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 10 Aug 2009 06:36:38 +0000 (16:36 +1000)
commitfc37d3b56599086b49f0c57f5ef3af46397a1388
treeb32c0e3c4143781e81fffcdc02cdd38a1a5279d9
parent9a2a4e72e22bb04d4ec6ea465ee7816c4a338d78
powerpc/dma: pci_set_dma_mask() shouldn't fail if mask fits in RAM

On an iMac G5, the b43 driver is failing to initialise because trying to
set the dma mask to 30-bit fails. Even though there's only 512MiB of RAM
in the machine anyway:
https://bugzilla.redhat.com/show_bug.cgi?id=514787

We should probably let it succeed if the available RAM in the system
doesn't exceed the requested limit.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/dma.c