diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-11-30 11:47:59 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-01 20:37:14 -0500 |
commit | 30256a3f6b646f6c6ab7276a97b40792faac5f1d (patch) | |
tree | 4d830df9ffce519eb4b37767576972cae1b6a09d | |
parent | ec51efa9b2b8ff10b535a853c293e85bada886e4 (diff) |
drm/radeon/kms: Disable agp only if we are dealing with an AGP GPU
On IGP if you pass option agpmode=-1 you would overwrite the set_page
function callback with improper function which endup in non functioning
hw. This patch will disable agp when giving agpmode=-1 parameter only
if we are dealing with an AGP GPU.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 41bb76fbe734..db0835d9a537 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c | |||
@@ -553,7 +553,7 @@ int radeon_device_init(struct radeon_device *rdev, | |||
553 | return r; | 553 | return r; |
554 | } | 554 | } |
555 | 555 | ||
556 | if (radeon_agpmode == -1) { | 556 | if (rdev->flags & RADEON_IS_AGP && radeon_agpmode == -1) { |
557 | radeon_agp_disable(rdev); | 557 | radeon_agp_disable(rdev); |
558 | } | 558 | } |
559 | 559 | ||