Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp626727pxx; Mon, 26 Oct 2020 17:20:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKCzdfkz3PY4QqUWOKIfSAuK9NpZDSAjJIl0reJEYmti11hG1J8R5q9YjyOQbtCIgJMa4r X-Received: by 2002:a17:906:f8d5:: with SMTP id lh21mr18048194ejb.38.1603758055284; Mon, 26 Oct 2020 17:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603758055; cv=none; d=google.com; s=arc-20160816; b=t7CFS2IDX9GDtQX/pze32PvM04/taGlwfzqN2UeIADzUAS3l2gqJj3NeimggPONTQd mJyb36JVfuDxv0nilA3UGFzdpq2YLuWJZmx0yrfjlEZMHYvYDc0M0fxP/iV56VxYFyk6 ejS/E8/a0dvPnj+yrCr5CYL2VK3R+4RxgTTjG/S8RnzTVHqyRSmPgQu6e3WxrR1GvZp0 3A4c8BDxRcMAAWoUneEzwtKX652SUbQDiePYs3HSqLsjEqcpCYCp+izrs2ZkHCSzb9/E h/PYMLAa8atKOPZdE57sH6jg0+84XmUoyObIbn8SmTOCtV2aeqPQlZ3oO2aDOUyMHlkZ 6xsw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2MJ9eJSQzYEf+8RVTYye6GQalG9nfGFSrNpgoBhwseU=; b=K3k2g0U3eTa7GxTtAkPpr5WFUWtUx4lNbW4woR+jcAnxAp5V5aJKTL0fzY9Kdve2lg DV8QwXsxVjKW6USQfS1kORTIqRUXgVj2jvtWOoMfbQRdoSHwl2nRqwhM6aNE9GNn2OhZ Nr5ViYNccFA2EwVJDG5fvMwswEicMOcGlst+71nYwMAeGRUPZoTrL2tPjsx2Kmhr+N97 W415gkpzODe+N67bkYDeUp4rFuBOSu0syl2hQUyHVSC2D7MYBk02q7WWpXPWd1YqQ1Xm X9lLiLvtxhy6g/6+US7KdwbQPMZuUCtcFCSMaAWrg4LtCC2nJ48Bwcp9iLN1TWf9QFKZ IVEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YJZhR0Ub; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h28si12417635edj.130.2020.10.26.17.20.33; Mon, 26 Oct 2020 17:20:55 -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=@kernel.org header.s=default header.b=YJZhR0Ub; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437355AbgJ0ABo (ORCPT + 99 others); Mon, 26 Oct 2020 20:01:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:35488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411110AbgJZX4W (ORCPT ); Mon, 26 Oct 2020 19:56:22 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9967C20770; Mon, 26 Oct 2020 23:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756581; bh=Tksrrd5nZCDgdYeDXvFTj2hLaruXIlWO1dXPfNuYV1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YJZhR0UbOZqamjnuAx3/9oRGKmbN5uAd0JLogtrxFLLbAXFA7GDBBlNSg2REn5FDb 8sim67dTsdpDaOCeH4KjFIEViRlxTl8Ts+V76lVXY6pCHal1wrxQ/sDiJ9fXJKMpdJ FL9lg+RyJ/BO7WhIcNzhIsMtNi9vmjm7BL+lWQP4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Fangzhi Zuo , Hersen Wu , Eryk Brol , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.4 54/80] drm/amd/display: HDMI remote sink need mode validation for Linux Date: Mon, 26 Oct 2020 19:54:50 -0400 Message-Id: <20201026235516.1025100-54-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fangzhi Zuo [ Upstream commit 95d620adb48f7728e67d82f56f756e8d451cf8d2 ] [Why] Currently mode validation is bypassed if remote sink exists. That leads to mode set issue when a BW bottle neck exists in the link path, e.g., a DP-to-HDMI converter that only supports HDMI 1.4. Any invalid mode passed to Linux user space will cause the modeset failure due to limitation of Linux user space implementation. [How] Mode validation is skipped only if in edid override. For real remote sink, clock limit check should be done for HDMI remote sink. Have HDMI related remote sink going through mode validation to elimiate modes which pixel clock exceeds BW limitation. Signed-off-by: Fangzhi Zuo Reviewed-by: Hersen Wu Acked-by: Eryk Brol Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3efee7b3378a3..47cefc05fd3f5 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2268,7 +2268,7 @@ enum dc_status dc_link_validate_mode_timing( /* A hack to avoid failing any modes for EDID override feature on * topology change such as lower quality cable for DP or different dongle */ - if (link->remote_sinks[0]) + if (link->remote_sinks[0] && link->remote_sinks[0]->sink_signal == SIGNAL_TYPE_VIRTUAL) return DC_OK; /* Passive Dongle */ -- 2.25.1