[PATCH 1/2] drm/radeon: check that we have a clock before PLL setup

Alex Deucher alexdeucher at gmail.com
Mon May 5 12:52:11 PDT 2014


On Sat, May 3, 2014 at 11:25 AM, Christian König
<deathsimple at vodafone.de> wrote:
> From: Christian König <christian.koenig at amd.com>
>
> Partially fixes: https://bugzilla.kernel.org/show_bug.cgi?id=75211
>
> Signed-off-by: Christian König <christian.koenig at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/radeon/atombios_crtc.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
> index 6da10d2..c31c12b 100644
> --- a/drivers/gpu/drm/radeon/atombios_crtc.c
> +++ b/drivers/gpu/drm/radeon/atombios_crtc.c
> @@ -1902,6 +1902,9 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc,
>             (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))
>                 is_tvcv = true;
>
> +       if (!radeon_crtc->adjusted_clock)
> +               return -EINVAL;
> +
>         atombios_crtc_set_pll(crtc, adjusted_mode);
>
>         if (ASIC_IS_DCE4(rdev))
> --
> 1.9.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list