drm/i915/psr: Clear pr_dpcd as well on disconnect

Currently we are leaving pr_dpcd containing Panel Replay capability DPCD
registers as it is on disconnect. Clear it as well on disconnect.

v2: add FIXME

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-6-jouni.hogander@intel.com
This commit is contained in:
Jouni Högander
2025-12-04 12:47:30 +02:00
parent 8d251442f8
commit a7e427ff20

View File

@@ -6048,7 +6048,15 @@ intel_dp_detect(struct drm_connector *_connector,
if (status == connector_status_disconnected) {
intel_dp_test_reset(intel_dp);
/*
* FIXME: Resetting these caps here cause
* state computation fail if the connector need to be
* modeset after sink disconnect. Move resetting them
* to where new sink is connected.
*/
memset(connector->dp.dsc_dpcd, 0, sizeof(connector->dp.dsc_dpcd));
memset(connector->dp.panel_replay_caps.dpcd, 0,
sizeof(connector->dp.panel_replay_caps.dpcd));
intel_dp->psr.sink_panel_replay_support = false;
intel_dp->psr.sink_panel_replay_su_support = false;
intel_dp->psr.sink_panel_replay_dsc_support =