Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2656265imj; Mon, 11 Feb 2019 06:33:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IZOIqAoIKoIy5J5ho/GofFiVNvXHozZ2A6crWFAiJXmKueV5AhSSSy2rJbTuqiF/hryxjlt X-Received: by 2002:a17:902:bc81:: with SMTP id bb1mr37063224plb.223.1549895630438; Mon, 11 Feb 2019 06:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895630; cv=none; d=google.com; s=arc-20160816; b=Lzw1Qn/LPdLLi9qltdqaLJOpemFV5x02H3zXg2u3Wx2lb/9pwj/RnGrEIrfap8lNZK W6p5dPXM6s4y3ARdlEgvnN8q+kk+Yrbnjswv7VU0btF2Lzf0pDij9C14MHNBFDtVAAEr cGt6JamvtWmh5dnoH1K/oyji+wwTbgLlkF5U7sbh+mmpQjuDXzXRJm7lrYD8NvE/iHuO 7Hy233VrSjLdFQSph7ZeX22Ii5HKrCa3HEKi/tl5rXitL41jresCHmoseH2RlHNo7pI2 mVjXhEZV0ihThCUP9qGkUz232038W+94SqQTwV/69oPo7BvpPPhISVH+VCAEDSpIEAs9 JeCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JewACW9xeUPZe4YfUbO8l0jHjYgvDCZae4N04msGnZA=; b=A3hVbe6wD+uPc3hme2Q1d1cs/em4vf9KkWWaxN9CVNjcLRDh4TiLMeIYSqDjXItJN1 eYPTTlX/6M8FNMA4HlxCzO5iTJ4eihzfYJItH16UD5GHo0vgy6HquqivXtYCs2ht7m3E 0Uip0XPlfurt4O2BHMEbQdwdZBXortS2q1FUp4NzoDoPIuFh/rGt4ZKPyfzP3ESodE26 Hd1oJDG9NeC+pu5Zb1aByZ4Lkl9NlZYk7AETB9MPY1RhgwB4TDY97vIoDWiUZVRBT4Vh MuK9RDq17R6ZW9CqtLVPvUvU8waApIuIdCA6DWf/WmK0qwjjG0jQRllhW7oI4X0Ii2Ru hmcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mnjyb7Sp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m64si10816pfb.224.2019.02.11.06.33.34; Mon, 11 Feb 2019 06:33:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mnjyb7Sp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730407AbfBKOcB (ORCPT + 99 others); Mon, 11 Feb 2019 09:32:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:39182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728930AbfBKOb7 (ORCPT ); Mon, 11 Feb 2019 09:31:59 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E3F8820675; Mon, 11 Feb 2019 14:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895518; bh=Cvs5ybuoBpYef/qu0BkhKntu2gTHBq2u2ORLirk/WO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mnjyb7SpFpozYum+62ld/oK6Hnc6tWtdRtVOU2z82qpIhiq09MdGnUgeR8pmWmG8b pSnndk3PdmYuduYcyPWUnlS4XKV+Ow84d0NwaNpXevJqQLl1rgLHv6Kl1PsFhM8Afa KUOrfSuMZPeOzMDgXEcLTVQQo/LP8GbS+5htjb4o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wenjing Liu , Aric Cyr , Jun Lei , Abdoulaye Berthe , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 4.20 231/352] drm/amd/display: validate extended dongle caps Date: Mon, 11 Feb 2019 15:17:38 +0100 Message-Id: <20190211141901.913744447@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 99b922f9ed6a6313c0d2247cde8aa1e4a0bd67e4 ] [why] Some dongle doesn't have a valid extended dongle caps, but we still set the extended dongle caps to be valid. This causes validation fails for all timing. [how] If no dp_hdmi_max_pixel_clk is provided, don't use extended dongle caps. Signed-off-by: Wenjing Liu Reviewed-by: Aric Cyr Reviewed-by: Jun Lei Acked-by: Abdoulaye Berthe Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index d91df5ef0cb3..d33a5ebe990b 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -2240,7 +2240,8 @@ static void get_active_converter_info( translate_dpcd_max_bpc( hdmi_color_caps.bits.MAX_BITS_PER_COLOR_COMPONENT); - link->dpcd_caps.dongle_caps.extendedCapValid = true; + if (link->dpcd_caps.dongle_caps.dp_hdmi_max_pixel_clk != 0) + link->dpcd_caps.dongle_caps.extendedCapValid = true; } break; -- 2.19.1