diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-09-09 10:54:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-01 12:17:47 -0400 |
commit | abc1e807c2bd7cd5b1aeedca2c4bb41eb786828c (patch) | |
tree | 3418c378e6cffb7b281dbb823d5173dd15044b8a /drivers/gpu/drm/radeon | |
parent | 39bad38d5dddaaf1296a1e3f0bd75ee952521afc (diff) |
drm/radeon/atom: workaround vbios bug in transmitter table on rs880 (v2)
commit 91f3a6aaf280294b07c05dfe606e6c27b7ba3c72 upstream.
The OUTPUT_ENABLE action jumps past the point in the coder where
the data_offset is set on certain rs780 cards. This worked
previously because the OUTPUT_ENABLE action is always called
immediately after the ENABLE action so the data_offset remained
set. In 6f8bbaf568c7f2c497558bfd04654c0b9841ad57
(drm/radeon/atom: initialize more atom interpretor elements to 0),
we explictly reset data_offset to 0 between atom calls which then
caused this to fail. The fix is to just skip calling the
OUTPUT_ENABLE action on the problematic chipsets. The ENABLE
action does the same thing and more. Ultimately, we could
probably drop the OUTPUT_ENABLE action all together on DCE3
asics.
fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=60791
v2: only rs880 seems to be affected
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_encoders.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 4120d355cadd..c272d8832605 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c | |||
@@ -1636,8 +1636,12 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode) | |||
1636 | atombios_dig_encoder_setup(encoder, ATOM_ENABLE, 0); | 1636 | atombios_dig_encoder_setup(encoder, ATOM_ENABLE, 0); |
1637 | atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_SETUP, 0, 0); | 1637 | atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_SETUP, 0, 0); |
1638 | atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE, 0, 0); | 1638 | atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE, 0, 0); |
1639 | /* some early dce3.2 boards have a bug in their transmitter control table */ | 1639 | /* some dce3.x boards have a bug in their transmitter control table. |
1640 | if ((rdev->family != CHIP_RV710) && (rdev->family != CHIP_RV730)) | 1640 | * ACTION_ENABLE_OUTPUT can probably be dropped since ACTION_ENABLE |
1641 | * does the same thing and more. | ||
1642 | */ | ||
1643 | if ((rdev->family != CHIP_RV710) && (rdev->family != CHIP_RV730) && | ||
1644 | (rdev->family != CHIP_RS880)) | ||
1641 | atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT, 0, 0); | 1645 | atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT, 0, 0); |
1642 | } | 1646 | } |
1643 | if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) { | 1647 | if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) { |