]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon/kms: fix for radeon on systems >4GB without hardware iommu
authorDaniel Haid <d.haid@gogi.tv>
Wed, 8 Jun 2011 10:04:45 +0000 (20:04 +1000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:45 +0000 (11:20 -0400)
commit7ff994588123df4c041e897e058e3504501cfa86
tree6d93b4695bcf02629c16f77174d7b3ad6652f6ae
parent5377b39c6ffcd7e6541cdbc16ffd4ff278717738
drm/radeon/kms: fix for radeon on systems >4GB without hardware iommu

commit 62fff811d73095bd95579d72f558f03c78f7914a upstream.

On my x86_64 system with >4GB of ram and swiotlb instead of
a hardware iommu (because I have a VIA chipset), the call
to pci_set_dma_mask (see below) with 40bits returns an error.

But it seems that the radeon driver is designed to have
need_dma32 = true exactly if pci_set_dma_mask is called
with 32 bits and false if it is called with 40 bits.

I have read somewhere that the default are 32 bits. So if the
call fails I suppose that need_dma32 should be set to true.

And indeed the patch fixes the problem I have had before
and which I had described here:
http://choon.net/forum/read.php?21,106131,115940

Acked-by: Alex Deucher <alexdeucher@gmail.com>
cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/gpu/drm/radeon/radeon_device.c