diff options
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 8a40c616b534..a6733cff1fb8 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c | |||
@@ -520,10 +520,13 @@ int radeon_device_init(struct radeon_device *rdev, | |||
520 | 520 | ||
521 | if (radeon_agpmode == -1) { | 521 | if (radeon_agpmode == -1) { |
522 | rdev->flags &= ~RADEON_IS_AGP; | 522 | rdev->flags &= ~RADEON_IS_AGP; |
523 | if (rdev->family >= CHIP_RV515 || | 523 | if (rdev->family >= CHIP_R600) { |
524 | rdev->family == CHIP_RV380 || | 524 | DRM_INFO("Forcing AGP to PCIE mode\n"); |
525 | rdev->family == CHIP_RV410 || | 525 | rdev->flags |= RADEON_IS_PCIE; |
526 | rdev->family == CHIP_R423) { | 526 | } else if (rdev->family >= CHIP_RV515 || |
527 | rdev->family == CHIP_RV380 || | ||
528 | rdev->family == CHIP_RV410 || | ||
529 | rdev->family == CHIP_R423) { | ||
527 | DRM_INFO("Forcing AGP to PCIE mode\n"); | 530 | DRM_INFO("Forcing AGP to PCIE mode\n"); |
528 | rdev->flags |= RADEON_IS_PCIE; | 531 | rdev->flags |= RADEON_IS_PCIE; |
529 | rdev->asic->gart_init = &rv370_pcie_gart_init; | 532 | rdev->asic->gart_init = &rv370_pcie_gart_init; |