]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Ensure we have "Frame Change" event in DSB commit
authorJouni Högander <jouni.hogander@intel.com>
Thu, 13 Feb 2025 06:48:03 +0000 (08:48 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Fri, 14 Feb 2025 06:37:50 +0000 (08:37 +0200)
commitac76a51ddb5efb875c7c9ca87e002ff0aa4f63d1
treeda6ecaf3ec97311267cc24e557802b11c242c7c2
parentfa27fa48061afda49f939fcac6c480f0c4c1fcfd
drm/i915/display: Ensure we have "Frame Change" event in DSB commit

We may have commit which doesn't have any non-arming plane register
writes. In that case there aren't "Frame Change" event before DSB vblank
evasion which hangs as PIPEDSL register is reading as 0 when PSR state is
SRDENT(PSR1) or DEEP_SLEEP(PSR2). Handle this by ensuring "Frame Change"
event at the begin of DSB commit if using PSR/PR.

v3: dsb_commit as a first parameter
v2: use intel_psr_trigger_frame_change_event

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213064804.2077127-13-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display.c