linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH next V3 0/5] Report PCI device link status
@ 2018-03-12 12:06 Tal Gilboa
  2018-03-12 12:06 ` [PATCH next V3 1/5] PCI: Add a query function for PCI device's speed cap Tal Gilboa
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Tal Gilboa @ 2018-03-12 12:06 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: Linux PCI, Tariq Toukan, Tal Gilboa

These patches introduce the ability to report PCI link width
and speed for all PCI devices in kernel log.
This would reduce code duplication between drivers and unify
the approach for reporting PCI link status.
Implemented and tested for Mellanox devices.

v3: Add Reviewed-by: Tariq Toukan to all commits.

v2: Remove chain BW calculation. This might be a nice feature, but
without the ability to know the exact limiting part, it is more
confusing than useful.
Remove warnings for failed PCI query actions, leaving only the status
and gaps from max capabilities report.
Use pci_warn()/pci_info() instead of dev_warn()/dev_info().
(suggested by Bjorn Helgaas).

v1: Split to multiple patches, calculate BW limitation and remove
MACRO definition for LNKCAP shift (suggested by Bjorn Helgaas).
Multiple fixes - conventions, typos, function naming and functional
(suggested by Tariq Toukan).

Tal Gilboa (5):
  PCI: Add a query function for PCI device's speed cap
  PCI: Add a query function for PCI device's width cap
  PCI: Print PCI device link status in kernel log
  net/mlx4_core: Report PCI properties using dedicated function
  net/mlx5: Report device PCI link status and issues

 drivers/net/ethernet/mellanox/mlx4/main.c      | 81 +----------------------
 drivers/net/ethernet/mellanox/mlx5/core/main.c |  2 +
 drivers/pci/pci-sysfs.c                        | 28 +++-----
 drivers/pci/pci.c                              | 90 ++++++++++++++++++++++++++
 include/linux/pci.h                            |  9 +++
 5 files changed, 110 insertions(+), 100 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2018-03-27 17:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 12:06 [PATCH next V3 0/5] Report PCI device link status Tal Gilboa
2018-03-12 12:06 ` [PATCH next V3 1/5] PCI: Add a query function for PCI device's speed cap Tal Gilboa
2018-03-12 12:06 ` [PATCH next V3 2/5] PCI: Add a query function for PCI device's width cap Tal Gilboa
2018-03-12 12:06 ` [PATCH next V3 3/5] PCI: Print PCI device link status in kernel log Tal Gilboa
2018-03-20 14:05   ` Bjorn Helgaas
2018-03-20 15:57     ` Keller, Jacob E
2018-03-21  7:43     ` Tal Gilboa
2018-03-21 19:47       ` Bjorn Helgaas
2018-03-21 19:59         ` Keller, Jacob E
2018-03-21 20:10           ` Bjorn Helgaas
2018-03-27 17:17             ` Tal Gilboa
2018-03-27 17:28               ` Bjorn Helgaas
2018-03-27 17:31                 ` Bjorn Helgaas
2018-03-12 12:06 ` [PATCH next V3 4/5] net/mlx4_core: Report PCI properties using dedicated function Tal Gilboa
2018-03-12 12:06 ` [PATCH next V3 5/5] net/mlx5: Report device PCI link status and issues Tal Gilboa

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).