diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-03-08 17:10:41 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-03-14 19:57:12 -0400 |
commit | 267364ac17f6474c69b03034340f769b22f46105 (patch) | |
tree | 8b565b8691fd8621b6666b8b22b72e703843b11b /drivers/gpu/drm/radeon/atombios_crtc.c | |
parent | 86cb2bbfda2cf402aee46779ee90bbb7d915482b (diff) |
drm/radeon/kms: further spread spectrum fixes
Adjust modeset ordering to fix spread spectrum.
The spread spectrum command table relies on the
crtc routing to already be set in order to work
properly on some asics.
Should fix fdo bug 25741.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_crtc.c')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index a8cd637d92fa..7c30e2e74c85 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c | |||
@@ -1127,9 +1127,6 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc, | |||
1127 | 1127 | ||
1128 | /* TODO color tiling */ | 1128 | /* TODO color tiling */ |
1129 | 1129 | ||
1130 | /* pick pll */ | ||
1131 | radeon_crtc->pll_id = radeon_atom_pick_pll(crtc); | ||
1132 | |||
1133 | atombios_disable_ss(crtc); | 1130 | atombios_disable_ss(crtc); |
1134 | /* always set DCPLL */ | 1131 | /* always set DCPLL */ |
1135 | if (ASIC_IS_DCE4(rdev)) | 1132 | if (ASIC_IS_DCE4(rdev)) |
@@ -1164,6 +1161,11 @@ static bool atombios_crtc_mode_fixup(struct drm_crtc *crtc, | |||
1164 | 1161 | ||
1165 | static void atombios_crtc_prepare(struct drm_crtc *crtc) | 1162 | static void atombios_crtc_prepare(struct drm_crtc *crtc) |
1166 | { | 1163 | { |
1164 | struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); | ||
1165 | |||
1166 | /* pick pll */ | ||
1167 | radeon_crtc->pll_id = radeon_atom_pick_pll(crtc); | ||
1168 | |||
1167 | atombios_lock_crtc(crtc, ATOM_ENABLE); | 1169 | atombios_lock_crtc(crtc, ATOM_ENABLE); |
1168 | atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); | 1170 | atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); |
1169 | } | 1171 | } |