Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp824937pxb; Tue, 3 Nov 2020 13:36:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnvnOgcxLJTSknez+sjQzA1rrlox4m/bSpAP2xlM6AuWIdo5YRp+j+XbGn8dIjuexjHCJe X-Received: by 2002:aa7:d888:: with SMTP id u8mr23027944edq.210.1604439382346; Tue, 03 Nov 2020 13:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604439382; cv=none; d=google.com; s=arc-20160816; b=MQmzabFr/kheulsNRygisAPOOs3nvq9ReZtO7wtzccTSdkBW/8oyiwAMsFHijWh3gA iwNZa4U16fJFzsf5YXJCR1ck1WdPlv58BkwoS5+0GtYoco8vC9A26T4eWLgJg6I1nkFM XCWstkcr2ip9QqmpztdMp4074tHfH2algeBG9WvONNR+ZBWMFQ3JKGoP74SyP10QC3JS LW6WMBI7lQ98IVeUlcbK62P4ytlcT+CaJfYvCEXfrRa+R5aKS10zMMVAHmhdZWeRMNrb 2iOrQ2C0Gf/5XwUCcz9o/dS+sXyeYSMZH2dnfSOxEYDGgEVivLZIAV1XvA5QT9bh27pI E0Vw== 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=NpTop5g0DhmRfInE2DUor2U/sN1COyTATTbzSUrvfps=; b=Mu389j/ZqCmA0f86sitsCxRR4u4Z5pgdHM7WLZS5bHmU+oSSDUrcNIvQL1i2KNSfaX 35PF4LKuOoWUrcKE6UjWnoakkSdcaUVJk6frWs1IoiHoKjjK7sVb8m+sAaw63lV0O21a Fd80WRYLPQQYKoduIZhE2766XOS2EoC2XLVy2QV70TulBtKx/4z/x8QjFTWaQ13ijXOt EB7W6Z4wuzQ+1phHu85MkBsfQeAD4xwY3c3FAhGphzB4BZBmMX5JIyaz4hQcXeZS5N5G UH1awqShIXkkgQXG5fq+WOnJygBqBNfpcK7BvMI18wGIqULKHa1NTcLgDedRLjmBIz0z L52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P77tFukU; 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=fail (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 v24si13372389edq.0.2020.11.03.13.35.57; Tue, 03 Nov 2020 13:36:22 -0800 (PST) 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=P77tFukU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732927AbgKCVcS (ORCPT + 99 others); Tue, 3 Nov 2020 16:32:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:59502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732109AbgKCU5R (ORCPT ); Tue, 3 Nov 2020 15:57:17 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 8EC5B22226; Tue, 3 Nov 2020 20:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437037; bh=L8ZuELjMeM0ZMowK9r/ZBhw2Y6O/DsmCbS5s3XpXKqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P77tFukUqfiM3BbaPco3gVz7noKCPn5rSfX/8oio/EvhqYhpRP8DrLnMHjUhZ5/HM fpyBbViwsH1ildTDGzr4ksfPpxH13ZtSiJnAZRH67MBhjoW84M/4l32aXa8HYjljPY syBilEiI8m1I7K1e/tsfqLFJnq0hLsr1t1/KZnKQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fangzhi Zuo , Hersen Wu , Eryk Brol , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 071/214] drm/amd/display: HDMI remote sink need mode validation for Linux Date: Tue, 3 Nov 2020 21:35:19 +0100 Message-Id: <20201103203257.058919226@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@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: 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.27.0