Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp174969lqo; Tue, 7 May 2024 16:42:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbpcNvfYLYk84Qam3FFKDokckgzJU4N64C6kQTm/6VVDkHN7GwfwYyyysMrmrljIA/PQ7arcHpA7RQ2EUmUWg1mGNUMnuo4TPb49IBzQ== X-Google-Smtp-Source: AGHT+IHnDNJ6tUjEHAQ8lyFUpEJaB5ENVJAl3AfW0cs6dVLat4ldiQsNLg8belpaeh6LyU28p2ou X-Received: by 2002:a25:254:0:b0:de4:603f:cc2a with SMTP id 3f1490d57ef6-debb9dbd70fmr1198444276.45.1715125355346; Tue, 07 May 2024 16:42:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715125355; cv=pass; d=google.com; s=arc-20160816; b=fYyFwtRrI/cRan8D1tBoj6fntZRmxxPJpmyDPgqr6xldUe9xfC0hdT1DCG72h18Rjh 4r3jiuUFIrHQm8tRszb09R6Ljuq5GWfdRoQlMZIPa4w0EVn4a3obDJaPkq0ztStv9nwF djw/YipcpwHshJvRcPjpfyW1wZXLxaRv3NE/qOrKeXK+6yxosAgLOgOtndt3At/3uMpw tCVuccabWc2Fqh7vdzyo/QnYs4OaLLr5GqQtAIYebbtePC0yYldnHWl/vycYHY/InJUU 0nA8ykgCsw8CTgUmms6ft3eFf3Ehxd3y8AoBJncYCzT3v5DwoWqPV5F1byZWQKAbMaY7 hM4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EoN2grxkTTyR9IGfouHMhsEn9olo6q8YK3V6DI0YB+4=; fh=N1kzGAG0mHStvUG+hSjoEJb9cuNOpTgE3wY5rQYPqTE=; b=HtT1h8y/Jyubid7lYq3jpkggEtBsOvWXuPvJvNaebo3kGShDVDdIGg42Ecnleo6ezu ufqd9wj6/P4ggpqcxNo7F2qxKajvlgaNgDoG+WjymNIDRZLZNN+udJ5o/w9ftDOFC/6c fmN1ScIeC22y9jA1zlL0rkHmhN2kur6mcDIes1xQZzDT9l1cB6D48TZQgH7nP9ChsVPA d0gahQaI4oSWHekpFQxZnhVWBEzhQHyUP/kipbJda8XFt5vdrF6AwYGURLqfsY4+wrS5 9Cc0AzJpaqObq2YEHthPh/1eP9MFGZfq+xWpkewI1iuqxcteAjvcOQ3PpWmAkmGXKRUI 3j/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KRDy9+kn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i10-20020ac85e4a000000b0043ab64f612dsi12742204qtx.202.2024.05.07.16.42.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KRDy9+kn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D42B81C2149F for ; Tue, 7 May 2024 23:42:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBA6E17084F; Tue, 7 May 2024 23:11:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KRDy9+kn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02868137C27; Tue, 7 May 2024 23:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123515; cv=none; b=YseTaOGsnuHQ4HkTgBQbjgILfl7gwsLJPfSedF7F4tD8O0rslMZuBB7oOlyRWYsPeEcCNIkJG5Hpuo5AUsGKZjfqXeUBmo75rIwzPIFhZGBMKB1jtaCLKudBdSH/ki2rUYNugDePt055bQYaxsYAmGN392RKVX9xeVsUQpWnHRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123515; c=relaxed/simple; bh=mPcqWpgLLmQeWUDSJ4hNN9EzC8IWpkeYOeDyImY9/zI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HgxhMvJSyc2UIb2aPHGa6HMSRrUfdmv64vUNema0c2cu0uJmda3+W1oD/kdBvlOzd92ilscC7h7zJIUiDfyvVaHpIEW0MGDhg0zAGeeDI3OBQ9rh1EeLCxis734hsE9RkvQoIKti53moS06q1UjO+pvrHYRy99JiVIQfqATAfPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KRDy9+kn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EC90C4AF67; Tue, 7 May 2024 23:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123514; bh=mPcqWpgLLmQeWUDSJ4hNN9EzC8IWpkeYOeDyImY9/zI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KRDy9+kn2xhSxRz+hJW2AaYQarIqR1aFl4isVZP9CrcDqM6yA0OFed3YBWnAKU1/3 Mm2iMwFuQRRqB6sDigTMq4BL8qu0M1Qb302/j2zuUrY442VTWBiA3fsPcOk8T7jw+G 1zeM9vIzToi0+T6Qy+rpoHLVNtAd4bBE551XBQlpg26AIgzuwfVCT/vq5OXJBbLJeW yYumM6xUL66EjMNEDUQHgvrzL75HCdvMAAqk1Q0s90j8ynrwn2HT5vPNnIxWomr7k6 MVYqdBmrAE5UjceJiAx7yWD/GH2jQS41jiRws8doMvVSkjk8FFDUrA+0HtRKt90uRY nQPzLMCRfy15g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sung Joon Kim , Anthony Koo , Wayne Lin , Daniel Wheeler , Alex Deucher , Sasha Levin , harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, alvin.lee2@amd.com, jun.lei@amd.com, wenjing.liu@amd.com, aric.cyr@amd.com, dillon.varone@amd.com, chiawen.huang@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.6 34/43] drm/amd/display: Disable seamless boot on 128b/132b encoding Date: Tue, 7 May 2024 19:09:55 -0400 Message-ID: <20240507231033.393285-34-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231033.393285-1-sashal@kernel.org> References: <20240507231033.393285-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.30 Content-Transfer-Encoding: 8bit From: Sung Joon Kim [ Upstream commit 6f0c228ed9184287031a66b46a79e5a3d2e73a86 ] [why] preOS will not support display mode programming and link training for UHBR rates. [how] If we detect a sink that's UHBR capable, disable seamless boot Reviewed-by: Anthony Koo Acked-by: Wayne Lin Signed-off-by: Sung Joon Kim Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 46b10ff8f6d41..72db370e2f21f 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1710,6 +1710,9 @@ bool dc_validate_boot_timing(const struct dc *dc, return false; } + if (link->dpcd_caps.channel_coding_cap.bits.DP_128b_132b_SUPPORTED) + return false; + if (dc->link_srv->edp_is_ilr_optimization_required(link, crtc_timing)) { DC_LOG_EVENT_LINK_TRAINING("Seamless boot disabled to optimize eDP link rate\n"); return false; -- 2.43.0