Skip to content

PCI: query active service list

Oza Pawandeep linux-arm-kernel linux-arm-msm linux-pci 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

Sinan's comment implemented.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4PCI: Add port service list node for pci_dev.drivers/pci/probe.c include/linux/pci.h+3 -00 replies
2/4PCI/portdrv: Add/Remove port services to the listdrivers/pci/pcie/portdrv_core.c include/linux/pcieport_if.h+6 -00 replies
3/4PCI/portdrv: Implement interface to query the registered servicedrivers/pci/pcie/portdrv_core.c include/linux/pcieport_if.h+36 -10 replies
4/4PCI/AER: Dont do recovery when DPC is enableddrivers/pci/pcie/aer/aerdrv_core.c+33 -08 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] PCI: query active service list

The list of patches provides querying facility to all services drivers. They can query any other service, to see if it is active/registered.

This is useful when multiple service drivers do not want to race for actions based on service interrupt trigger.

for e.g. if both AER and DPC are triggering, AER should not race since DPC is going to bring down the link and all the devices beneath, and going to recover HW.

Another example;
If hot plug service is not active DPC can do enumeration.

Changes Since v1:
Sinan's comment implemented.

Oza Pawandeep (4):
PCI: Add port service list node for pci_dev. PCI/portdrv: Add/Remove port services to the list PCI/portdrv: Implement interface to query the registered service PCI/AER: Dont do recovery when DPC is enabled

 drivers/pci/pcie/aer/aerdrv_core.c | 33 ++++++++++++++++++++++++++++++++
 drivers/pci/pcie/portdrv_core.c    | 39 ++++++++++++++++++++++++++++++++++++++
 drivers/pci/probe.c                |  1 +
 include/linux/pci.h                |  2 ++
 include/linux/pcieport_if.h        |  4 +++-
 5 files changed, 78 insertions(+), 1 deletion(-)
Signature · 2 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.,
a Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.