diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-04-04 01:05:41 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-04-10 13:27:46 +0400 |
commit | afceb9319f21b18ee3bc15ee9a5f92e18ef8a8c9 (patch) | |
tree | 3e874864cea99e260b48f5b0717317510e7cdf15 /drivers/gpu | |
parent | 6587eb82617f7913c13e750e73e13fa9c829863c (diff) | |
download | linux-afceb9319f21b18ee3bc15ee9a5f92e18ef8a8c9.tar.xz |
drm/radeon/kms: fix DVO setup on some r4xx chips
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_encoders.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index e607c4d7dd98..2d39f9977e00 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -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) { |