aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_device.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-03-21 14:02:25 -0400
committerDave Airlie <airlied@redhat.com>2010-03-30 23:11:04 -0400
commitf95df9ca6896978108201a77422a1ae2cdc595ec (patch)
tree7968e3fa83ee28b1f7232798c051d19defd3009c /drivers/gpu/drm/radeon/radeon_device.c
parentf47299c55a837af1727bc601e1fc0fa33adaeda5 (diff)
drm/radeon/kms: never treat rs4xx as AGP
RS4xx+ IGP chips use an internal gart, however, some of them have the agp cap bits set in their pci configs. Make sure to clear the AGP flag as AGP will not work with them. Should fix fdo bug 27225 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index 6bedc2117f7f..60ec47b71642 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -562,6 +562,14 @@ int radeon_device_init(struct radeon_device *rdev,
562 return r; 562 return r;
563 radeon_check_arguments(rdev); 563 radeon_check_arguments(rdev);
564 564
565 /* all of the newer IGP chips have an internal gart
566 * However some rs4xx report as AGP, so remove that here.
567 */
568 if ((rdev->family >= CHIP_RS400) &&
569 (rdev->flags & RADEON_IS_IGP)) {
570 rdev->flags &= ~RADEON_IS_AGP;
571 }
572
565 if (rdev->flags & RADEON_IS_AGP && radeon_agpmode == -1) { 573 if (rdev->flags & RADEON_IS_AGP && radeon_agpmode == -1) {
566 radeon_agp_disable(rdev); 574 radeon_agp_disable(rdev);
567 } 575 }