From d594991e698601c36b6b8f7d20b23b3739c1b13d Mon Sep 17 00:00:00 2001 From: Amine Najahi Date: Tue, 13 Apr 2021 17:17:33 -0400 Subject: [PATCH] disp: msm: dsi: force VRR on RFI default value setting Currently on video mode panel, when the RFI bit clock rate is set back to the default rate, the driver is not detecting that a VRR operation is necessary due to unchanged porches value. This change is forcing a VRR update on video mode panel whenever the RFI bit clock rate is changed. Change-Id: I16520b6ca1909f878bff1bb97472b15fe2a3d13b Signed-off-by: Amine Najahi --- msm/dsi/dsi_display.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 299632cefa..289a4b1c29 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -7274,6 +7274,15 @@ int dsi_display_validate_mode_change(struct dsi_display *display, goto error; } + /** + * Set VRR flag whenever there is a dynamic clock + * change on video mode panel as dynamic refresh is + * always required when fps compensation is enabled. + */ + if ((display->config.panel_mode == DSI_OP_VIDEO_MODE) && + dyn_clk_caps->maintain_const_fps) + adj_mode->dsi_mode_flags |= DSI_MODE_FLAG_VRR; + adj_mode->dsi_mode_flags |= DSI_MODE_FLAG_DYN_CLK; SDE_EVT32(SDE_EVTLOG_FUNC_CASE2,