From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795034893; b=P3gcSw8aVGEQ4W840hqteYGs0JF5OeUVFE6Ox3Ogtz7+1JriOWZV3uJIMnRTBA0blOPo A4L8I2rKFvn6TT/w2+EkhGk8E9sTGYgweBpNyxTqmj495s6O1VoNR6n3oJm6lA4Szzs20 IKyCrD/KYZPGEh2mO80kphTgFQgv86FFqnHtoduKPqboKWTh/6DGeHmIdrqHw4WfaLOL+ UaHQJMNw5IZ17LiRRxPbEJ/hWMFivOv0AQewBd7ZZz6ca/TVq7Ol2cGEtS3GZBaoGYLA0 elq1iVEb/rVwQov1nN6UkSllVHPEaStzsS/X0cBr+K9UL9S/yQfLyEQKlBDpEUGvvyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795034893; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=q4/HvmTZxNzW828w0JCaBXof55joqhklcgpbVBYyj8w=; b=1usPYDxEVElKeRgFtpZ27Df2R8mjj/8g7L+gv1UqNZpNPmRkW6ez3CpsvWWyyvsC0JOR re8lXThDaENTsD8pH2++E0/kbyeFnWFoWpPdvk2tdOQTjE/mNTD/6oLznStSFFwHICWzj 4j9qJncPZBduCSkotqfz8ChjG2KbyNyGTzF6HHqJwYTvI+zcvCXLaJ1py7ssGA45tfzHh wwS2PxreQD8YRyo7eIfPNzpDon1Mul3NM06+omVCYJM6BQvU6X92+lqf8+HQHv2pI+KiA 5JS48CN1A/fFuD/UaLOSvlPi0/ZS/UGHhgCzk3YsIga9okEsKGDQ6J7koXHbsKsHnqQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="elFa/EUW"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94A79606A31C; Wed, 18 Nov 2026 20:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=elFa/EUW Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC551F000C4; Wed, 18 Nov 2026 20:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795034893; bh=q4/HvmTZxNzW828w0JCaBXof55joqhklcgpbVBYyj8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=elFa/EUWKgjGX3gBxIrhkUvnxGCqKXT/e2PNXqww+wsPpBxyc31FS+DkjxJqTAmaJ SNwEU6n0aqB2OAIMcR6OnQATJB4upgiQmcAdFutbQK7ibZJoMGPp3tXl6MHHZSq1aZ 4dBHRCyBJyGEMJ+k618QSc73Hkzw5T4/2KTX070I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Timur=20Krist=C3=B3f?= , Mario Limonciello , Alex Deucher , Sasha Levin Subject: [PATCH 6.6 0530/3318] drm/amd/display: Fix fast updates on DCE 6.x Date: Wed, 18 Nov 2026 15:19:12 +0100 Message-ID: <20261118150333.116648417@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150313.527275416@linuxfoundation.org> References: <20261118150313.527275416@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Timur Kristóf [ Upstream commit 88427119e1f039c8cdffd63726c136a986ef519f ] DCE6 should use legacy fast updates, just like all DCE8 - DCN2. Set that flag for DCE 6.0, 6.1 and 6.4 (all DCE6 versions). Technically DCE6 should have been included when the fast update code was refactored, but it just happened to work until now. A recent commit "Attach only plane updates that actually changed" has exposed this issue because with that commit, DC accidentally took the new fast update code path for DCE6 as well, which caused it to boot into a black screen with a flip done timeout. This fix should be backported to all kernel versions that have "Refactor fast update to use new HWSS build sequence", but this patch won't apply cleanly to older kernels due to another refactor in "Remove dc param from check_update". Fixes: 0baae6246307 ("drm/amd/display: Refactor fast update to use new HWSS build sequence") Fixes: 9ec11bb842b6 ("drm/amd/display: Remove dc param from check_update") Signed-off-by: Timur Kristóf Reviewed-by: Mario Limonciello Link: https://patch.msgid.link/20260923122033.1046651-1-timur.kristof@gmail.com Signed-off-by: Mario Limonciello Signed-off-by: Alex Deucher (cherry picked from commit 698fda6e360625850413a2d1a90b72ae5f03073d) Cc: stable@vger.kernel.org [ sashal: Set enable_legacy_fast_update in debug_defaults (dc_debug_options) instead of a new dc_check_config struct, and dropped the is_apu context line in dce64_construct(). ] Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c b/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c index 556c453666a74..c069cf0ef4bd7 100644 --- a/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c @@ -438,6 +438,10 @@ static const struct dce_abm_mask abm_mask = { ABM_MASK_SH_LIST_DCE110(_MASK) }; +static const struct dc_debug_options debug_defaults = { + .enable_legacy_fast_update = true, +}; + #define CTX ctx #define REG(reg) mm ## reg @@ -964,6 +968,7 @@ static bool dce60_construct( dc->caps.max_cursor_size = 64; dc->caps.dual_link_dvi = true; dc->caps.extended_aux_timeout_support = false; + dc->debug = debug_defaults; /************************************************* * Create resources * @@ -1158,6 +1163,7 @@ static bool dce61_construct( dc->caps.i2c_speed_in_khz = 40; dc->caps.max_cursor_size = 64; dc->caps.is_apu = true; + dc->debug = debug_defaults; /************************************************* * Create resources * @@ -1355,6 +1361,7 @@ static bool dce64_construct( dc->caps.max_downscale_ratio = 200; dc->caps.i2c_speed_in_khz = 40; dc->caps.max_cursor_size = 64; + dc->debug = debug_defaults; /************************************************* * Create resources * -- 2.53.0