drm/i915/dp: Fix the PSR debugfs entries wrt. MST connectors
authorImre Deak <imre.deak@intel.com>
Wed, 3 Jan 2024 15:26:09 +0000 (17:26 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 4 Jan 2024 17:22:26 +0000 (19:22 +0200)
commit9b0b61c5bc08e1aa55a0c1e7cda28f952b2d02cc
tree3a2ce3a4cc948752b7bb16375e040d9d533ce715
parenta1d91c6e989d0e66b89aa911f2cd459d7bdebbe5
drm/i915/dp: Fix the PSR debugfs entries wrt. MST connectors

MST connectors don't have a static attached encoder, as their encoder
can change depending on the pipe they use; so the encoder for an MST
connector can't be retrieved using intel_dp_attached_encoder() (which
may return NULL for MST). Most of the PSR debugfs entries depend on a
static connector -> encoder mapping which is only true for eDP and SST
DP connectors and not for MST. These debugfs entries were enabled for
MST connectors as well recently to provide PR information for them, but
handling MST connectors needs more changes.

Fix this by not adding for now the PSR entries on MST connectors. To
make things more uniform add the entries for SST connectors on all
platforms, not just on platforms supporting DP2.0.

v2:
- Keep adding the entries for SST connectors. (Jouni)
- Add a TODO: comment for MST support.

Fixes: ef75c25e8fed ("drm/i915/panelreplay: Debugfs support for panel replay")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/9850
Cc: Animesh Manna <animesh.manna@intel.com>
Cc: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240103152609.2434100-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_psr.c