drm/i915/vrr: Program EMP_AS_SDP_TL for DP AS SDP
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 5 May 2025 03:39:11 +0000 (09:09 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 19 May 2025 09:38:22 +0000 (15:08 +0530)
commite1123e617e510a3652fc707155adc43bb3fe4160
treedcb6ca06005ad0fd3d66a378730f20257cbe39ce
parent5666e27a50666755f8a842f53dd68d6983126ac4
drm/i915/vrr: Program EMP_AS_SDP_TL for DP AS SDP

The register EMP_AS_SDP_TL (MTL) was introduced for configuring the
double buffering point and transmission line for all
HDMI2.1 Extended Metadata Packets (VT-EMP for VRR, CVT-EMP for DSC etc).
This was also intended to be configured for DP to HDMI2.1 PCON to
support VRR.

From BMG and LNL+ onwards, this register was extended to Display Port
Adaptive Sync SDP to have a common register to configure double
buffering point and transmission line for both HDMI EMPs and DP VRR related
packets.

Currently, we do not support VRR for either native HDMI or via PCON.
However we need to configure this for DP SDP case. As per the spec,
program the register to set Vsync start as the double buffering point
for DP AS SDP.

v2:
-Make the helper more readable. (Jani)
-Add more information in commit message and comment.

Bspec:70984, 71197
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Tested-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/20250505033911.393628-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_vrr.c
drivers/gpu/drm/i915/display/intel_vrr_regs.h