Commit d919d3d6 authored by Wayne Lin's avatar Wayne Lin Committed by Lyude Paul

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: default avatarWayne Lin <Wayne.Lin@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210224101521.6713-3-Wayne.Lin@amd.com
parent 419e91ea
...@@ -1154,6 +1154,7 @@ static void build_clear_payload_id_table(struct drm_dp_sideband_msg_tx *msg) ...@@ -1154,6 +1154,7 @@ static void build_clear_payload_id_table(struct drm_dp_sideband_msg_tx *msg)
req.req_type = DP_CLEAR_PAYLOAD_ID_TABLE; req.req_type = DP_CLEAR_PAYLOAD_ID_TABLE;
drm_dp_encode_sideband_req(&req, msg); drm_dp_encode_sideband_req(&req, msg);
msg->path_msg = true;
} }
static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg, 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, ...@@ -2822,7 +2823,8 @@ static int set_hdr_from_dst_qlock(struct drm_dp_sideband_msg_hdr *hdr,
req_type = txmsg->msg[0] & 0x7f; req_type = txmsg->msg[0] & 0x7f;
if (req_type == DP_CONNECTION_STATUS_NOTIFY || if (req_type == DP_CONNECTION_STATUS_NOTIFY ||
req_type == DP_RESOURCE_STATUS_NOTIFY) req_type == DP_RESOURCE_STATUS_NOTIFY ||
req_type == DP_CLEAR_PAYLOAD_ID_TABLE)
hdr->broadcast = 1; hdr->broadcast = 1;
else else
hdr->broadcast = 0; hdr->broadcast = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment