Skip to content

Commit

Permalink
drm/radeon/kms: Disable agp only if we are dealing with an AGP GPU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerome Glisse authored and Dave Airlie committed Dec 2, 2009
1 parent ec51efa commit 30256a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 30256a3

Please sign in to comment.