From: Anthony Pighin <anthony.pighin@nokia.com>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: Madalin Bucur <madalin.bucur@nxp.com>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
Claudiu Manoil <claudiu.manoil@nxp.com>,
Camelia Groza <camelia.groza@nxp.com>,
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
Date: Thu, 3 Dec 2026 18:05:04 -0500 [thread overview]
Message-ID: <20261203230504.1870935-1-anthony.pighin@nokia.com> (raw)
In-Reply-To: <axHal0I1elB82tF_@lxl00025.wbi.nxp.com>
Hi Vladimir,
On Thu, Dec 03, 2026 at 11:52:15PM +0200, Vladimir Oltean wrote:
> You're not being clear. Does your UEFI boot firmware actually produce
> such a dirty cache line for FBPR? It means the firmware has also written
> in the FBPR DRAM area, it's not sufficient to have mapped it.
No, not that I have been able to show. On our board FBPR lies inside an
EfiLoaderCode allocation, so the boot chain most likely wrote it, but in
eight boots no line of FBPR was still cached when BMan was given it.
> What problem were you actually seeing that led you to send this patch?
Rare crashes in the DPAA Rx path during boot, on a buffer at physical
address 0 (x4 is phys_to_virt(0)):
[ 20.202676] Unable to handle kernel paging request at virtual address ffff4bcd800000f8
[ 20.258552] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 20.341545] pc : rx_default_dqrr+0x30c/0x530 [fsl_dpa]
[ 20.346687] lr : rx_default_dqrr+0x2fc/0x530 [fsl_dpa]
[ 20.412177] x5 : 0000000000000000 x4 : ffff4bcd80000000 x3 : ffffdec2e49fe008
[ 20.430868] Call trace:
[ 20.433305] rx_default_dqrr+0x30c/0x530 [fsl_dpa]
[ 20.438095] __poll_portal_fast+0x190/0x1b0
[ 20.442276] qman_p_poll_dqrr+0x1c/0x30
[ 20.446105] dpaa_eth_poll+0x30/0xc0 [fsl_dpa]
After the fact, we added a check to rx_default_dqrr() that drops any
frame whose buffer address is zero and logs the first five. One board
then logged, at boot:
rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=97, status=0x4
rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=342, status=0x4
rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=342, status=0x4
rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=342, status=0x4
rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=342, status=0x4
The address is zero but the offset, length and status are real, so FMan
received into zero-address buffers acquired from BMan, rather than QMan
handing out a zeroed FD. I found no software path that releases a zero
address into the pool.
A zeroed FBPR fits that. It holds eight buffer addresses, so the five
logged, all within 90 ms, fit one zeroed record. What I have not found
is what zeroes it on the failing boots.
Thanks,
Anthony
next prev parent reply other threads:[~2026-12-03 23:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261203160158.766599-1-anthony.pighin@nokia.com>
[not found] ` <AM0PR04MB119140B526AAAD4A5DC387C19EC4B2@AM0PR04MB11914.eurprd04.prod.outlook.com>
2026-12-03 17:01 ` Vladimir Oltean
2026-12-03 18:59 ` Anthony Pighin
2026-12-03 21:52 ` Vladimir Oltean
2026-12-03 23:05 ` Anthony Pighin [this message]
2026-12-03 19:14 ` Christophe Leroy (CS GROUP)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203230504.1870935-1-anthony.pighin@nokia.com \
--to=anthony.pighin@nokia.com \
--cc=camelia.groza@nxp.com \
--cc=chleroy@kernel.org \
--cc=claudiu.manoil@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=madalin.bucur@nxp.com \
--cc=stable@vger.kernel.org \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®