]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/psr: Use SU granularity information available in intel_connector
authorJouni Högander <jouni.hogander@intel.com>
Thu, 4 Dec 2025 10:47:27 +0000 (12:47 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 8 Dec 2025 06:15:58 +0000 (08:15 +0200)
commit1cc854647450199e20cdbe0fbc3be1f5253d7693
tree63e035930b1ed383bddde2bfe70e0b3c815f09d3
parentf861e54fb33b587687e335ef24431fceccfe536d
drm/i915/psr: Use SU granularity information available in intel_connector

Currently we are storing only one set of granularity information for panels
supporting both PSR and Panel Replay. As panel is informing own
granularities for PSR and Panel Replay they could be different. Let's use
own granularities for PSR and Panel Replay instead of having only one set
for both. This is done by having intel_connector::psr_caps and
panel_replay_caps both containing granularity information.

Also remove complexity of sharing granularity read between PSR and Panel
Replay.

v3:
  - use cpu_to_le16 for default value
v2:
  - use __le16 for two byte values in dpcd
  - use sizeof instead of hardcoded size in reading dpcd
  - drop unnecessarily passing intel_dp pointer

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251204104733.1106145-3-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h