drm/radeon: check that we have a clock before PLL setup
Subsystems (2)
PATCH 1/2 drm/radeon: check that we have a clock before PLL setup
From: Christian König <[email protected]>
Partially fixes: https://bugzilla.kernel.org/show_bug.cgi?id=75211
--- drivers/gpu/drm/radeon/atombios_crtc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/radeon/atombios_crtc.c +3 -0
@@ -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))
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/radeon: lower the ref * post PLL maximum
From: Christian König <[email protected]>
--- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_display.c +1 -1
@@ -862,7 +862,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, unsigned *fb_div, unsigned *ref_div) {/* limit reference * post divider to a maximum */ - ref_div_max =min (210 / post_div, ref_div_max); + ref_div_max =min (128 / post_div, ref_div_max);/* get matching reference and feedback divider */ *ref_div =min (max (DIV_ROUND_CLOSEST (den, post_div),1u ), ref_div_max);
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/radeon: lower the ref * post PLL maximum
Quoted 5 lines · Christian König
From: Christian König <[email protected]>
Signed-off-by Christian König <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_display.c +1
-2@@ -862,7 +862,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, unsigned *fb_div, unsigned *ref_div) {/* limit reference * post divider to a maximum */ - ref_div_max =min (210 / post_div, ref_div_max); + ref_div_max =min (128 / post_div, ref_div_max);/* get matching reference and feedback divider */ *ref_div =min (max (DIV_ROUND_CLOSEST (den, post_div),1u ), ref_div_max); --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Christian König
From: Christian König <[email protected]>
Partially fixes: https://bugzilla.kernel.org/show_bug.cgi?id=75211
Signed-off-by Christian König <[email protected]>
Quoted 21 lines
--- drivers/gpu/drm/radeon/atombios_crtc.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/radeon/atombios_crtc.c +3
-1@@ -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
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel