Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66D48606A327 for ; Tue, 1 Dec 2026 19:03:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=Y1vr6oMc Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 02A6710FC03; Tue, 1 Dec 2026 19:03:52 +0000 (UTC) Received: from BL0PR03CU003.outbound.protection.outlook.com (mail-eastusazon11012069.outbound.protection.outlook.com [52.101.53.69]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E34110FC28 for ; Tue, 1 Dec 2026 19:03:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GJQqcfL1KyySWhhmqNqwfHPaTY3zgHdo3LrcCH8MAAiIEQNIllse8alMkZwjfcKiHV0fLwPZ0344yQjgV38ZM2LtAkxELiDLHHCYmEoGpvpBv9L0QYqkNKUudQ/129i8nZ6VXwIToIhlFsgsHjXApzzDC+qpxtWCi56vgKn2fHaksdO03kgrEyS0n1ulHmLLpJP5ZiKNthQxPlGYTUBb4Tfb9rWbHPy+eKnSXe2xxFI9HBqqgqWFuuET+YTLGzDBH2D8j9FMUwLmfVwaCfA8vGnpb2/u+HN40j8ReiI9zCm7sk14LZ1Jaa/iEGSQk0j6kMiVWG8PGOaOx5yq5CJ6ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RyQiLFUWLwYiW68w4OS2brb0mXNeWINEQV3dlYRQeu4=; b=ei3bK2Q72eod5feQ925iRSybvS1AUxgQGDOLm/+9rRx5bujYZ7kl4YRuxch0fpuQqCuqIRb4vHOy3L/FQOBiiCATwqqB8ilSIRiREXbRKukb1kNQ1Q8tzmH/ECingZbJHBw1+onrmOUuqrX27HWAb4gAYn6Dq9qAnNhEjI7hRHyssM1XW+TtU0Kvb3QRucwFDnea+yJgizctO1p2H3tDpOW45GCUjT6JtCguimRZGlSipvb1TP762xV+QnSvF95vS3UzGn0hk3l+JAPbDPNSbVI/PZX2SVue4QygJNj0+V6ZJsr3ajV6vnzNv4jjFdHwSyp0fUzQNvWaFlu3lvxhmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RyQiLFUWLwYiW68w4OS2brb0mXNeWINEQV3dlYRQeu4=; b=Y1vr6oMccaLpSx3kfoRlC7znS7Nv4s/nvqrDoqjMXctG4s0jW0+zecGCfTik8Sh4OKvX/3kGLtAWDtbwGBVAnEXY9wFBoM1bsIeFS0XrodMBR/lqEPI29c43zR4Z0G0CEPTEkFlffICXtHioYqLD/9UYtshv3HXYokIxkwJo2bo= Received: from DS1PR02CA0010.namprd02.prod.outlook.com (2603:10b6:8:452::18) by DS7PR12MB8289.namprd12.prod.outlook.com (2603:10b6:8:d8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.10; Tue, 1 Dec 2026 19:03:38 +0000 Received: from DM3PEPF000265B0.namprd02.prod.outlook.com (2603:10b6:8:452:cafe::4b) by DS1PR02CA0010.outlook.office365.com (2603:10b6:8:452::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 19:03:38 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by DM3PEPF000265B0.mail.protection.outlook.com (10.167.23.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Tue, 1 Dec 2026 19:03:37 +0000 Received: from georzhanmkm.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Tue, 1 Dec 2026 13:03:24 -0600 From: George Zhang To: CC: Harry Wentland , Leo Li , Aurabindo Pillai , Roman Li , Wayne Lin , Tom Chung , "Fangzhi Zuo" , Dan Wheeler , Ray Wu , Ivan Lipski , Alex Hung , James Lin , Chenyu Chen , Tony Cheng , Jun Lei , George Zhang Subject: [PATCH 22/30] drm/amd/display: Flip every DPP pipe of the stream in DC2 Date: Tue, 1 Dec 2026 13:57:58 -0500 Message-ID: <20261201190245.360906-23-george.zhang@amd.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261201190245.360906-1-george.zhang@amd.com> References: <20261201190245.360906-1-george.zhang@amd.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM3PEPF000265B0:EE_|DS7PR12MB8289:EE_ X-MS-Office365-Filtering-Correlation-Id: 8db1e2dc-fc9b-4958-40d9-08df4fddce79 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|23010399003|36860700016|82310400026|376014|56012099006|261026140227099003|10067099003|261028144727099003|261021123027099003|261026121527099003|261021121427099003|261022105027099003|261102123227099003|261009223027099003|22082099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info: SdFWyQ+7s0lMF0M+vwAcqEbAl8euto7/Ta2tf8y7tKO+/qP/eunk0lhbxrUTuzfokEwnP6niwmmRw6rwXJXNUkKUP/Ep3D0OLCFYUsOfGXlHzwEOMJz8/FfIYSDU74KZx56/mky4o1+yOSlr30BTg6OjQR2p/pdJnB1oa/AGQj272stK889v4YbbUYIZgx3u6LBNBo7hZ9ZNAZhKJ7b2KIJXuVp4UifpyhyCaGrR0Cqv9mP3S5q7vctgD+/GVOswXGpPdPWYasd7FlukpPBbEZDGTe0Zj13pB2SKsBeNFYjkgyj/z3xrGZMar5Oo13VpJ44ssv/Ayo2Q1/JNbZ0bHNuRRgHhOvljytCoHPMkopCXRPJazpehxRzY7Vo6iJFz0zoxxWrPu72JnLPidL2NpJwZoRmwM8RUgzeDTwyMgkkTWlz+J/3/8WiGv7qfeazSHkZ+KHEn5513Ad0/5I64e1G8eOdaBfdt0zVvJhXRTpy8KgamFcOG4VLJe6z0pU9qsksSJ8jRfxOWdFyNoGmg6Aw5/Ddn9VXXsph8vLzpalNp7aiGxJeasC5EvxkzUUhYcsHQP3M0M1DvqOE0jhk8gLwMDE1/yOXBry+CXmAkbqxBJOBTMo9jhbPH3LKQZZk+3UwWc5TRZH0PBmn87JbMZuD5zvF0cOjM8wYw+1wzQUlEoJsk7sszwbWwfg/OGY7PWZvOwbRBvcR9PYxBmG5svw== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(23010399003)(36860700016)(82310400026)(376014)(56012099006)(261026140227099003)(10067099003)(261028144727099003)(261021123027099003)(261026121527099003)(261021121427099003)(261022105027099003)(261102123227099003)(261009223027099003)(22082099003)(18002099003)(11063799006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GIhb5aWPRyxOBmTYMD+39ba84CRwHWlPRnwVIwUvfd9Cq8MlgG+xOKGtCY5g/mWbNftzTgtG9qXVffzH0PSRWdyUTiUo34vHOziDbSPars+4Pdh8b/+SjOZ6AlySiwlpJd6RaBnj3GdNA6Hxw97oeI6jWKVoMUuztwhHXsOdpYCihRkUB0nTzlAt54+UmSczpoIcYsjJqK0x9gIaerZyQtOJZwPx+aXttKGF0jsdrLEzKo2c6DlS5CKyad05H2QfM/WTHR8kEN17/1lVqDtE1JQCgU7ekzJn1qZrSxOaTkog8gP4jDk29RmoTIL1I2Z3BQcKiqpkRlcT0E2oz9oLbaaX0W1YI9vXyEwgeGfi32rimbOaC4Wg2MDt0u7ePVYlhG173kOa/CiQDp9ZkBdxKHYdFRGYum5/9ggd/XxLLCyvxY3JvRgMdd8HxIi/aMZ4 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 19:03:37.9698 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8db1e2dc-fc9b-4958-40d9-08df4fddce79 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM3PEPF000265B0.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8289 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "amd-gfx" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Tony Cheng dcn401_check_flip accepted one plane on one OPP head and one DPP pipe, so MPO and ODM flips on Core2 failed. The flip steps already run per DPP pipe in DC1's order, so the check now accepts any pipe layout whose planes all carry an address-only update. A plane without an address update stays rejected, because the address step does not skip it as DC1 does. Cc: Jun Lei Signed-off-by: Tony Cheng Signed-off-by: George Zhang --- .../dc/bls_builder/dcn401_seamless_builder.c | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bls_builder/dcn401_seamless_builder.c b/drivers/gpu/drm/amd/display/dc/bls_builder/dcn401_seamless_builder.c index 38b40fe8b02b..69d6c55e78e8 100644 --- a/drivers/gpu/drm/amd/display/dc/bls_builder/dcn401_seamless_builder.c +++ b/drivers/gpu/drm/amd/display/dc/bls_builder/dcn401_seamless_builder.c @@ -1055,32 +1055,37 @@ static bool check_no_stream_update_flags(const struct dc *dc, } /* - * Any other plane update bit adds a step to the flip. DC1 hands an - * offloaded flip to HWFQ. With triple-buffer flips, the pipe lock is not - * a TG_LOCK leaf. + * Any other plane update bit adds a step to the flip. A plane without an + * address update would still get HUBP_UPDATE_PLANE_ADDR, which DC1 skips, + * so every plane of the stream flips. DC1 hands an offloaded flip to HWFQ. + * With triple-buffer flips, the pipe lock is not a TG_LOCK leaf. */ -static bool check_one_address_only_plane(const struct dc *dc, +static bool check_address_only_planes(const struct dc *dc, const struct dc_state *current_state, const struct dc_state *new_state, unsigned int i) { struct pipe_ctx *dpp_pipes[MAX_PIPES]; const struct dc_plane_state *plane; + int j, n; (void)dc; (void)current_state; - if (new_state->stream_status[i].plane_count != 1 || - resource_get_opp_heads_for_stream(new_state->streams[i], - (struct resource_context *)&new_state->res_ctx, - dpp_pipes) != 1 || - resource_get_dpp_pipes_for_stream(new_state->streams[i], + if (!new_state->stream_status[i].plane_count) + return false; + n = resource_get_dpp_pipes_for_stream(new_state->streams[i], (struct resource_context *)&new_state->res_ctx, - dpp_pipes) != 1 || - !dpp_pipes[0]->plane_state || - !dpp_pipes[0]->plane_res.hubp) + dpp_pipes); + if (n <= 0) return false; - plane = dpp_pipes[0]->plane_state; - return dc_check_address_only_update(plane->update_bits) && - !plane->triplebuffer_flips; + for (j = 0; j < n; j++) { + plane = dpp_pipes[j]->plane_state; + if (!plane || !dpp_pipes[j]->plane_res.hubp) + return false; + if (!dc_check_address_only_update(plane->update_bits) || + plane->triplebuffer_flips) + return false; + } + return true; } static bool dcn401_pipe_on_either(const struct dc_state *current_state, @@ -1156,8 +1161,8 @@ static enum bls_builder_result dcn401_check_flip(const struct dc *dc, CHECK_UPDATE(no_subvp, "subvp is set"); CHECK_UPDATE(no_dmub_work, "psr, replay, abm or hwfq needs dmub"); CHECK_UPDATE(no_stream_update_flags, "stream update flags are set"); - CHECK_UPDATE(one_address_only_plane, - "stream has odm, or not one plane with an address-only update"); + CHECK_UPDATE(address_only_planes, + "a plane of the stream has no address-only update"); CHECK_CONDITION(triple_buffer, "triple buffer is disabled"); CHECK_UPDATE(no_immediate_dcc_flip, "immediate flip of a dcc surface"); CHECK_UPDATE(no_mcm_luts, "an mcm lut is enabled"); -- 2.56.1