Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1035135pxx; Tue, 27 Oct 2020 06:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5Xe1vq6p6gNAZMrcTC+GChepS4DsJkJsHN7Boqi2FT1H2+M3qlZqZn85KEsCxrXA6R+Eo X-Received: by 2002:a17:906:6a07:: with SMTP id o7mr2447559ejr.454.1603806681254; Tue, 27 Oct 2020 06:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603806681; cv=none; d=google.com; s=arc-20160816; b=lxgvdZUtW5Se+BBVvkCZuyidBx5A2YAPuaVYq8mel1jQnVY1QMzBSqbHOaFybOsITR iOWnoMD8t9siWeRiNOq7ZHCtVluPf+e/Z/txOCohQS06G6tG9os1fs1csuXZ6Sl7U0MS ECGuRq5FIJceO3vrSEhU4qQ3dQ4X4p90EGfovDsIdW6zdzoZ0eQ4ccNFMXf/RHt/lkdr 00MjRFiuzCXLEzJDi8yELHo6Eeq1bM5VNBNkDOnq1WcjLh3B/9UFo9y36NEfYU1eevMV KayxeaQw7F4xKlQFrsWOFPFDs1fF4Xsnn3hgj7qBPNgeRYc6TANZ7ctaDCFlvPYjqnQE 9Wgg== 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=TfsDChV8ztsivt9iv4M1SJe9dTwYZ83BApqTfsmX5B8=; b=p7R3LN5L/mT0yUWrXju9lqwNftR8HIuDySK1D0DJSgecnkx+WOq0Enil9eU88acMlN KdPh2KIXJ90q4LiWDrf/iFX8Jxly1quoo0VyAULe8zZOAgIuwCg6/eppw5bL+jpTwyKV LLwvNE3CieLFT3D/PiHjE0UKimDeU46nTsT1RlEZWuj4d6lMpHzJ86+cFyxpy38hh5Lz /BbUpZiJeG9CfVWbI/g/taIXJihn0mbmc/oHjsMCXRHojMxWKOXybk+ZSsY+Q5+PKgiy +cdxYsg6HC20XUE4uBi8OVJb+pL+NFm0s7ExxtIrEarw6Nq3+9mZGjvjxaWYeY08uhQj AkNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tqRWrzX1; 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 fx21si988367ejb.458.2020.10.27.06.50.58; Tue, 27 Oct 2020 06:51:21 -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=tqRWrzX1; 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 S2502072AbgJ0AjV (ORCPT + 99 others); Mon, 26 Oct 2020 20:39:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:51358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409316AbgJZXvI (ORCPT ); Mon, 26 Oct 2020 19:51:08 -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 C59E121655; Mon, 26 Oct 2020 23:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756267; bh=Atl5i6ZnorOnVHtF/Pl07jVSKX/qfgrU588BkajKXY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tqRWrzX1Mq6Jj8WSMxOJNvbY7An3MF7KA56slMLbI2qWpkA/LEj/7itHw3hckQYkv bcFIMiaEINha0IrdyYhJFRt4wdP5qB8tvuv6ToEwGt5VTd4L3f1OqRQCELWhCUB/pV CE0YWcfOj+IkiXXN3h76hQ56XG783uOe9pD75O1g= 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.9 100/147] drm/amd/display: HDMI remote sink need mode validation for Linux Date: Mon, 26 Oct 2020 19:48:18 -0400 Message-Id: <20201026234905.1022767-100-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026234905.1022767-1-sashal@kernel.org> References: <20201026234905.1022767-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 437d1a7a16fe7..b0f8bfd48d102 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2441,7 +2441,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