diff options
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 31b1f4bf133e..cc695d05bd2b 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c | |||
@@ -750,14 +750,15 @@ int radeon_device_init(struct radeon_device *rdev, | |||
750 | 750 | ||
751 | /* set DMA mask + need_dma32 flags. | 751 | /* set DMA mask + need_dma32 flags. |
752 | * PCIE - can handle 40-bits. | 752 | * PCIE - can handle 40-bits. |
753 | * IGP - can handle 40-bits (in theory) | 753 | * IGP - can handle 40-bits |
754 | * AGP - generally dma32 is safest | 754 | * AGP - generally dma32 is safest |
755 | * PCI - only dma32 | 755 | * PCI - dma32 for legacy pci gart, 40 bits on newer asics |
756 | */ | 756 | */ |
757 | rdev->need_dma32 = false; | 757 | rdev->need_dma32 = false; |
758 | if (rdev->flags & RADEON_IS_AGP) | 758 | if (rdev->flags & RADEON_IS_AGP) |
759 | rdev->need_dma32 = true; | 759 | rdev->need_dma32 = true; |
760 | if (rdev->flags & RADEON_IS_PCI) | 760 | if ((rdev->flags & RADEON_IS_PCI) && |
761 | (rdev->family < CHIP_RS400)) | ||
761 | rdev->need_dma32 = true; | 762 | rdev->need_dma32 = true; |
762 | 763 | ||
763 | dma_bits = rdev->need_dma32 ? 32 : 40; | 764 | dma_bits = rdev->need_dma32 ? 32 : 40; |