Skip to content

Commit d919d3d

Browse files
Wayne LinLyude
authored andcommitted
drm/dp_mst: Set CLEAR_PAYLOAD_ID_TABLE as broadcast
[Why & How] According to DP spec, CLEAR_PAYLOAD_ID_TABLE is a path broadcast request message and current implementation is incorrect. Fix it. Signed-off-by: Wayne Lin <[email protected]> Cc: [email protected] Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Lyude Paul <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 419e91e commit d919d3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ static void build_clear_payload_id_table(struct drm_dp_sideband_msg_tx *msg)
11541154

11551155
req.req_type = DP_CLEAR_PAYLOAD_ID_TABLE;
11561156
drm_dp_encode_sideband_req(&req, msg);
1157+
msg->path_msg = true;
11571158
}
11581159

11591160
static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg,
@@ -2822,7 +2823,8 @@ static int set_hdr_from_dst_qlock(struct drm_dp_sideband_msg_hdr *hdr,
28222823

28232824
req_type = txmsg->msg[0] & 0x7f;
28242825
if (req_type == DP_CONNECTION_STATUS_NOTIFY ||
2825-
req_type == DP_RESOURCE_STATUS_NOTIFY)
2826+
req_type == DP_RESOURCE_STATUS_NOTIFY ||
2827+
req_type == DP_CLEAR_PAYLOAD_ID_TABLE)
28262828
hdr->broadcast = 1;
28272829
else
28282830
hdr->broadcast = 0;

0 commit comments

Comments
 (0)