Skip to content

Fix modeset locking issue in HDCP MST

Suraj Kandpal intel-gfx 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 3 repliesIn review
  2. v34 patches 5 repliesSuperseded
  3. v22 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915/hdcp: add intel_atomic_state argument to hdcp_enable functiondrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_dp_mst.c drivers/gpu/drm/i915/display/intel_hdcp.c +1 more+15 -150 replies
2/4drm/i915/hdcp: Remove enforce_type0 check outside loopdrivers/gpu/drm/i915/display/intel_hdcp.c+3 -30 replies
3/4drm/i915/hdcp: Fix modeset locking issue in hdcp mstdrivers/gpu/drm/i915/display/intel_hdcp.c+62 -541 reply
4/4drm/i915/hdcp: Fill hdcp2_streamid_type and k in appropriate placesdrivers/gpu/drm/i915/display/intel_hdcp.c+3 -62 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJani NikulaAnkit Nautiyal
1/4R-b
2/4R-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Intel-gfx] [PATCH v4 0/4] Fix modeset locking issue in HDCP MST

HDCP MST scenario sees modeset locking issue ever since topology_state was added to drm_atomic_state and all modeset locks were being taken for us causing a locking issue to occur when we iterate over connectors to assign vcpi id, the fix being to pass acquire_ctx to drm_modeset_lock.

--v2
-call intel_hdcp_prepare_stream instead of intel_hdcp_required_stream in the beginning [Ankit]
-replace intel_connector argument with intel_encoder [Jani]

--v3
-break intel_hdcp_required_stream to two parts and call intel_hdcp_set_content_streams at beginning [Ankit] -Move encoder_type0 out of loop [Ankit]

--v4
-rename intel_set_content_stream [Ankit] -remove return type from intel_hdcp_prepare_stream and intel_hdcp_required_content_stream [Ankit]

Suraj Kandpal (4):
drm/i915/hdcp: add intel_atomic_state argument to hdcp_enable function drm/i915/hdcp: Remove enforce_type0 check outside loop drm/i915/hdcp: Fix modeset locking issue in hdcp mst drm/i915/hdcp: Fill hdcp2_streamid_type and k in appropriate places

 drivers/gpu/drm/i915/display/intel_ddi.c    |   4 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c |   4 +-
 drivers/gpu/drm/i915/display/intel_hdcp.c   | 143 ++++++++++----------
 drivers/gpu/drm/i915/display/intel_hdcp.h   |   6 +-
 4 files changed, 81 insertions(+), 76 deletions(-)
Signature · 1 line
2.25.1