This allows us to bail if we can't support the requested
setup from a PPLL perspective.  Prevents broken setups
from being attempted.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
                return false;
        if (!atombios_crtc_prepare_pll(crtc, adjusted_mode))
                return false;
+       /* pick pll */
+       radeon_crtc->pll_id = radeon_atom_pick_pll(crtc);
+       /* if we can't get a PPLL for a non-DP encoder, fail */
+       if ((radeon_crtc->pll_id == ATOM_PPLL_INVALID) &&
+           !ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder)))
+               return false;
+
        return true;
 }
 
        struct radeon_device *rdev = dev->dev_private;
 
        radeon_crtc->in_mode_set = true;
-       /* pick pll */
-       radeon_crtc->pll_id = radeon_atom_pick_pll(crtc);
 
        /* disable crtc pair power gating before programming */
        if (ASIC_IS_DCE6(rdev))