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 E5619C83F34 for ; Thu, 17 Jul 2025 16:55:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A4BE10E854; Thu, 17 Jul 2025 16:55:52 +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="AOdaeR1L"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id B83BB10E854; Thu, 17 Jul 2025 16:55:49 +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=ZWOI8uaSWrNkt4vGQRHDbItb4oYfjIMC7HXKynH93kk=; b=AOdaeR1LoQA23qZj29F17My4Ib OWIQjrLP6j7wW/Zm+BPZTaIp9Uw1p5TZfsYWoptzVaWbKi2XVe55tXoQUznu2qZMJQs6ECS2R3dtl iG7vdwr7OppHTRAXvfyzVguw8kXyRle6SSn4ShnjfhYRmfsd58s9lMX7VC5h3ft46x2MkPoo0ovNl mBiB9O6zjwXfC6EEqE2Kg3zfVTPwsqoL+8cSdtEYqKvppxRyDhv34wRDNUNgZoGKNO7VAq6IrdXbv uCsrGA5D6hQ7npb8TvPKnyPmn5ZSc0K4iMbNdXHlUFtHI99VsWk5okiBU7s9oo87bRwt08QeS49Fr zZly6niQ==; 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 1ucRta-000EFZ-F0; Thu, 17 Jul 2025 18:55:46 +0200 Received: from webmail.service.igalia.com ([192.168.21.45]) by mail.igalia.com with esmtp (Exim) id 1ucRtY-009jPL-0R; Thu, 17 Jul 2025 18:55:46 +0200 Received: from localhost ([127.0.0.1] helo=webmail.igalia.com) by webmail with esmtp (Exim 4.96) (envelope-from ) id 1ucRtX-00FE8U-1P; Thu, 17 Jul 2025 18:55:43 +0200 MIME-Version: 1.0 Date: Thu, 17 Jul 2025 15:55:43 -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: <70ac7b1e-9a28-45ff-b7b2-ab0f4fe9030a@amd.com> References: <20250717143738.84722-1-mwen@igalia.com> <70ac7b1e-9a28-45ff-b7b2-ab0f4fe9030a@amd.com> Message-ID: 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 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. 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); >> } >>