]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/psr: Compute PSR entry_setup_frames into intel_crtc_state
authorJouni Högander <jouni.hogander@intel.com>
Thu, 12 Mar 2026 08:37:10 +0000 (10:37 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 17 Mar 2026 09:17:46 +0000 (11:17 +0200)
commit7caac659a837af9fd4cad85be851982b88859484
tree8cbf4c62f2ab9c7f5619ed39be342b745b1c240e
parentb0a4dba7b623aa7cbc9efcc56b4af2ec8b274f3e
drm/i915/psr: Compute PSR entry_setup_frames into intel_crtc_state

PSR entry_setup_frames is currently computed directly into struct
intel_dp:intel_psr:entry_setup_frames. This causes a problem if mode change
gets rejected after PSR compute config: Psr_entry_setup_frames computed for
this rejected state is in intel_dp:intel_psr:entry_setup_frame. Fix this by
computing it into intel_crtc_state and copy the value into
intel_dp:intel_psr:entry_setup_frames on PSR enable.

Fixes: 2b981d57e480 ("drm/i915/display: Support PSR entry VSC packet to be transmitted one frame earlier")
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: <stable@vger.kernel.org> # v6.8+
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260312083710.1593781-3-jouni.hogander@intel.com
(cherry picked from commit 8c229b4aa00262c13787982e998c61c0783285e0)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c