]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Avoid use of VTOTAL.Vtotal bits
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 27 Mar 2025 14:46:29 +0000 (20:16 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 31 Mar 2025 03:58:28 +0000 (09:28 +0530)
commit94f608992f8cabe9cc2e318d81b2beac87802cba
tree8ed73165ae0c65b82842b819b135593fb91650ce
parent7a6bf54c5f00b4a2d7a57e0733fd09216d9ea277
drm/i915/display: Avoid use of VTOTAL.Vtotal bits

For platforms that always use VRR Timing Generator, the VTOTAL.Vtotal
bits are not required. Since the support for these bits is going to
be deprecated in upcoming platforms, avoid writing these bits for the
platforms that do not use legacy Timing Generator.

Since for these platforms vrr.vmin is always filled with crtc_vtotal,
use TRAN_VRR_VMIN to get the vtotal for adjusted_mode.

v2: Avoid having a helper for manipulating VTOTAL register, and instead
just make the change where required. (Ville)
v3: Set crtc_vtotal instead of working with the bits directly (Ville).
Use intel_vrr_vmin_vtotal() to set the vtotal during readout. (Ville)
v4: Keep the reading part unchanged, and let it get overwritten for
cases where we use vrr.vmin. (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250327144629.648306-3-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_vrr.c