Skip to content

Commit 5785e53

Browse files
agd5fairlied
authored andcommitted
drm/radeon/kms: pll tweaks for r7xx
Prefer min m to max p only on pre-r7xx asics. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=36197 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent be761d5 commit 5785e53

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/gpu/drm/radeon/atombios_crtc.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,7 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc,
532532
else
533533
pll->flags |= RADEON_PLL_PREFER_LOW_REF_DIV;
534534

535-
if ((rdev->family == CHIP_R600) ||
536-
(rdev->family == CHIP_RV610) ||
537-
(rdev->family == CHIP_RV630) ||
538-
(rdev->family == CHIP_RV670))
535+
if (rdev->family < CHIP_RV770)
539536
pll->flags |= RADEON_PLL_PREFER_MINM_OVER_MAXP;
540537
} else {
541538
pll->flags |= RADEON_PLL_LEGACY;
@@ -565,7 +562,6 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc,
565562
if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) {
566563
if (ss_enabled) {
567564
if (ss->refdiv) {
568-
pll->flags |= RADEON_PLL_PREFER_MINM_OVER_MAXP;
569565
pll->flags |= RADEON_PLL_USE_REF_DIV;
570566
pll->reference_div = ss->refdiv;
571567
if (ASIC_IS_AVIVO(rdev))

0 commit comments

Comments
 (0)