Skip to content

Commit

Permalink
drm/radeon/kms: fix DVO setup on some r4xx chips
Browse files Browse the repository at this point in the history
Some r4xx chips have the wrong frev in the
DVOEncoderControl table.  It should always be 1
on r4xx.  Fixes modesetting on DVO on r4xx chips
with the bad frev.

Reported by twied on #radeon.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Apr 10, 2012
1 parent 6587eb8 commit afceb93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/radeon/atombios_encoders.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ atombios_dvo_setup(struct drm_encoder *encoder, int action)
if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev))
return;

/* some R4xx chips have the wrong frev */
if (rdev->family <= CHIP_RV410)
frev = 1;

switch (frev) {
case 1:
switch (crev) {
Expand Down

0 comments on commit afceb93

Please sign in to comment.