Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp739364imm; Thu, 13 Sep 2018 07:04:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbjvUdIfFSAJt8JviYwcXAYpQL56Oi24Zg4XPqbpjQp/qyWVDXgA3kGk6XpTkqXGoOhVcxD X-Received: by 2002:a63:fe4d:: with SMTP id x13-v6mr7346897pgj.152.1536847491661; Thu, 13 Sep 2018 07:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847491; cv=none; d=google.com; s=arc-20160816; b=WEpmAadd+agRnncUfab2cUlPAzzxQ5hIg9QBkxMONGvV+iI9uqBXeDd4ZychhDmocM 69MvtZ4rVHdBChXp/gOWagHumBiWn23zX6fXXGXsf9c8HshbTl87nMpLGJZaHlEwoxE2 2a2VXWsMf8KEigy9gNNdR4JuMe9I1nqTiP68NhXG81jBo1FzGlMcbiGCDwRzcNtEiwjz b/xqYtZzvHc06gEv+9Cm42DsG7TtLF3JtCjON4Jk31gXSrkePJN/oTCj9jWeBhmyZmzF BiaUwT4YOn95bvYKMJrPDZ57BTId6Co7BgTQ5MHEDgWo86DL8DUIiBsw4OEvL/y1M2uO JuAw== 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; bh=o1cmTm5uDKODj/ilr+rxH/4r4nkhT15Y8R7Z9SC4JWM=; b=AkAIEP5zaSR6ByJY6QICiAK5GKbAciPzYnJnZj5oTy93XufN17kNSpb8WN4+4QaXGF K+nCvDuP/S4v0XEIVRTdDhjCWE00HO1FkhJF6EYqwhMdqz/57MjvE7WFRXODf63QdjTw NchVLk9rvTN2RdocVMDAekYseerm5dG7QzYOKIbwJojUjcoOK5dEhLuejCCBn0Hry2O6 l62XL4BHD5x0Zn5bd4chL0lu8xmNq7Xg3XHcj+p4BBLoGYX3R4UqZba1J5rWq/V/5Rbq nj/w1qWZZBwoTJ41YqOYBirF3WNcf1T9R8s2XYqoWF1mgqgwGv3RY3VmJxtweO4weK2x cj5A== ARC-Authentication-Results: i=1; mx.google.com; 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 z19-v6si4324950pgi.388.2018.09.13.07.04.32; Thu, 13 Sep 2018 07:04:51 -0700 (PDT) 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; 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 S1732075AbeIMTNl (ORCPT + 99 others); Thu, 13 Sep 2018 15:13:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbeIMTNl (ORCPT ); Thu, 13 Sep 2018 15:13:41 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E7BB9D35; Thu, 13 Sep 2018 14:04:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harry Wentland , Alex Deucher , Nicholas Kazlauskas Subject: [PATCH 4.18 168/197] drm/amd/display: Report non-DP display as disconnected without EDID Date: Thu, 13 Sep 2018 15:31:57 +0200 Message-Id: <20180913131848.278909539@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Harry Wentland commit 01dc285d5cd89b77686d8baef8482c58d7dc3ead upstream. [Why] Some boards seem to have a problem where HPD is high on HDMI even though no display is connected. We don't want to report these as connected. DP spec still requires us to report DP displays as connected when HPD is high but we can't read the EDID in order to go to fail-safe mode. [How] If connector_signal is not DP abort detection if we can't retrieve the EDID. v2: Add Bugzilla and stable Bugzilla: https://bugs.freedesktop.org/107390 Bugzilla: https://bugs.freedesktop.org/106846 Cc: stable@vger.kernel.org Signed-off-by: Harry Wentland Acked-by: Alex Deucher Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -728,6 +728,17 @@ bool dc_link_detect(struct dc_link *link break; case EDID_NO_RESPONSE: DC_LOG_ERROR("No EDID read.\n"); + + /* + * Abort detection for non-DP connectors if we have + * no EDID + * + * DP needs to report as connected if HDP is high + * even if we have no EDID in order to go to + * fail-safe mode + */ + if (!dc_is_dp_signal(link->connector_signal)) + return false; default: break; }