drm/radeon: allocate PPLLs from low to high
Subsystems (2)
PATCH 1/1 drm/radeon: allocate PPLLs from low to high
From: Alex Deucher <[email protected]>
The order shouldn't matter, but there have been problems reported on certain older asics. This behaves more like the original code before the PPLL allocation rework.
Signed-off-by Alex Deucher <[email protected]>
Cc Markus Trippelsdorf <[email protected]>
--- drivers/gpu/drm/radeon/atombios_crtc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/radeon/atombios_crtc.c +4 -4
@@ -1690,10 +1690,10 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc) }/* all other cases */ pll_in_use =radeon_get_pll_use_mask (crtc); -if (!(pll_in_use & (1 <<ATOM_PPLL2 ))) -return ATOM_PPLL2 ;if (!(pll_in_use & (1 <<ATOM_PPLL1 )))return ATOM_PPLL1 ; +if (!(pll_in_use & (1 <<ATOM_PPLL2 ))) +return ATOM_PPLL2 ;DRM_ERROR ("unable to allocate a PPLL\n" );return ATOM_PPLL_INVALID ; }else {
@@ -1715,10 +1715,10 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc) }/* all other cases */ pll_in_use =radeon_get_pll_use_mask (crtc); -if (!(pll_in_use & (1 <<ATOM_PPLL2 ))) -return ATOM_PPLL2 ;if (!(pll_in_use & (1 <<ATOM_PPLL1 )))return ATOM_PPLL1 ; +if (!(pll_in_use & (1 <<ATOM_PPLL2 ))) +return ATOM_PPLL2 ;DRM_ERROR ("unable to allocate a PPLL\n" );return ATOM_PPLL_INVALID ; }else {
Signature · 1 line
1.7.7.5