Skip to content

PCI: endpoint: Make pci-epf-test more flexible

Kishon Vijay Abraham I linux-omap linux-pci lkml 1 version Applied

Status from this message: Applied to pci/endpoint for v4.14, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/18PCI: endpoint: pci-epc-core: Use of_dma_configure() to set initial dma maskdrivers/pci/endpoint/pci-epc-core.c+9 -20 replies
2/18PCI: endpoint: pci-epf-core: Add an API to get matching "pci_epf_device_id"drivers/pci/endpoint/pci-epf-core.c include/linux/pci-epf.h+18 -00 replies
3/18PCI: endpoint: pci-epf-core: Make ->remove() callback optionaldrivers/pci/endpoint/pci-epf-core.c+3 -20 replies
4/18PCI: endpoint: pci-epc-mem: Add support for configurable page sizedrivers/pci/endpoint/pci-epc-mem.c include/linux/pci-epc.h+57 -100 replies
5/18PCI: endpoint: functions/pci-epf-test: Add "volatile" to pci_epf_test_regdrivers/pci/endpoint/functions/pci-epf-test.c+1 -10 replies
6/18PCI: endpoint: functions/pci-epf-test: Do not reset *command* inadvertentlydrivers/pci/endpoint/functions/pci-epf-test.c+11 -90 replies
7/18PCI: endpoint: functions/pci-epf-test: Add support to use _any_ BAR's to map PCI_ENDPOINT_TEST regsdrivers/pci/endpoint/functions/pci-epf-test.c+42 -180 replies
8/18PCI: endpoint: functions/pci-epf-test: Add support to poll early for host commandsdrivers/pci/endpoint/functions/pci-epf-test.c+11 -10 replies
9/18PCI: endpoint: functions/pci-epf-test: Remove the ->remove() callbackdrivers/pci/endpoint/functions/pci-epf-test.c+0 -90 replies
10/18PCI: dwc: designware: Provide page_size to pci_epc_memdrivers/pci/dwc/pcie-designware-ep.c drivers/pci/dwc/pcie-designware.h+3 -10 replies
11/18PCI: dwc: dra7xx: Reset all BARs during initializationdrivers/pci/dwc/pci-dra7xx.c+13 -00 replies
12/18PCI: dwc: designware-ep: Do not disable BARs during initializationdrivers/pci/dwc/pcie-designware-ep.c+0 -40 replies
13/18misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BARdrivers/misc/pci_endpoint_test.c+21 -40 replies
14/18misc: pci_endpoint_test: Add support to provide aligned buffer addressesdrivers/misc/pci_endpoint_test.c+76 -150 replies
15/18misc: pci_endpoint_test: Add support to not enable MSI interruptsdrivers/misc/pci_endpoint_test.c+9 -40 replies
16/18misc: pci_endpoint_test: Avoid using hard coded BAR sizesdrivers/misc/pci_endpoint_test.c+2 -30 replies
17/18misc: pci_endpoint_test: Enable/Disable MSI using module paramdrivers/misc/pci_endpoint_test.c+5 -10 replies
18/18tools: PCI: Add a missing option help linetools/pci/pcitest.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/18] PCI: endpoint: Make pci-epf-test more flexible

Hi Bjorn,

I've collected all the patches for PCI Endpoint in this series. This series contains PCI endpoint fixes and making pci-epf-test more flexible in terms of mapping PCI_ENDPOINT_TEST regs to any BARs, work with linkup notification etc.

I've been having most of these patches in my local tree created while adding support for endpoint in TI's K2G platform. I've also included fix from others who are trying to use the PCI Endpoint Framework in their own platforms.

It also contains minor changes in pci/dwc/ like resetting BARs in the EP controller and providing a page size to pci_epc_mem. I can send this part separately based on some of your branch if you'd prefer that.

This also contains patches for host side pci_endpoint_test driver in drivers/misc.

I've pushed the series to pci-endpoint tree, the details of which are given below.

Thanks
Kishon

The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:

Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kishon/pci-endpoint.git tags/pci-ep-for-4.14

for you to fetch changes up to 31802acb56e040bf5f269b2bad159583fc804d68:

tools: PCI: Add a missing option help line (2017-08-18 19:23:36 +0530)

----------------------------------------------------------------
PCI: endpoint: for 4.14

PCI endpoint core:
*) Add support for page size to be configurable (for managing address
region within the controller)
*) Add an API to get matching "pci_epf_device_id"
*) Use of_dma_configure() to set initial dma mask of pci_epf device *) Do not abort if endpoint function drivers have not populated

    ->remove() callback

pci-epf-test function driver:
*) Add support to poll early for host commands
*) Add support to use _any_ BAR's to map PCI_ENDPOINT_TEST regs

pci_endpoint_test PCI driver:
*) Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR *) Add support to provide aligned buffer addresses
*) Enable/Disable MSI using module param

----------------------------------------------------------------
Kishon Vijay Abraham I (16):
PCI: endpoint: pci-epc-core: Use of_dma_configure() to set initial dma mask
PCI: endpoint: pci-epf-core: Add an API to get matching "pci_epf_device_id"
PCI: endpoint: pci-epf-core: Make ->remove() callback optional
PCI: endpoint: pci-epc-mem: Add support for configurable page size
PCI: endpoint: functions/pci-epf-test: Add "volatile" to pci_epf_test_reg
PCI: endpoint: functions/pci-epf-test: Do not reset *command* inadvertently
PCI: endpoint: functions/pci-epf-test: Add support to use _any_ BAR's to map PCI_ENDPOINT_TEST regs
PCI: endpoint: functions/pci-epf-test: Add support to poll early for host commands
PCI: dwc: designware: Provide page_size to pci_epc_mem
PCI: dwc: dra7xx: Reset all BARs during initialization
PCI: dwc: designware-ep: Do not disable BARs during initialization
misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR
misc: pci_endpoint_test: Add support to provide aligned buffer addresses
misc: pci_endpoint_test: Add support to not enable MSI interrupts
misc: pci_endpoint_test: Avoid using hard coded BAR sizes
misc: pci_endpoint_test: Enable/Disable MSI using module param

Shawn Lin (1):

      PCI: endpoint: functions/pci-epf-test: Remove the ->remove() callback

Stan Drozd (1):
tools: PCI: Add a missing option help line

 drivers/misc/pci_endpoint_test.c              | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
 drivers/pci/dwc/pci-dra7xx.c                  |  13 +++++++++++++
 drivers/pci/dwc/pcie-designware-ep.c          |   7 ++-----
 drivers/pci/dwc/pcie-designware.h             |   1 +
 drivers/pci/endpoint/functions/pci-epf-test.c |  99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------
 drivers/pci/endpoint/pci-epc-core.c           |  11 +++++++++--
 drivers/pci/endpoint/pci-epc-mem.c            |  59 ++++++++++++++++++++++++++++++++++++++++++++++++++---------
 drivers/pci/endpoint/pci-epf-core.c           |  21 +++++++++++++++++++--
 include/linux/pci-epc.h                       |   8 +++++++-
 include/linux/pci-epf.h                       |   2 ++
 tools/pci/pcitest.c                           |   1 +
 11 files changed, 276 insertions(+), 78 deletions(-)
Signature · 1 line
2.11.0