]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Ensure enough lines between delayed VBlank and VBlank
authorJouni Högander <jouni.hogander@intel.com>
Wed, 23 Apr 2025 10:27:03 +0000 (13:27 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 28 Apr 2025 09:11:17 +0000 (12:11 +0300)
commit2930db123f510651752b50db2d30d60fc965a472
treec27f4dcbe6145059520064a2ea8a966947dd71b5
parent8ff377ae3100791aeb9ae801c0fea7e9558dee8c
drm/i915/display: Ensure enough lines between delayed VBlank and VBlank

To deterministically capture the transition of the state machine going from
SRDOFFACK to IDLE, the delayed V. Blank should be at least one line after
the non-delayed V. Blank.

Ensure this by adding new interface into intel_psr to query number of lines
needed for vblank delay and call it from intel_crtc_vblank_delay.

v3: use existing intel_crtc_vblank_delay mechanism
v2: apply limits only when needed (VRR TG vs. Legacy TG)

Bspec: 69897
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://lore.kernel.org/r/20250423102704.1368310-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h