linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI/LINK: Print IRQ number used by port
@ 2020-09-10 11:24 Dongdong Liu
  2020-09-17 17:01 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Dongdong Liu @ 2020-09-10 11:24 UTC (permalink / raw)
  To: helgaas, linux-pci; +Cc: linuxarm, Dongdong Liu

Print IRQ number used by PCIe Link Bandwidth Notification services port
as AER, PME and DPC does. It provides convenience to track PCIe BW notif
interrupts counts of certain port from /proc/interrupts.

The dmesg log is as below.
pcieport 0000:00:00.0: bw_notification: enabled with IRQ 1166

Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
---
 drivers/pci/pcie/bw_notification.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/pcie/bw_notification.c b/drivers/pci/pcie/bw_notification.c
index 77e6857..565d23c 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;
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI/LINK: Print IRQ number used by port
  2020-09-10 11:24 [PATCH] PCI/LINK: Print IRQ number used by port Dongdong Liu
@ 2020-09-17 17:01 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2020-09-17 17:01 UTC (permalink / raw)
  To: Dongdong Liu; +Cc: linux-pci, linuxarm

On Thu, Sep 10, 2020 at 07:24:15PM +0800, Dongdong Liu wrote:
> Print IRQ number used by PCIe Link Bandwidth Notification services port
> as AER, PME and DPC does. It provides convenience to track PCIe BW notif
> interrupts counts of certain port from /proc/interrupts.
> 
> The dmesg log is as below.
> pcieport 0000:00:00.0: bw_notification: enabled with IRQ 1166
> 
> Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>

Applied to pci/misc for v5.10, thanks!

> ---
>  drivers/pci/pcie/bw_notification.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/pci/pcie/bw_notification.c b/drivers/pci/pcie/bw_notification.c
> index 77e6857..565d23c 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;
>  }
> -- 
> 1.9.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-17 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 11:24 [PATCH] PCI/LINK: Print IRQ number used by port Dongdong Liu
2020-09-17 17:01 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).