mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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: Fri,  4 Dec 2026 09:03:29 -0500	[thread overview]
Message-ID: <20261204140329.2269842-1-anthony.pighin@nokia.com> (raw)
In-Reply-To: <axKPkV_IfO9WGtU8@lxl00025.wbi.nxp.com>

Hi Vladimir,

On Fri, Dec 04, 2026 at 12:35:23PM +0200, Vladimir Oltean wrote:
> The fact is that I don't see how a zeroed FBPR could possibly fit your
> symptoms.

You are right. I tested it on an LS1043A with a private pool (BPID 1)
of 4096 dummy addresses. I rewrote one stored FBPR in DRAM through a
non-cacheable mapping, then drained the pool, with EMCI masked in
ERR_IER so its status stayed latched:

  FBPR rewrite                  zero addresses  EMCI  buffers lost
  BP0-BP7 zeroed                8               no    0
  BP0-BP7 and FBPR_BPA zeroed   0               yes   3200
  BP0-BP7 and BPID zeroed       0               yes   2856
  all 64 bytes zeroed           0               yes   2904

Each time, CEAR held the index of the FBPR I had rewritten. A zeroed
FBPR drops the rest of the list and never yields zero addresses. The
reproducer behind my commit message zeroed only BP0-BP7, which is the
crafted case, so it does not support the field symptom. The BMan half
of the patch has no basis, and I'll drop it.

> Did you ever reproduce this problem with the upstream driver
> that you're patching?

We hit it with the upstream dpaa_eth driver (fsl_dpa). The oops was on
v5.15.135. The NULL buffer log is from v6.6.52, after we added the
check, which only drops and logs.

> You also didn't mention which interface was receiving traffic, and what
> BPID it was using?

mgmt/eth0, which is fm1-mac3 and the only DPAA interface on the board.
Its bpids file reads 0.

> To me, the more mundane explanation that
> someone is handing buffers with address 0 to bman_release() seems
> infinitely more likely than such an accidental corruption.

Releasing address 0 does reproduce the symptom, but not by any path I
can match to the field log. One all-zero FD enqueued to mgmt/eth0's Rx
error FQ gave:

  fsl_dpaa_mac 1ae4000.ethernet mgmt: Err FD status = 0x00000000
  rx_default_dqrr(mgmt): NULL buffer! format=0, offset=256, length=590, status=0x4

dpaa_fd_release() put address 0 into pool 0, and FMan received the next
frame into it. But that path logs "Err FD status" first, mgmt/eth0's
message level includes hw, and the field log has only the NULL buffer
lines. An all-zero FD on a Tx FQ was dropped without releasing
anything. I have not found what released the zero addresses on the
failing boot.

> Do you see the message below with the port under heavy traffic and the
> patch attached?

It does not appear to be traffic load dependent. Every hit came just
after the port was brought up, and in the v6.6.52 log the first NULL
buffer line is 1.2 s after link up.

The field logs can't show EMCI, since bman_isr() clears it without
printing it, so your patch would be worth having for that alone.

Thanks,
Anthony

  reply	other threads:[~2026-12-04 14:03 UTC|newest]

Thread overview: 12+ 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
2026-12-04 10:35           ` Vladimir Oltean
2026-12-04 14:03             ` Anthony Pighin [this message]
2026-12-04 17:06               ` Vladimir Oltean
2026-12-04 18:08                 ` Anthony Pighin
2026-12-04 20:49                   ` Vladimir Oltean
2026-12-04 23:46                     ` Anthony Pighin
2026-12-05  0:00                       ` Anthony Pighin
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=20261204140329.2269842-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®