]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/psr: Add intel_psr_needs_block_dc_vblank for blocking dc entry
authorJouni Högander <jouni.hogander@intel.com>
Fri, 20 Sep 2024 06:23:39 +0000 (09:23 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 23 Sep 2024 04:07:14 +0000 (07:07 +0300)
commit1007610ece094625deb259c3077b18fa9d992d95
tree50e9782862829603f0dd2773d09f3d1e721067c0
parent66b281fd8e599ddd7a00a89dc0dcfb7a13411441
drm/i915/psr: Add intel_psr_needs_block_dc_vblank for blocking dc entry

We need to block DC6 entry in case of Panel Replay as enabling VBI doesn't
prevent it in case of Panel Replay. Panel Replay switches main link off on
DC entry. This means vblank interrupts are not fired and is a problem if
user-space is polling for vblank events. For this purpose add new function
to query need for dc entry blocking on.

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/20240920062340.1333777-2-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h