Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9B07C83F1A for ; Thu, 17 Jul 2025 16:58:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3E0A10E867; Thu, 17 Jul 2025 16:58:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="N2cSwEHl"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1ADAF10E87B; Thu, 17 Jul 2025 16:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=f8VLtj0DREkXd+XA3KEkKEM6CK+U4XrL3ySW/2heEaI=; b=N2cSwEHl8M1sPwsXMl7vH1mc0e HhFE3uCicBPmcHTX9UI6XG5VIqIVAGQJU6oHWpxEyxkc0G5++ZQEPJdGgpd4GsUt74Np0Hu4Hr3G0 UJmeAAatRwJDXx+QQ9wtcwD++qKT97ruVfmGoR2PjcfG93u1BMj6MD9w67+3Hv49Y5WdmktkDb0eM aZiopNKWlHH4OhRz0QsJwneTuz+rQNuaWRLXmkCdoffyGdNsAukQ6GJDie1HdfHzOL87EDk8IArQz v0skXoORMvm+j4r7uzG6Q+YfTXCgcSDTpgJEY5Xp+eahq8H8Kt85mrIt6+I4InnXjzXWr6x19v+l/ GJyl53OQ==; Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine2.igalia.com with esmtps (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1ucRw9-000EJV-OR; Thu, 17 Jul 2025 18:58:25 +0200 Received: from webmail.service.igalia.com ([192.168.21.45]) by mail.igalia.com with esmtp (Exim) id 1ucRw7-009jZS-AA; Thu, 17 Jul 2025 18:58:25 +0200 Received: from localhost ([127.0.0.1] helo=webmail.igalia.com) by webmail with esmtp (Exim 4.96) (envelope-from ) id 1ucRw6-00FE9h-2N; Thu, 17 Jul 2025 18:58:23 +0200 MIME-Version: 1.0 Date: Thu, 17 Jul 2025 15:58:23 -0100 From: Melissa Wen To: "Limonciello, Mario" Cc: "Wentland, Harry" , "Li, Sun peng (Leo)" , "Deucher, Alexander" , "Koenig, Christian" , airlied@gmail.com, simona@ffwll.ch, "Hung, Alex" , "Liu, Charlene" , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-dev@igalia.com Subject: Re: [PATCH] Revert "drm/amd/display: limit clear_update_flags to dcn32 and above" In-Reply-To: References: <20250717143738.84722-1-mwen@igalia.com> <70ac7b1e-9a28-45ff-b7b2-ab0f4fe9030a@amd.com> Message-ID: <5f7e3fdc76b2939afc4d3c83a1d4b766@igalia.com> X-Sender: mwen@igalia.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On 17-07-2025 15:55, Melissa Wen wrote: > On 17-07-2025 13:39, Limonciello, Mario wrote: >> On 7/17/25 9:36 AM, Melissa Wen wrote: >>> This reverts commit e1bd5e0bb4ca0d633ad698abd3658f8265009b81. >>> >>> The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a >>> functional issue reported in [1] that was fixed by calling the >>> clear_update_flags() from commit 7671f62c10f2a. >>> >>> On Steam Deck, we use multiple hw plane color caps and up to two overlay >>> planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, >>> the driver split planes into two (with 4 pipes), but with 1 primary + 2 >>> overlays, we don't have enough pipe for splitting. Glitches appear in >>> this pipe-split transition of 1-2 overlay planes, if the driver doesn't >>> clear update flags. >>> >>> Besides that, the issue the commit e1bd5e0bb4ca tries to address [2] >>> isn't functional. >>> >>> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3441 [1] >>> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/4129 [2] >>> Signed-off-by: Melissa Wen >> >> Can you please double check the use case that prompted >> e1bd5e0bb4ca0d633ad698abd3658f8265009b81 in the first place? IE With >> this revert you proposed do you see a traceback on unplug of external >> display? > > Hi Mario, > > I don't see either traceback or REG_WAIT timeout when unplugging an > external HDMI-connected display. > I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there > is a very specific scenario that triggers this that I didn't cover. > > The only message on dmesg from this action is: > amdgpu 0000:04:00.0: amdgpu: pp_od_clk_voltage is not accessible if > power_dpm_force_performance_level is not in manual mode! > > Moreover, if I move to the Desktop mode (KDE), there is no message. ^ there is no single message on Desktop mode on unplug of external display. > > Melissa > >> >>> --- >>> drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- >>> 1 file changed, 3 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c >>> index c31f7f8e409f..7c48f72e5917 100644 >>> --- a/drivers/gpu/drm/amd/display/dc/core/dc.c >>> +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c >>> @@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc, >>> else >>> ret = update_planes_and_stream_v2(dc, srf_updates, >>> surface_count, stream, stream_update); >>> - if (ret && dc->ctx->dce_version >= DCN_VERSION_3_2) >>> + >>> + if (ret) >>> clear_update_flags(srf_updates, surface_count, stream); >>> >>> return ret; >>> @@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, >>> ret = update_planes_and_stream_v1(dc, srf_updates, surface_count, stream, >>> stream_update, state); >>> >>> - if (ret && dc->ctx->dce_version >= DCN_VERSION_3_2) >>> + if (ret) >>> clear_update_flags(srf_updates, surface_count, stream); >>> } >>>