Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4581274pxj; Wed, 12 May 2021 08:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHjgY4A45wSJIvp0IXBH5QbfxDXq2+FlueAsb4C8sIp6iKy1om88FXHDbkCcWFvP1PwCkl X-Received: by 2002:aca:654d:: with SMTP id j13mr8004975oiw.125.1620833838648; Wed, 12 May 2021 08:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620833838; cv=none; d=google.com; s=arc-20160816; b=awksAS7y/aTR/JUuvkItAAtfokUadgJfIAz1wPpI1tDJNRgPOm18KR41JpMAcaXQOX 32fQIosUkOfP0D0oZpPTCLE8fp09DaYnDLz2K1w5Gd4NHpfRPGXQg+IWGTjr5jNdOX8Y 4a2H3CMZt9WbMGCBwk5aFuhRmn9zZlRmAVM0TRp9BDgMmyvp9X4qXPPHTlkcuKRr6DzK GSUwH3Wfu2G9IqEwoKrsVabJdDxbBOSyUF+O+4IUbDg8c69JCN9/Zh19q+GCY2JQPlqC xmDL9KLVcrgPl5PkAPNvUWInZzU/juJvBI2PmIgwApnPFGYuu7xPYOoqqtDSlOYzdvkN Go/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sfpJ3eAsJYaRYGMOMaHftAmLSTzAWXXYKibj22MLoYI=; b=iZ3f18kS70M5m6ogC73oDzq3JjqYuODo/JtlgPzyPOtka+bpZqOxdH0YmAnefdvxS7 0Az3p76r0N7F+Yfvk96r8aYyGBmCa1RDNKnZLiTrQLFAQuPSCp7RXrlRHKhJ6HqXl6sv Pcp4LGBDs1O7pD4rDWu77da/u2ZxaYIq/rbA4qXYrrMj41EBxDDJPA8oW9E4e+sR+Ia5 oks872DaPLX9EEQerryDXtJ7CkqQ/w4bYa8sZnAFEI9c9TQbzu1qA7x16QQmOtm+G4fY 7oRN9SF7nXaAGLqCoGseSJoAGYmQZiVn0olXBuiTTR3nd5n8yno0zQkUwDqEV2VnPjJz vkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aVdOx2Lt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si224552ots.148.2021.05.12.08.36.54; Wed, 12 May 2021 08:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aVdOx2Lt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234660AbhELPdm (ORCPT + 99 others); Wed, 12 May 2021 11:33:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:47244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233957AbhELPPt (ORCPT ); Wed, 12 May 2021 11:15:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B512B61949; Wed, 12 May 2021 15:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620831918; bh=tvYm0EGFUqeYlgwdXWIFOc77jLjBntRRaa/VugxJFn4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aVdOx2LtzOS3kSdpuWDGFDKNS2UdL0f26Yh7Yvc+HthrW7uVYsk56dPWbUObuIUlt v+5J7VlcLrWpBXAk7m7c6Jw4DAVa6Y2vbUfjE1Grvw94I0inycfVBpL2lFpxRy5Tr6 DKUVG/AEa+7FdDrHmFC8zElKPK+EQuc76lntqF+4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wayne Lin , Lyude Paul Subject: [PATCH 5.10 066/530] drm/dp_mst: Set CLEAR_PAYLOAD_ID_TABLE as broadcast Date: Wed, 12 May 2021 16:42:56 +0200 Message-Id: <20210512144821.927220782@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wayne Lin commit d919d3d6cdb31d0f9fe06c880f683a24f2838813 upstream. [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 Cc: stable@vger.kernel.org Reviewed-by: Lyude Paul Signed-off-by: Lyude Paul Link: https://patchwork.freedesktop.org/patch/msgid/20210224101521.6713-3-Wayne.Lin@amd.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/drm_dp_mst_topology.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -1154,6 +1154,7 @@ static void build_clear_payload_id_table req.req_type = DP_CLEAR_PAYLOAD_ID_TABLE; drm_dp_encode_sideband_req(&req, msg); + msg->path_msg = true; } static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg, @@ -2824,7 +2825,8 @@ static int set_hdr_from_dst_qlock(struct req_type = txmsg->msg[0] & 0x7f; 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; else hdr->broadcast = 0;