[PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes

Koichiro Den posted 3 patches 1 month, 2 weeks ago
drivers/pci/endpoint/functions/pci-epf-test.c |  8 +++++---
drivers/pci/endpoint/functions/pci-epf-vntb.c | 12 ++++++------
drivers/pci/endpoint/pci-ep-msi.c             |  5 +++++
3 files changed, 16 insertions(+), 9 deletions(-)
[PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes
Posted by Koichiro Den 1 month, 2 weeks ago
Hi,

This is a small fix-only series related to the previous (v6)
doorbell-related series:
https://lore.kernel.org/linux-pci/20260209125316.2132589-1-den@valinux.co.jp/

These patches address a few independent fixes in pci-epf-vntb,
pci-epf-test and pci-ep-msi:

  1/3 fixes IRQ unwind in MSI doorbell setup (pci-epf-vntb)
  2/3 avoids free_irq() if doorbell IRQ was not successfully requested
      (pci-epf-test)
  3/3 fixes error unwind and prevent double allocation in
      pci_epf_alloc_doorbell() (pci-ep-msi)

These fixes were originally intended to be included in the next revision
of the main series. However, doing so would have grown the v7 series to
around 15 patches, so I am posting them separately to keep the feature
series manageable.

Kind regards,
Koichiro

---
Changes in v2:
  - Removed a minor refactoring part from [PATCH 1/4], keeping the iterator type
    int, rather than changing it to unsigned int.
  - Dropped [PATCH 2/4] (bounds check). It's a theoretical future-proofing guard
    rather than a fix for today.
  - Dropped the db_irq_requested flag and instead moved free_irq() to the
    appropriate call sites.

v1: https://lore.kernel.org/linux-pci/20260215150914.3392479-1-den@valinux.co.jp/
---

Koichiro Den (3):
  PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind
  PCI: endpoint: pci-epf-test: Don't free doorbell IRQ unless requested
  PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc

 drivers/pci/endpoint/functions/pci-epf-test.c |  8 +++++---
 drivers/pci/endpoint/functions/pci-epf-vntb.c | 12 ++++++------
 drivers/pci/endpoint/pci-ep-msi.c             |  5 +++++
 3 files changed, 16 insertions(+), 9 deletions(-)

-- 
2.51.0
Re: [PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes
Posted by Manivannan Sadhasivam 1 month, 1 week ago
On Tue, 17 Feb 2026 15:38:53 +0900, Koichiro Den wrote:
> This is a small fix-only series related to the previous (v6)
> doorbell-related series:
> https://lore.kernel.org/linux-pci/20260209125316.2132589-1-den@valinux.co.jp/
> 
> These patches address a few independent fixes in pci-epf-vntb,
> pci-epf-test and pci-ep-msi:
> 
> [...]

Applied, thanks!

[1/3] PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind
      commit: d61ad1bf4cd447f023eaf801dd836ce2c8d579dc
[2/3] PCI: endpoint: pci-epf-test: Don't free doorbell IRQ unless requested
      commit: 18b1650d6850040ebe7612504b9cf5e86dd48d84
[3/3] PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc
      commit: 53f49de2df2790db085d1ddf3a2251fd7b1d960b

Best regards,
-- 
Manivannan Sadhasivam <mani@kernel.org>