]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI/DPC: Print IRQ number used by port
authorYicong Yang <yangyicong@hisilicon.com>
Sat, 9 May 2020 09:56:54 +0000 (17:56 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Jun 2020 17:03:22 +0000 (12:03 -0500)
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>
drivers/pci/pcie/dpc.c

index 0993d51abf0388810eb57daa02eb8a4e99e93fcc..daa9a4153776cefeb6e842a454a0c455454bb6e5 100644 (file)
@@ -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),