Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp171427lqo; Tue, 7 May 2024 16:32:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxKoLG9TWiPKTMMWl9Lsl1HtNxCf63csU4TR3qA/VE2Vuy3wFnULviCA+qhJdnUFCZV6E8b+jECeQQFo11KV2dTOgXpwYbMweOKbMw7w== X-Google-Smtp-Source: AGHT+IFIOWkGAoy84lvpkIY3NWL39G6tOaOnmaMK+GGzcAQ8kNyln23534xfVQDKyKP68d3MWczX X-Received: by 2002:a50:ab18:0:b0:56b:829a:38e3 with SMTP id 4fb4d7f45d1cf-5731d9b7711mr837885a12.16.1715124761209; Tue, 07 May 2024 16:32:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715124761; cv=pass; d=google.com; s=arc-20160816; b=Je5y0a3h+8wlLEwWt6sppFbDQ3PrGyAgsPk0t7D0OvU6skcgc5hLNP0Px/q9MAcIf8 EzMFRjFuu1aMY1KUg5bUj9wJ2i03Vtl8oEkEX1fZyjefFhEonASRaLQ4vhdJlZ1QSlpp Tl4M2O62eG6+KlFjmTs6TMTLg20VeniI0PyT7AIuHpT4yvS9tCvoIw9V0Bf0N252gbO8 gXWhrkB2A7bobhKxqPkTVCRm1+W+dqp+cKrrv2svoSyI1DcJTq/sGx+eAMITqqnbFpeE gty/JFcmEtiUHcg2wgMSAI3dinoAv5gjcs0qqEjCCqNyNyPv5JEUIm3Tk0zbddYnFwB4 c25g== 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=AOOPp4YpYBBahLePXsf9rDlL+ylrnlcobuVhfJOWMc4=; fh=N1kzGAG0mHStvUG+hSjoEJb9cuNOpTgE3wY5rQYPqTE=; b=LrNj4+R+ioTnR6kF+klcCFV7QJaaTL8O8Ex3TQ1FNY3GAKO0NpNfKdXIxCO/ss99Xs V0U5xxcy5/z4n7Nlc7xo6U9TbCtNqGAHuWZJn2XIgZdRL1V5RpaTAUSL7qiGGNycMcLh oiRmK+CHiqncZszuMU8YtGXrymXjiDeL73VLQS9V0I2JwWSkWIO8gMTX4Fx7QsBZh+dw HggYnJEsAAp95FVTR5PWuCF5GnVeEbbR07Vr1EuAyHt5MCL0Ui0559bQRLBY/zi3fta5 VnKuse+oRZYtUCmiPJmho5uZvLYw3Ph7ZNnj9kwReWvRAXEHtUMN6XuoL4P2JctFPRrP DIcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FvygdZcl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x40-20020a50baab000000b0057308f4627dsi1882002ede.456.2024.05.07.16.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:32:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FvygdZcl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172385-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C40AC1F21438 for ; Tue, 7 May 2024 23:32:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6C6585952; Tue, 7 May 2024 23:09:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FvygdZcl" 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 CE50E135A44; Tue, 7 May 2024 23:09:44 +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=1715123384; cv=none; b=K2KkdrvYNUUHhwTPNlktm+cRV2y637Tp6OmecqCO29cazFOyv//JytIGptA7ISVyxTb3F8pCP+4NRS6qjEZaQlZIywTvfbk+wbzyna+gi/z/+MuQ4ueQuzcBWFKig1waPoUYtiAEPMeH/UOoBkjzJq3X3koCW7SP8+EWxQmnquY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123384; c=relaxed/simple; bh=Z1MO1ZagCXquTyQi4RXjNlyeIi8Vavtv2regL3YQls4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oKfatxou494+8l6KDgS4RkPeHHT4fcfvE2HJTB0T80fyOfSpUmYxWV/717aTNiD7+xbiD1c0ZkHjE1uL4PDiwEZRG5PjEBb8VbdvbENpQx/t3xU0YXT9xOAmdlQMS6SJKh6uE68JwJ33D6FV1KG+JAoUtTRf4N7brxBdJ9DUuiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FvygdZcl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DE38C4AF68; Tue, 7 May 2024 23:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123384; bh=Z1MO1ZagCXquTyQi4RXjNlyeIi8Vavtv2regL3YQls4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FvygdZclTQBMnefzCqISuxqBnwZCrjcvAcWsDyk0zKpFLpTuCsW4CylY/i68rZs8m sNePKhY+F/ae2ZfHkm6FBglfY+h4cM/tZp6O3u/oipJHGZZkw2vpqjgBxOLXcR0eGg E7xavrZBUCWLCHxRmIRlufUX2ph/GjT7jhNQ9oq2VrhYryHDb0St2P7ysX9rTZGW4S f1hadcNqGiLCyRHMcpXe0g80jYPsqM3hty2PFv545Dp2gktqU+cde+CiIwvxr0m0ev MUYYxlRViNGbqZy9BKQKMdy1fxUpJXEt8+FiL7+ZkfIxuswONdGsHAOfrbCvTRe9Gs d2m5LGMc3nMcw== 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.8 42/52] drm/amd/display: Disable seamless boot on 128b/132b encoding Date: Tue, 7 May 2024 19:07:08 -0400 Message-ID: <20240507230800.392128-42-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507230800.392128-1-sashal@kernel.org> References: <20240507230800.392128-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.8.9 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 3c3d613c5f00e..040b5c2a57586 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1804,6 +1804,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