From: Jerome Glisse Date: Mon, 30 Nov 2009 16:47:59 +0000 (+0100) Subject: drm/radeon/kms: Disable agp only if we are dealing with an AGP GPU X-Git-Tag: v3.0~6071^2~85^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30256a3f6b646f6c6ab7276a97b40792faac5f1d;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 41bb76f..db0835d 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, return r; } - if (radeon_agpmode == -1) { + if (rdev->flags & RADEON_IS_AGP && radeon_agpmode == -1) { radeon_agp_disable(rdev); }