Skip to content

PCI: Endpoint: Miscellaneous improvements

Kishon Vijay Abraham I linux-pci lkml 3 versions – Applied

Status from this message: Applied to pci/endpoint for v5.7, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 2 repliesApplied
  2. v25 patches 8 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

*) Added "Tested-by" tag from Vidya Sagar
*) Added stable fixes tag to "Fix for concurrent memory allocation in
OB address region"

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5PCI: endpoint: Use notification chain mechanism to notify EPC events to EPFdrivers/pci/endpoint/functions/pci-epf-test.c drivers/pci/endpoint/pci-epc-core.c drivers/pci/endpoint/pci-epf-core.c +2 more+23 -351 reply
2/5PCI: endpoint: Replace spinlock with mutexdrivers/pci/endpoint/pci-epc-core.c include/linux/pci-epc.h+34 -540 replies
3/5PCI: endpoint: Fix for concurrent memory allocation in OB address regiondrivers/pci/endpoint/pci-epc-mem.c include/linux/pci-epc.h+11 -20 replies
4/5PCI: endpoint: Protect concurrent access to pci_epf_ops with mutexdrivers/pci/endpoint/pci-epf-core.c include/linux/pci-epf.h+13 -10 replies
5/5PCI: endpoint: Assign function number for each PF in EPC coredrivers/pci/endpoint/pci-ep-cfs.c drivers/pci/endpoint/pci-epc-core.c include/linux/pci-epc.h+29 -260 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchVidya Sagar
1/5T-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] PCI: Endpoint: Miscellaneous improvements

Changes from v2:
*) Added "Tested-by" tag from Vidya Sagar
*) Added stable fixes tag to "Fix for concurrent memory allocation in
OB address region"

Changes from v1:
Rebased to Linux 5.6-rc1 and removed dependencies to my other series to unblock [1]

[1] -> http://lore.kernel.org/r/[email protected]

v1 of this patch series can be found @
http://lore.kernel.org/r/[email protected]

This series adds miscellaneous improvements to PCIe endpoint core.
1) Protect concurrent access to memory allocation in pci-epc-mem
2) Replace spinlock with mutex in pci-epc-core and also use notification chain mechanism to notify EPC events to EPF driver.
3) Since endpoint function device can be created by multiple mechanisms (configfs, devicetree, etc..), allowing each of these mechanisms to assign a function number would result in mutliple endpoint function devices having the same function number. In order to avoid this, let EPC core assign a function number to the endpoint device.

Kishon Vijay Abraham I (5):
PCI: endpoint: Use notification chain mechanism to notify EPC events
to EPF
PCI: endpoint: Replace spinlock with mutex
PCI: endpoint: Fix for concurrent memory allocation in OB address
region
PCI: endpoint: Protect concurrent access to pci_epf_ops with mutex
PCI: endpoint: Assign function number for each PF in EPC core

 drivers/pci/endpoint/functions/pci-epf-test.c |  13 +-
 drivers/pci/endpoint/pci-ep-cfs.c             |  27 +----
 drivers/pci/endpoint/pci-epc-core.c           | 113 ++++++++----------
 drivers/pci/endpoint/pci-epc-mem.c            |  10 +-
 drivers/pci/endpoint/pci-epf-core.c           |  33 ++---
 include/linux/pci-epc.h                       |  19 ++-
 include/linux/pci-epf.h                       |   9 +-
 7 files changed, 108 insertions(+), 116 deletions(-)
Signature · 1 line
2.17.1