Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4479948ivc; Tue, 3 Nov 2020 13:07:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7ugvXEMvn/LmwjX6utQG63OFpvRc8/4F/yps4BWW1rNgmRb4LUv4GArumT463wQluGJjf X-Received: by 2002:a17:906:b104:: with SMTP id u4mr21361592ejy.121.1604437664882; Tue, 03 Nov 2020 13:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604437664; cv=none; d=google.com; s=arc-20160816; b=jDhsLj8Ve9fOZR1I5PYXqVKk4fFaN+tladaOkfT8JnPiKqAM59BvrHoSIZNkZA1mRT oalnnQjQUo9Qb/pg1mLyvSx/ieIRL7TAHJ65m30w+uGMEnTKmqXgc6oFaiD6GNDmnsOH rNhgHf0LwZXi4VLTn1STRTNSxQ3WD+FMi9btJX44C09CKrqMkrxCLgRYz7M0IqTBQ8ex 44V4lVMCk4yzkagcBAq228GfZj4nlhAvBxoaOwg7VKOd+qZ3m926lQqF5sV+EV53JctA OA3gUXm/O2N/qfbesuPOgZPddcF/F0qQiWWWHj+6kjSTGBwliwL5gVQrG4mvkB67pZzh h3Lw== 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=ptGT38p7xfRkpuP5ehWYbK9tByyJNC16opUUET8gnk0=; b=PRNwzdQnVrVJDExwUL7e0ubY9uViUVjyy0Jf8jtBVT5IWDgbMdc2gv/8XGOaUBSfe4 mnaBNaD55sgvg1TnvG1EYvkkVpGpqqfYVxrx+HchblJ8YQOPTrRsc0OrUUZUSLI2rFKf vW9Jbujkr/y2RJ28HuVs2Abu2Bqirm29+7Vb1XAZzH/C7XkHnVz46PPrvOpsJeQpI+et wdAvM7vmdDg018V9VzLXUbpjGX7OzNy4v+piOY9ptPAuAXLaM/YDwmtEvoTyXG2cS7mH sUmWatyOs5RevdWKz7ey3aVy/G5X5vQ72AVtfBhGVUI1sbYCa4plibYREgzrotQXtgLO WnHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GgY1oAV3; 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 t2si14529667edj.427.2020.11.03.13.07.22; Tue, 03 Nov 2020 13:07:44 -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=GgY1oAV3; 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 S2388112AbgKCVGH (ORCPT + 99 others); Tue, 3 Nov 2020 16:06:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:44876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387854AbgKCVGE (ORCPT ); Tue, 3 Nov 2020 16:06:04 -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 58AE0206B5; Tue, 3 Nov 2020 21:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437563; bh=DytOeOrkR1YgVSrR0h53UU3WqwNe52PqGw1Uojp/UaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GgY1oAV3keliG+VMf2lpPKcJs8LEk/K+H1JzPo5/Sa7zJxaKrzNiG7rfEdS75pubT Ewlh9kD7Zx9SMGyk7celvTwmpQ8hDlR74BvywXFrc2uuQEn4EgIquK8uFJh+3fdi4/ nUv/oO9YpXh4qhrbww+v3g7w1xMwr32gEYS8VFf8= 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 4.19 092/191] drm/amd/display: HDMI remote sink need mode validation for Linux Date: Tue, 3 Nov 2020 21:36:24 +0100 Message-Id: <20201103203242.530452642@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@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 2fb2c683ad54b..fa0e6c8e2447c 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2009,7 +2009,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