drm/i915/psr: Do not write registers/bits not applicable for panel replay
authorJouni Högander <jouni.hogander@intel.com>
Fri, 5 Apr 2024 11:36:00 +0000 (14:36 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 8 Apr 2024 07:28:54 +0000 (10:28 +0300)
commit251ff160c48282aaa7dce4d12b3829bba4d5e86b
tree6dd8ebc1166c5960f0dda1a60ae21b0a8de4c08c
parentb7fc3d12a1f3326fcf297f3edfad9fb1c833b754
drm/i915/psr: Do not write registers/bits not applicable for panel replay

Bspec is saying this
mask register: Only PSR_MASK[Mask FBC modify] and PSR_MASK[Mask Hotplug]
are used in panel replay mode.

Status register: Only SRD_STATUS[SRD state] field is used in panel replay
mode.

Due to this stop writing and reading registers and bits not used by panel
replay if panel replay is used.

Bspec: 53370, 68920

v2:
  - use intel_dp_is_edp with PSR_MASK register
  - handle LunarLake as well
  - hanle ALPM configuration as well

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240405113602.992714-7-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c