[PATCH 2/8] drm/i915/display: Get VRR compute config before get_transcoder_timing

Ankit Nautiyal ankit.k.nautiyal at intel.com
Tue Jun 25 17:22:50 UTC 2024


For fixed refresh rate with VRR framework, we need to fill
adjusted_mode->crtc_vtotal from VMAX register in intel_vrr_get_config,
that can be used in intel_get_transcoder_timings.

Call intel_vrr_get_config before intel_get_transcoder_timings.
Subsequent changes will move filling of crtc_vtotal in vrr compute
config step.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index c2c388212e2e..bb582f5c35a7 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -3844,13 +3844,13 @@ static bool hsw_get_pipe_config(struct intel_crtc *crtc,
 	intel_joiner_get_config(pipe_config);
 	intel_dsc_get_config(pipe_config);
 
+	if (HAS_VRR(dev_priv) && !transcoder_is_dsi(pipe_config->cpu_transcoder))
+		intel_vrr_get_config(pipe_config);
+
 	if (!transcoder_is_dsi(pipe_config->cpu_transcoder) ||
 	    DISPLAY_VER(dev_priv) >= 11)
 		intel_get_transcoder_timings(crtc, pipe_config);
 
-	if (HAS_VRR(dev_priv) && !transcoder_is_dsi(pipe_config->cpu_transcoder))
-		intel_vrr_get_config(pipe_config);
-
 	intel_get_pipe_src_size(crtc, pipe_config);
 
 	if (IS_HASWELL(dev_priv)) {
-- 
2.40.1



More information about the Intel-gfx-trybot mailing list