aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongdong Liu <[email protected]>2020-09-10 19:24:15 +0800
committerBjorn Helgaas <[email protected]>2020-09-17 12:40:25 -0500
commit7b6f2240880b42dad2f8d3c750c5bcb9decfe245 (patch)
tree93b9b62c27b0fded5dbe956892bf43f4ff0bf349
parent462bd2fdf56ab2af50d1b483f6783a5a30562e02 (diff)
PCI/LINK: Print IRQ number used by port
Print the IRQ used by PCIe Link Bandwidth Notification services port as AER, PME and DPC do. It provides convenience to track PCIe BW notification interrupt counts of certain port from /proc/interrupts. The dmesg log is as below: pcieport 0000:00:00.0: bw_notification: enabled with IRQ 1166 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dongdong Liu <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
-rw-r--r--drivers/pci/pcie/bw_notification.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pcie/bw_notification.c b/drivers/pci/pcie/bw_notification.c
index 77e685771487..565d23cccb8b 100644
--- a/drivers/pci/pcie/bw_notification.c
+++ b/drivers/pci/pcie/bw_notification.c
@@ -14,6 +14,8 @@
* and warns when links become degraded in operation.
*/
+#define dev_fmt(fmt) "bw_notification: " fmt
+
#include "../pci.h"
#include "portdrv.h"
@@ -97,6 +99,7 @@ static int pcie_bandwidth_notification_probe(struct pcie_device *srv)
return ret;
pcie_enable_link_bandwidth_notification(srv->port);
+ pci_info(srv->port, "enabled with IRQ %d\n", srv->irq);
return 0;
}