Skip to content

eth: bnxt: fix IRQ notifier bugs

Jakub Kicinski netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4eth: bnxt: cancel IRQ notifier before freeing affinity maskdrivers/net/ethernet/broadcom/bnxt/bnxt.c+2 -22 repliesApplied
2/4eth: bnxt: keep the aRFS rmap updated when TPH is enableddrivers/net/ethernet/broadcom/bnxt/bnxt.c+15 -41 replyApplied
3/4eth: bnxt: decrease indent in bnxt_request_irq()drivers/net/ethernet/broadcom/bnxt/bnxt.c+25 -251 replyApplied
4/4eth: bnxt: avoid deadlock when canceling IRQ affinity notifierdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h+64 -252 repliesApplied

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchMichael ChanVishvambar Panth SBreno Leitao
1/4R-b
2/4R-b
3/4R-b
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net 0/4] eth: bnxt: fix IRQ notifier bugs

I was trying to make bnxt preserve IRQ mappings across reconfiguration. While hacking on that I noticed 2 bugs in the notifiers that should probably be fixed before development work.

First one is simple - TPH recofig makes aARFs not work. There can only be one notifier per IRQ and TPH "steals" the callback from the rmap updates. Fix by patches 1 and 2.

Second one is a deadlock between the affinity notifier and reconfig. This one is a bit more involved (patch 3 and 4).

Unfortunately, I can't really verify the problem or test the fix. I managed to get my hands on a system with an AMD Venice CPU which is supposed to support TPH, but the ACPI is missing some bits to actually advertise it. pcie_tph_get_cpu_st() returns -EINVAL.

This series would conflict with the affinity preservation which will need to go to net-next, so I don't want to wait until I can test.

Jakub Kicinski (4):
eth: bnxt: cancel IRQ notifier before freeing affinity mask
eth: bnxt: keep the aRFS rmap updated when TPH is enabled
eth: bnxt: decrease indent in bnxt_request_irq()
eth: bnxt: avoid deadlock when canceling IRQ affinity notifier

 drivers/net/ethernet/broadcom/bnxt/bnxt.h |   3 +
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 129 +++++++++++++++-------
 2 files changed, 91 insertions(+), 41 deletions(-)
Signature · 1 line
2.55.0