Re: [PATCH v6 0/4] PCI/portdrv: Fix MSI/MSI-X bug for PCIe port service drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bjorn.

The patch v6 looks good to me.
It works ok on HiSilicon hip08 platform.
Tested-by: Dongdong Liu <liudongdong3@xxxxxxxxxx>

在 2017/10/21 0:21, Bjorn Helgaas 写道:
This is based on Dongdong's series:
  v3: http://lkml.kernel.org/r/1507553167-27833-1-git-send-email-liudongdong3@xxxxxxxxxx
  v4: http://lkml.kernel.org/r/1507719178-112556-1-git-send-email-liudongdong3@xxxxxxxxxx
  v5: http://lkml.kernel.org/r/20171019225726.17806.62380.stgit@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The main idea is to fix IRQ issues when removing and adding back a Root
Port.  The problem is that when we allocate, free, and reallocate MSI/MSI-X
vectors for the device, we may not get the same vectors the second time,
but we saved IRQs based on the first set of vectors.

Changes in v5:
  - add back a general Interrupt Message Number comment
  - factor out Interrupt Message Number helper separately

This is on pci/msi for v4.15.

---

Bjorn Helgaas (3):
      PCI/portdrv: Consolidate comments
      PCI/portdrv: Factor out Interrupt Message Number lookup
      PCI/portdrv: Compute MSI/MSI-X IRQ vectors after final allocation

Dongdong Liu (1):
      PCI/portdrv: Add #defines for AER and DPC Interrupt Message Number masks


 drivers/pci/pcie/portdrv_core.c |  171 +++++++++++++++++----------------------
 include/uapi/linux/pci_regs.h   |    2
 2 files changed, 77 insertions(+), 96 deletions(-)

.





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux