drm/i915/hdcp: Use new MST topology state in intel_conn_to_vcpi()
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 4 May 2026 10:11:17 +0000 (15:41 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 5 May 2026 02:54:25 +0000 (08:24 +0530)
commit6692ee0deae3b5a130053c94eadc888ccd83e088
tree232284320e48d24d8462710205a13487b83fa11d
parent68644d8fc854bf07e7e606a0a94856dcea34fc8b
drm/i915/hdcp: Use new MST topology state in intel_conn_to_vcpi()

intel_conn_to_vcpi() runs from the HDCP enable path in commit_tail
and looks up the VCPI via mgr->base.state. When an ALLOCATE_PAYLOAD
is being driven on the mgr just before HDCP enable, that payload
list is being mutated in place, so the lookup can miss the port and
trip drm_WARN_ON(!payload), causing HDCP to be programmed with
VCPI 0.
Use drm_atomic_get_new_mst_topology_state() to read the topology
state attached to this atomic commit (stable, decided in
atomic_check), and bail out cleanly when no topology state or
payload is present for this port instead of WARNing.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Tested-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
Reviewed-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
Link: https://patch.msgid.link/20260504101117.3619984-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c