This is a note to let you know that I've just added the patch titled drm/ingenic: Fix pixclock rate for 24-bit serial panels to the 5.13-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-ingenic-fix-pixclock-rate-for-24-bit-serial-panels.patch and it can be found in the queue-5.13 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 60a6b73dd821e98fe958b2a83393ccd724b306b1 Mon Sep 17 00:00:00 2001 From: Paul Cercueil <paul@xxxxxxxxxxxxxxx> Date: Tue, 23 Mar 2021 14:40:08 +0000 Subject: drm/ingenic: Fix pixclock rate for 24-bit serial panels From: Paul Cercueil <paul@xxxxxxxxxxxxxxx> commit 60a6b73dd821e98fe958b2a83393ccd724b306b1 upstream. When using a 24-bit panel on a 8-bit serial bus, the pixel clock requested by the panel has to be multiplied by 3, since the subpixels are shifted sequentially. The code (in ingenic_drm_encoder_atomic_check) already computed crtc_state->adjusted_mode->crtc_clock accordingly, but clk_set_rate() used crtc_state->adjusted_mode->clock instead. Fixes: 28ab7d35b6e0 ("drm/ingenic: Properly compute timings when using a 3x8-bit panel") Cc: stable@xxxxxxxxxxxxxxx # v5.10 Signed-off-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx> Tested-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx> # CI20/jz4780 (HDMI) and Alpha400/jz4730 (LCD) Acked-by: Thomas Zimmermann <tzimmermann@xxxxxxx> Link: https://patchwork.freedesktop.org/patch/msgid/20210323144008.166248-1-paul@xxxxxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c @@ -342,7 +342,7 @@ static void ingenic_drm_crtc_atomic_flus if (priv->update_clk_rate) { mutex_lock(&priv->clk_mutex); clk_set_rate(priv->pix_clk, - crtc_state->adjusted_mode.clock * 1000); + crtc_state->adjusted_mode.crtc_clock * 1000); priv->update_clk_rate = false; mutex_unlock(&priv->clk_mutex); } Patches currently in stable-queue which might be from paul@xxxxxxxxxxxxxxx are queue-5.13/drm-ingenic-switch-ipu-plane-to-type-overlay.patch queue-5.13/drm-ingenic-fix-pixclock-rate-for-24-bit-serial-panels.patch queue-5.13/mips-cpu-probe-fix-fpu-detection-on-ingenic-jz4760-b.patch queue-5.13/mips-mt-extensions-are-not-available-on-mips32r1.patch queue-5.13/mips-ingenic-select-cpu_supports_cpufreq-mips_extern.patch queue-5.13/mips-ci20-reduce-clocksource-to-750-khz.patch