The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH net 0/2] octeontx2: quiesce stale mailbox IRQ state before request_irq()
@ 2026-06-11 16:00 Runyu Xiao
  2026-06-11 16:00 ` [PATCH net 1/2] octeontx2-pf: clear " Runyu Xiao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Runyu Xiao @ 2026-06-11 16:00 UTC (permalink / raw)
  To: netdev
  Cc: sgoutham, gakula, sbhatta, hkelam, bbhushan2, andrew+netdev,
	davem, edumazet, kuba, pabeni, amakarov, tduszynski, linux-kernel,
	jianhao.xu, runyu.xiao

Both OTX2 mailbox registration paths currently install their IRQ
handlers before clearing stale local mailbox interrupt state, even
though the code comments already say that the clear is needed first to
avoid spurious interrupts.

This issue was found by our static analysis tool and manually audited on
Linux v6.18.21. Directed QEMU no-device validation further showed that
the real PF and VF mailbox handlers are already reachable in that
pre-clear window and can touch the same mailbox and workqueue carrier
before local quiesce has completed.

This series keeps the change minimal:

- clear stale mailbox interrupt state before request_irq()
- keep interrupt enabling after the handler is installed

That closes the early-IRQ window without introducing a new
enable-before-handler window.

Patch 1 fixes the PF mailbox registration path.
Patch 2 fixes the VF mailbox registration path.

Build-tested by compiling otx2_pf.o and otx2_vf.o.

No OTX2 hardware was available for end-to-end runtime testing.

Runyu Xiao (2):
  octeontx2-pf: clear stale mailbox IRQ state before request_irq()
  octeontx2-vf: clear stale mailbox IRQ state before request_irq()

 .../ethernet/marvell/octeontx2/nic/otx2_pf.c  | 20 ++++++++---------
 .../ethernet/marvell/octeontx2/nic/otx2_vf.c  | 22 +++++++++----------
 2 files changed, 19 insertions(+), 23 deletions(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-13 22:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 16:00 [PATCH net 0/2] octeontx2: quiesce stale mailbox IRQ state before request_irq() Runyu Xiao
2026-06-11 16:00 ` [PATCH net 1/2] octeontx2-pf: clear " Runyu Xiao
2026-06-11 16:00 ` [PATCH net 2/2] octeontx2-vf: " Runyu Xiao
2026-06-13  7:20 ` [PATCH net 0/2] octeontx2: quiesce " Simon Horman
2026-06-13 22:13 ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox