diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2020-05-09 17:56:54 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-01 12:03:22 -0500 |
commit | 9103aaf9b40c4c4e51c2a4631d221daeb7d12bad (patch) | |
tree | 21816933246015bc5f5d20d8cd704a3a31ef1ebe /drivers/pci | |
parent | 07b2fbb565e2df7ccc41e5c977b19f5f1f9fe013 (diff) | |
download | linux-9103aaf9b40c4c4e51c2a4631d221daeb7d12bad.tar.bz2 |
PCI/DPC: Print IRQ number used by port
Print IRQ number used by DPC port, like AER/PME does. It provides
convenience to track DPC interrupts counts of certain port from
/proc/interrupts.
Link: https://lore.kernel.org/r/1589018214-52752-1-git-send-email-yangyicong@hisilicon.com
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pcie/dpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c index 0993d51abf03..daa9a4153776 100644 --- a/drivers/pci/pcie/dpc.c +++ b/drivers/pci/pcie/dpc.c @@ -301,6 +301,7 @@ static int dpc_probe(struct pcie_device *dev) ctl = (ctl & 0xfff4) | PCI_EXP_DPC_CTL_EN_FATAL | PCI_EXP_DPC_CTL_INT_EN; pci_write_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CTL, ctl); + pci_info(pdev, "enabled with IRQ %d\n", dev->irq); pci_info(pdev, "error containment capabilities: Int Msg #%d, RPExt%c PoisonedTLP%c SwTrigger%c RP PIO Log %d, DL_ActiveErr%c\n", cap & PCI_EXP_DPC_IRQ, FLAG(cap, PCI_EXP_DPC_CAP_RP_EXT), |