From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D4328606A32C for ; Fri, 4 Dec 2026 20:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=szH8i4To; dkim=pass (2048-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=YN1gRsUq DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To: Content-Type:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=Hl0cfgwOv+//V/0xrLRKRGR7BPesyYeQGCydwavTAPA=; b=szH8i4ToOCuHYlHHu6RLQf0VXh Y7inY+Zkyx2rPNqVj8yHb/qLk6uHuAAKGTaY+vxVdvZPgpyG/n/tDA+/OdKx/IUkgYAsxlJR4aG71 +APgq+WJgr2b5lG23uBVCVRVvn9BES+jgd64IFopF8kkbw3tCByunpDbPLhyJ4P7EJHRi+p1ZazYa 5jd/ud9UhBPI1SAlgYEfd+WY0NADaamfdXMlp96XosWEK+uR0A89xi6VBA4/67j7ySnFL/1/29Th5 I5GNuwfnXP1uDKogWoFQIqjCxTfzfddeJ47khkBvgeKuLlsYP+cg7kygtLRj+hMr+EmxY07FrnxYk 3lV6vjIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZaE1-00000001UEq-30CE; Fri, 04 Dec 2026 20:49:49 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZaDy-00000001UED-2ZQn for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 20:49:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sPEfNenNlytCpug/UuNgX6cj/y/iZGEDXS6930UFJAG3RLDoYVZ8k2KmJ6eXKjnf34mYRmJUjuKtdypYzSzFLnbCywXhZWkZgEPSKrFD2qhan5rx6qAb3GLNDuwDwExvg4FCJKCqvml2qzqfjH7BjxSiA/m45gaDyuDzgS6sg1gZDKm9SIPcX0M4oTbRST5qKl5Y3q1vc9mnyvsYYsEioY6Yhj6ARLzm7Y2GBIL6pIMMMVManl76MFAaS6cfs+5N1UBsRk4G7xCBfEMoYHv6qHdxdo7nbwDcgMt1w9KVQQV8IS+rDgC186AA0PYzuPd13IwnzE3fI4RZZDReYmempg== 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=Hl0cfgwOv+//V/0xrLRKRGR7BPesyYeQGCydwavTAPA=; b=v6nYhJnzhHPAPIvfoalDK2NMVJetRCiy6kNe1Vpx81jxmYYiv1dH/b0bmGZrrQLfkXpHEgf/wcQwP0qXiylx8q2PiZW0HPB7CkD7wWRXeoAOK/SOQO6Fo0mRrDKmplN2qjD/vyJvx7Qcv4YTNt1SJ/Y+SHjCSnEjZMResf8UGKiZgpWDTQQAJcRKKsyFDJV+SSRjTCqylJ9wpa4ejZZXukP163fXGABXkjsYycdqbQVygOdS0jaglyEYC6CfpLMVwnBzk+RONB8goVKft/ZPqNM92MO+ydBMDObhtnUJR1S2+fenKx0PWeOAZWRGILzgCKQa9QpfcxC686RzBfnIGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Hl0cfgwOv+//V/0xrLRKRGR7BPesyYeQGCydwavTAPA=; b=YN1gRsUqOVlN2qBUeEkuDfCEfZUgF/vxMmzIMjgUHehVBQlt4smvnfioKW9J8C6RatxOz1a+KbO9/X6Rw4q8Ed+Z8AUAo2f+lvqUOwjbgLh6FMI6nkfAbeU4XAT0ufnAvtgzB5em9w4tUvYWkNhDUeXzyOHhY+481H4uN/A0TWhQLiIUfbLY0wFJMcRtfk42vjVE20CxQa2cQiOYIu3j8+vpMNJoOU7h9unkaPZxh4czm4V8CPZN3chWdoFVHEIISCvrWi4p1BuhPfBa3RGLW8TI1Wcxp1nGtL3RdM+saK22x+h1UuLYlaAqc3xRXaaC96xRrhAxzqMSyWeY9wK8cw== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6900.eurprd04.prod.outlook.com (2603:10a6:208:17d::10) by AS8PR04MB7719.eurprd04.prod.outlook.com (2603:10a6:20b:29a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.13; Fri, 4 Dec 2026 20:49:41 +0000 Received: from AM0PR04MB6900.eurprd04.prod.outlook.com ([fe80::7fda:8431:ca1b:b023]) by AM0PR04MB6900.eurprd04.prod.outlook.com ([fe80::7fda:8431:ca1b:b023%4]) with mapi id 15.21.0688.011; Fri, 4 Dec 2026 20:49:40 +0000 Date: Fri, 4 Dec 2026 22:49:37 +0200 From: Vladimir Oltean To: Anthony Pighin Cc: Madalin Bucur , "Christophe Leroy (CS GROUP)" , Claudiu Manoil , Camelia Groza , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: fsl: qbman: flush the private memory before enabling QMan and BMan Message-ID: References: <20261204180819.2719449-1-anthony.pighin@nokia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204180819.2719449-1-anthony.pighin@nokia.com> X-ClientProxiedBy: VIUP296CA0065.AUTP296.PROD.OUTLOOK.COM (2603:10a6:800:337::9) To AM0PR04MB6900.eurprd04.prod.outlook.com (2603:10a6:208:17d::10) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6900:EE_|AS8PR04MB7719:EE_ X-MS-Office365-Filtering-Correlation-Id: 09207ed2-b989-46f8-7b78-08df52481e08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|23010399003|376014|10070799003|19092799006|22082099003|18002099003|56012099006|261102123227099003|261026140227099003|10067099003|261022075727099003|261028144727099003|261026121527099003|261021121427099003|261022105027099003|261021135927099003|261009223027099003|11063799006|5023799004|4143699003|6133799003; X-Microsoft-Antispam-Message-Info: XiEDYNMnCWAOcDzk1U0URm48n0hd75dfmt8Zaupn3lb2XyrqPogMm5i646QrEYmDvp/3wuQB6kXvQ/Krn24c7IDR7NCenH1iBoOUIG2ezF1Ri0CrQH5Zazh+F8rrrM2jNXyXVo/3hdWWAxkYjMBARK5B3nveaQXXuLDzvG2fRQy/OFh3uP0L9w2sMl/L60B2K9HNA3INzAXynZI+Bwv8PZHbYXahyAsJBWqhYOgXa0orEWbS3HtW8K7/+8Gz19lhdO2LZqcxy106JJl4CoyXIslIfj3QOeWu7erYTVMhANZaNTzQcgavyIJvV5Cr3hukZwynE9SnG6tRMiyGVYjCIWKEEjXNA+eB/Q8IYWtrfRh3hnMh5VPVmQnGPPSA2uF9YOuuXp3Lu7SX2bOHxjBE5e01hrLLUfzaqxY3raZf4l1nJHDssxviC6VqHuGa4+ePEgI39cN2zjzmMrRcml6BWvbRFVqR6OKOCtHb8if1116tlyBltNzf8CuSVQrtBPK1nZIy1w9enEEu9asDEDbmq0DX7TzCdGdCNbNUrUmEdIqr6RFtyc3DUZPlaqiMtgGCvgh0gOEtWwOYEKzgSoD02f2h7LtTpz0J/m8JTRpmnGRm3TpA9gS5HUn0YLwMBIZvuEPrlKPR+JdhVXdYzteAf8e7LqGyqZ+xzeVIAYYiJtU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6900.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(23010399003)(376014)(10070799003)(19092799006)(22082099003)(18002099003)(56012099006)(261102123227099003)(261026140227099003)(10067099003)(261022075727099003)(261028144727099003)(261026121527099003)(261021121427099003)(261022105027099003)(261021135927099003)(261009223027099003)(11063799006)(5023799004)(4143699003)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?stnc3Rj+gK7cis+/mF40WCyHz+zoXDtccTREGhZVHE7cwG2GXakwan0vHrkY?= =?us-ascii?Q?ZGWhTrA0jwgzBzjgye20klxtbR3ZA6HVcrvkybHE1qr9Rzk0IoQQ8Q3kiU4V?= =?us-ascii?Q?HVam6Ls5M41h5YM87ODSfJMIZZ91mEkYAdWv8/N2qSNFrZs6dYwnCJkgNuEN?= =?us-ascii?Q?ZBs1VH9m2xhK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?= =?us-ascii?Q?QG2BUfP9FAheXlddR2BqqtpKZzq5xYvc7f7Wb6vCZG6CX+5H2BXQZzo41Sc0?= =?us-ascii?Q?IkccfFcshMIlRe/OseJl3YfXSKTQsA1LvsDiF+vSlTmi8sYL+u2zCKDt3lDj?= =?us-ascii?Q?Q5Ml4fNxW2AWbTpEizJepCg5/PdAdcqktFm8Opi3KeikWZp57rnodgbgm611?= =?us-ascii?Q?7cjBxKJyu7lS4DjdillcdFyBTekzC/47tDGdWwFkn4Hl84DJ49zU21cR0kOX?= =?us-ascii?Q?RCvTo3PcweYaAH3mj73fJ4/nlZ7vm5VEmcYkEkkgl/Njk/tQoWY8NufaPyB4?= =?us-ascii?Q?EFeKRwLY+iIIvfNdXgFGX5Je5FQ9AD3sDHxzcvXAQg6lDtPSZ2+nuzC84zD3?= =?us-ascii?Q?l3cKhrYP7D4Pn81sq5l/leXkAwAzVlLjsmWhJXopjzBfb5KmbVGgop34Uwjz?= =?us-ascii?Q?ZZc5lzqS5cCPT3xvxcvcVcKxAcGtkjoce0xtaCNPS1eFAJdJoH95mrbXYGo0?= =?us-ascii?Q?J4WNJHxgL/87iz97npppvXze3vPgTECazjGLzaM3jbvAlwridlXUYep+u2Qh?= =?us-ascii?Q?XdjUOxCHJyyNfstgC9SUDIib/zvN8MDl2mxXYJSBd0hBlDsb+CI6XTrEw5KR?= =?us-ascii?Q?4XvfTYDEJLElvZU77HSom+30bLIr+Awwy7QTGCBBt2zIZzRdMg1n++kdsqiy?= =?us-ascii?Q?udf7il7MUocRz9r5Fss1JGVJHbvPVP+6yaAl7YwzuXDAr3eGhi1G+/wBguw0?= X-MS-Exchange-AntiSpam-MessageData-1: Vv/eEAAwc/l4vSo41R49JHaiHScn5E9DeVI= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09207ed2-b989-46f8-7b78-08df52481e08 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6900.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 20:49:40.7803 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OYiYchp6xHpI4urfRbkD4w+agAvOPZkhiMjEdU6VUIFqXpxMIzu0VdJb+p/RdZCzhE74Cww1ZovqB7GG+gonVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7719 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_124946_811250_B562AE39 X-CRM114-Status: GOOD ( 37.86 ) X-Spam-Score: -1.1 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 Hi Anthony, On Fri, Dec 04, 2026 at 01:08:19PM -0500, Anthony Pighin wrote: > Hi Vladimir, > > On Fri, Dec 04, 2026 at 07:06:03PM +0200, Vladimir Oltean wrote: > > If I'm right it also means your patch does not fix the bug you're > > actually trying to track down, correct? > > Correct. Thanks for pushing back on the FBPR theory. It was wrong, and > your questions are what got us to the real bug. > > > There is clearly a misunderstanding here. I never said an all-zero frame > > descriptor. I said the buffer address is zero. > > Understood, I misread you there. > > > I have a suspicion that your problem may be fixed by the patch below. > > Please try. > > It is, and thanks for digging into bman_release() to find it. Your > analysis showed exactly where to force the race, which is what made > a reproducer possible. > > I tested on an LS1043A board running v6.18.62 with CONFIG_PREEMPT=y, > where dpaa_bp_seed() runs during probe in udevd task context. > > First, without your patch, I added a debug hook to bman_release() just > before the second get_affine_portal(), where bm_rcr_start() has already > returned an entry but the portal is no longer held. The hook acts only > on the first two releases from dpaa_bp_seed(). > > On the first release the hook migrated the task to another CPU. > bman_release() filled the entry in the old CPU's RCR, then committed > the current entry of the new CPU's RCR, which had never been written. > > bman-dbg: migrate udevd/125 cpu 3 -> 0 (now 0), ret 0 > bman-dbg: pool 0 filled ffff800081225000 slot 0, committing ffff800080eb9000 slot 0 on cpu 0: bpid 0 bufs 0 0 0 0 0 0 0 0 > > On the second it made a nested bman_release() on the same portal, the > case your commit message describes. The entry the outer call committed > was all zeroes, as you expected. > > bman-dbg: pool 0 filled ffff800080eb9040 slot 1, committing ffff800080eb9080 slot 2 on cpu 0: bpid 0 bufs 0 0 0 0 0 0 0 0 > > That put 16 zero addresses into BPID 0, and FMan received 16 frames > into them 1.5 s after link up. > > [ 25.765468] fsl_dpaa_mac 1ae4000.ethernet mgmt: Link is Up - 1Gbps/Full - flow control off > [ 27.236335] rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=1514, status=0x4 > ... 15 more identical lines > > With your patch, the hook at the same point found preemption and IRQs > disabled and could not act. Each committed entry was the one just > filled, there were no NULL buffers, and mgmt passed traffic normally. > > The footprint matches our field reports. Recent hits on v6.6.59 and > v6.12.57 all come at boot, on mgmt, within a few seconds of link up, > with real lengths and parse status. For example: > > [ 31.769753] fsl_dpaa_mac 1ae4000.ethernet mgmt: Link is Up - 1Gbps/Full - flow control off > [ 32.939955] rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=1514, status=0x4 > [ 32.939982] rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=1514, status=0x4 > [ 32.939989] rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=1514, status=0x4 > [ 32.939995] rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=1514, status=0x4 > [ 32.940002] rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=1514, status=0x4 > > Those logs can't tell which of the two cases occurred. The migration > case needs no second caller, only a preemption in the window. Nothing > else releases buffers during probe on our board, so it is the likelier > of the two. You may want to add it to your commit message. > > Tested-by: Anthony Pighin Back so soon? I refuse this Tested-by tag. Having sat on a still unfixed bug which you so confidently thought was fixed by the patch you submitted, I would have expected you wouldn't be making the same mistake twice, yet here we are. The mistake, simply put, is this: the reason you are here is because you have access to a real world system which crashes in a very obscure way. Let's call that issue A. You've used an AI tool to get some ideas, which is fine, and you've found issue B. You've reproduced issue B by injecting a fault and you've AI-fooled yourself into thinking issue B is issue A. Now somebody else has given you a hint that issue C exists, and you happily injected another fault that confirms issue C exists. Understand the pattern? Unlike me, you have access to the real system with the real problem that bothered someone. You can plug this patch into that system and run a soak test. Granted, it is undecidable whether, after an arbitrary period of time T, a problem with an unknown trigger no longer reproduces because of chance or because it really was fixed. But there's no better way than checking the reproduction interval of the issue in the original system, and gaining a certain confidence level by soak testing in the same conditions, say, by twice or 3 times that amount of time. So, see you in a week from now with the tag, I expect no less. Please don't take this as a personal attack. What I really hope to achieve is to help you understand what Documentation/process/stable-kernel-rules.rst means when it makes the distinction between theoretical and practical bugs, and what you need to do to make your issue be taken seriously. In practice, theoretical bugs bother very few people and mostly for academical reasons. Yet the majority of submitted patches is on them, because people can rarely discern whether they will help anybody or not. > That leaves the QMan part of my patch, which you said you were already > writing a fix for. Having the full PFDR fix in one commit from you may > be the better approach. Or would you prefer a v2 from me with only the > QMan change? I'll wait until I have more confidence that the PFDR issue fixes the bug I'm tracking, then I will submit it.