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

Ankit Nautiyal ankit.k.nautiyal at intel.com
Wed Apr 17 14:52:17 UTC 2024


With VRR we do not require reading/Writing VTOTAL register.
To avoid reading VTOTAL register for with VRR, 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 for this.
Subsequent changes will move filling of crtc_vtotal/vdisplay 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 c1d8f08814ec..2e46efba3376 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -3822,13 +3822,13 @@ static bool hsw_get_pipe_config(struct intel_crtc *crtc,
 	intel_bigjoiner_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