[PATCH v2 00/10] PCIe Flit Logging Ext Capability Support

Yazen Ghannam posted 10 patches 6 days, 8 hours ago
.../ABI/testing/sysfs-bus-pci-devices-aer     |  27 +-
.../ABI/testing/sysfs-bus-pci-devices-flit    |  70 +++
MAINTAINERS                                   |   2 +
drivers/acpi/pci_root.c                       |  11 +
drivers/pci/pci-sysfs.c                       |  71 +++
drivers/pci/pci.c                             |   2 +
drivers/pci/pci.h                             |  62 +++
drivers/pci/pcie/Kconfig                      |   9 +
drivers/pci/pcie/Makefile                     |   1 +
drivers/pci/pcie/aer.c                        | 105 +---
drivers/pci/pcie/flit.c                       | 511 ++++++++++++++++++
drivers/pci/pcie/portdrv.c                    |  23 +-
drivers/pci/pcie/portdrv.h                    |  16 +-
drivers/pci/probe.c                           |   3 +
include/linux/acpi.h                          |   1 +
include/linux/pci.h                           |   6 +
include/ras/ras_event.h                       |  38 ++
include/uapi/linux/pci_regs.h                 |  20 +-
18 files changed, 876 insertions(+), 102 deletions(-)
create mode 100644 Documentation/ABI/testing/sysfs-bus-pci-devices-flit
create mode 100644 drivers/pci/pcie/flit.c
[PATCH v2 00/10] PCIe Flit Logging Ext Capability Support
Posted by Yazen Ghannam 6 days, 8 hours ago
Hi all,

This set adds basic support for using the Flit Logging capability
introduced in PCIe v6.0.

Patches 1-4 are fixes for AER sysfs issues.

Patches 5-6 are refactor prep.

Patches 7-10 are the Flit Logging support.

I tried to reduce the verbosity in code comments and commit messages.
But I found that review bots would either get confused or pose redundant
questions if comments, etc. were too terse. In any case, please let me
know if more can be trimmed.

Thanks,
Yazen

Link:
https://lkml.kernel.org/r/20260714183950.1620016-1-yazen.ghannam@amd.com

v1->v2:
* Address Sashiko bot feedback.
* Fix sysfs issues found during development.
* Add sysfs controls for Flit logging parameters.

Yazen Ghannam (10):
  MAINTAINERS: Add the AER sysfs ABI file to PCI SUBSYSTEM
  PCI/AER: Clamp negative ratelimit burst to zero
  PCI/AER: Report the ratelimit interval in milliseconds
  PCI/AER: Hide the "aer" sysfs directory when AER is unavailable
  PCI: Share the AER ratelimit sysfs accessors
  PCI/portdrv: Group PCI Exp Cap services into a single mask
  PCI/FLIT: Add support for Flit Logging Extended Capability
  PCI/FLIT: Add trace event for flit errors
  PCI/FLIT: Ratelimit flit error logging
  PCI/FLIT: Expose the error counter controls through sysfs

 .../ABI/testing/sysfs-bus-pci-devices-aer     |  27 +-
 .../ABI/testing/sysfs-bus-pci-devices-flit    |  70 +++
 MAINTAINERS                                   |   2 +
 drivers/acpi/pci_root.c                       |  11 +
 drivers/pci/pci-sysfs.c                       |  71 +++
 drivers/pci/pci.c                             |   2 +
 drivers/pci/pci.h                             |  62 +++
 drivers/pci/pcie/Kconfig                      |   9 +
 drivers/pci/pcie/Makefile                     |   1 +
 drivers/pci/pcie/aer.c                        | 105 +---
 drivers/pci/pcie/flit.c                       | 511 ++++++++++++++++++
 drivers/pci/pcie/portdrv.c                    |  23 +-
 drivers/pci/pcie/portdrv.h                    |  16 +-
 drivers/pci/probe.c                           |   3 +
 include/linux/acpi.h                          |   1 +
 include/linux/pci.h                           |   6 +
 include/ras/ras_event.h                       |  38 ++
 include/uapi/linux/pci_regs.h                 |  20 +-
 18 files changed, 876 insertions(+), 102 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-pci-devices-flit
 create mode 100644 drivers/pci/pcie/flit.c


base-commit: c6d17c3a542095046bd3ae187e82fc5aeaa6e0fc
-- 
2.43.0