Skip to content

Commit

Permalink
drm/radeon/kms: disable D1VGA and D2VGA if enabled
Browse files Browse the repository at this point in the history
Once kms is enabled we don't need these, and it causes a problem
with the Lenovo W500 ACPI brightness implementation, it hangs
in a loop inside an SMI.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Nov 3, 2009
1 parent d6f2893 commit 8a9832e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/radeon/rv515.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ int rv515_mc_wait_for_idle(struct radeon_device *rdev)

void rv515_vga_render_disable(struct radeon_device *rdev)
{
WREG32(R_000330_D1VGA_CONTROL, 0);
WREG32(R_000338_D2VGA_CONTROL, 0);
WREG32(R_000300_VGA_RENDER_CONTROL,
RREG32(R_000300_VGA_RENDER_CONTROL) & C_000300_VGA_VSTATUS_CNTL);
}
Expand Down

0 comments on commit 8a9832e

Please sign in to comment.