aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-01-27 18:29:35 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 16:48:02 -0500
commitb77d17778310cbe015bd1978a48b1e418b9370d1 (patch)
treefe901ea1cca5ca763a136673eb7d3a696bf4cf95
parent3ca2c5c6827a5064c175010ecd8fdcf10b1b5db2 (diff)
drm/radeon/DCE4+: clear bios scratch dpms bit (v2)
commit 6802d4bad83f50081b2788698570218aaff8d10e upstream. The BlankCrtc table in some DCE8 boards has some logic shortcuts for the vbios when this bit is set. Clear it for driver use. v2: fix typo Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73420 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 239a4074f122..efb06e34aed7 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -2926,6 +2926,10 @@ void radeon_atom_initialize_bios_scratch_regs(struct drm_device *dev)
2926 /* tell the bios not to handle mode switching */ 2926 /* tell the bios not to handle mode switching */
2927 bios_6_scratch |= ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH; 2927 bios_6_scratch |= ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH;
2928 2928
2929 /* clear the vbios dpms state */
2930 if (ASIC_IS_DCE4(rdev))
2931 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE;
2932
2929 if (rdev->family >= CHIP_R600) { 2933 if (rdev->family >= CHIP_R600) {
2930 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); 2934 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch);
2931 WREG32(R600_BIOS_6_SCRATCH, bios_6_scratch); 2935 WREG32(R600_BIOS_6_SCRATCH, bios_6_scratch);