Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2757924imj; Mon, 11 Feb 2019 08:03:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IaTj3xFbDk/4vkUI0RTxRdIeeaplySrw8oLSvqGL7AjqlafKuW5pq69QM9Wj+8PTLl2bUGa X-Received: by 2002:aa7:87c6:: with SMTP id i6mr6517245pfo.208.1549900995411; Mon, 11 Feb 2019 08:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900995; cv=none; d=google.com; s=arc-20160816; b=c9HbR0W2CJCPIQ7L5Jq4d0nBCMz+YaUmMxoZyvKwAWrJLfG2laIr10s3Mxn+44RRRY HWaOFmzDfwDRDtf84hxisNMd6MTopeM7xDG9puhqaHtseD+oMDxSMzZKdgHyciL4p0Rk c6mDUg7jNTtwvtqdv1FQeeWFfxv+izUoHiSVfrDnvTXlmyfbrT30CTLbIQT59P//yE1K bNEf22FcSi8mkD04VvurjOwzNN9X3ZKteW4zE46El/PnshkEZ0lrzfWbH5xpQ85BzCPB /xyJWMb5a+rn6vDORbq0x96W9GGlaeWNqSapADgPa48VFjJG/bZl30xP89VHjcEJIvUK DJyQ== 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=xIr+j2KplSAmJW7K6Vfjz3Jt/L3rHvrsp1q6zvCqOY0=; b=zcJXxQGWzi9A7eus99hV+jpZjFeGUSsM9mB0SqIeTvtL6tbG2HArynCERUonbTubaj 6jKVZrcj4EM6pijuSCjGSyiYG+GRcdAympqJk3E9Jy+FdqIHYoEXSa3MeoVfv1pZlt7d DWubBBdAptd6qK6GjXfFNspyNkmw7MBuLQK0kOrygpBR+z6BNYtCYaNPOM70V8mPPKxY cGWxzhXn/BmxxLYLSq3IkRRUvgTkSJbkQV7/QuV97A25mhPrsb42wFKdqQGQB0iH/+Cg EnVib0UjC9Q+EG9tpAiL8c4+0OQ8KtcimQ2wTNWQbxhVGV6BK48FmKXBKPv89QfUbr6R wjyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a0dMho71; 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 y12si9575590pgf.527.2019.02.11.08.02.52; Mon, 11 Feb 2019 08:03:15 -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=a0dMho71; 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 S1729787AbfBKOaw (ORCPT + 99 others); Mon, 11 Feb 2019 09:30:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:37312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729724AbfBKOat (ORCPT ); Mon, 11 Feb 2019 09:30:49 -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 7E85620675; Mon, 11 Feb 2019 14:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895449; bh=6Ib8dn4kizR60ukJmLKNmIoa+NccnR0LjKE6hV9REX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a0dMho71oxrPdsAc/HSCsw/EXf4km/+AxLMNRuEhdiiyiQ/HCR9bQj8k/dfmulFND PQRfr5nkLEoBN9aWAJfliNyFt2P17/w+9vI4pNWWAxcPnjzKuUVaZdZJrWZkR0RpUF 3aL7CrfUl6s1e8vUEY82xtOyjeutvcV7e9q+YHbY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dale Zhao , Eric Yang , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 4.20 207/352] drm/amd/display: Wait edp HPD to high in detect_sink Date: Mon, 11 Feb 2019 15:17:14 +0100 Message-Id: <20190211141900.331113890@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 0a6414e75d231ee1bb7ffb2f5eb246b682a884cd ] [Why] In 99% user case, edp will be post by vbios. In 1% / current case: Lenovo don't light up edp panel in vbios post stage, vbios won't be lit up. Thus in dal when we init DCN 10 hw, we power up edp, then we start detect_sink, but internal time is too short, when we detect it, HPD is still low, so we don't detect the edp, and edp shows black. [How] When we init hw, we wait edp HPD to high after power up edp. Signed-off-by: Dale Zhao Reviewed-by: Eric Yang Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index ef1b350a45e0..8b69913b6943 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -208,6 +208,9 @@ bool dc_link_detect_sink(struct dc_link *link, enum dc_connection_type *type) return true; } + if (link->connector_signal == SIGNAL_TYPE_EDP) + link->dc->hwss.edp_wait_for_hpd_ready(link, true); + /* todo: may need to lock gpio access */ hpd_pin = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service); if (hpd_pin == NULL) -- 2.19.1