Skip to content

PCI host resource consolidation

Rob Herring linux-arm-kernel linux-mediatek linux-pci linux-renesas-soc linux-rockchip 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest25 patches 23 repliesIn review
  2. v225 patches 18 repliesSuperseded

Changes in v3 from the cover letter

- Fix >80 char lines
- Rename resource_list_get_entry_of_type to resource_list_first_type

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25resource: Add a resource_list_first_type helperinclude/linux/resource_ext.h+12 -00 replies
2/25PCI: Export pci_parse_request_of_pci_ranges()drivers/pci/of.c+1 -00 replies
3/25PCI: aardvark: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-aardvark.c+4 -560 replies
4/25PCI: altera: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-altera.c+2 -390 replies
5/25PCI: dwc: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/dwc/pcie-designware-host.c+8 -200 replies
6/25PCI: faraday: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-ftpci100.c+11 -401 reply
7/25PCI: iproc: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-iproc-platform.c drivers/pci/controller/pcie-iproc.c+2 -112 replies
8/25PCI: mediatek: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-mediatek.c+13 -300 replies
9/25PCI: mobiveil: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-mobiveil.c+7 -191 reply
10/25PCI: rockchip: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-rockchip-host.c+7 -294 replies
11/25PCI: rockchip: Drop storing driver private outbound resource datadrivers/pci/controller/pcie-rockchip-host.c drivers/pci/controller/pcie-rockchip.h+23 -363 replies
12/25PCI: v3-semi: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-v3-semi.c+6 -290 replies
13/25PCI: xgene: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-xgene.c+11 -280 replies
14/25PCI: xilinx: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-xilinx.c+2 -150 replies
15/25PCI: xilinx-nwl: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-xilinx-nwl.c+4 -160 replies
16/25PCI: versatile: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-versatile.c+11 -530 replies
17/25PCI: versatile: Remove usage of PHYS_OFFSETdrivers/pci/controller/pci-versatile.c+4 -40 replies
18/25PCI: versatile: Enable COMPILE_TESTdrivers/pci/controller/Kconfig+1 -10 replies
19/25PCI: of: Add inbound resource parsing to helpersdrivers/pci/controller/dwc/pcie-designware-host.c drivers/pci/controller/pci-aardvark.c drivers/pci/controller/pci-ftpci100.c +16 more+82 -2310 replies
20/25PCI: ftpci100: Use inbound resources for setupdrivers/pci/controller/pci-ftpci100.c+10 -170 replies
21/25PCI: v3-semi: Use inbound resources for setupdrivers/pci/controller/pci-v3-semi.c+16 -220 replies
22/25PCI: xgene: Use inbound resources for setupdrivers/pci/controller/pci-xgene.c+11 -220 replies
23/25PCI: iproc: Use inbound resources for setupdrivers/pci/controller/pcie-iproc.c+17 -601 reply
24/25PCI: rcar: Use inbound resources for setupdrivers/pci/controller/pcie-rcar.c+16 -290 replies
25/25PCI: Make devm_of_pci_get_host_bridge_resources() staticdrivers/pci/of.c drivers/pci/pci.h+1 -210 replies

Reviews trailers per patch

16 of 25 patches have a Reviewed-by or Acked-by.

PatchAndrew MurrayThomas PetazzoniLinus WalleijGustavo PimentelHou ZhiqiangBjorn Helgaas
1/25
2/25R-b
3/25R-b T-b
4/25R-b
5/25
6/25R-b A-b
7/25R-b
8/25R-b
9/25R-b R-b
10/25
11/25
12/25A-b
13/25
14/25
15/25
16/25A-b
17/25A-b
18/25R-b A-b
19/25R-b T-b A-b A-b
20/25R-b A-b
21/25R-b R-b
22/25R-b
23/25R-b
24/25
25/25

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/25] PCI host resource consolidation

This started with just dma-ranges parsing consolidation, but has expanded to converting all host drivers to use pci_parse_request_of_pci_ranges() rather than devm_of_pci_get_host_bridge_resources(). This series moves the DT 'dma-ranges' parsing into common helpers utilizing a resource list. There's no (intended) functional change in this series though I'm also working on a separate series now in dt/next to improve the handling of 'dma-ranges' and dma masks.

The last patch may need to wait if there's any new users of devm_of_pci_get_host_bridge_resources.

Only versatile has been tested (on QEMU). The rest is compiled only. A git branch is here[1].

v3:
- Fix >80 char lines
- Rename resource_list_get_entry_of_type to resource_list_first_type

Rob

[1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git pci-ranges-cleanup-v3

Rob Herring (25):
resource: Add a resource_list_first_type helper
PCI: Export pci_parse_request_of_pci_ranges()
PCI: aardvark: Use pci_parse_request_of_pci_ranges()
PCI: altera: Use pci_parse_request_of_pci_ranges()
PCI: dwc: Use pci_parse_request_of_pci_ranges()
PCI: faraday: Use pci_parse_request_of_pci_ranges()
PCI: iproc: Use pci_parse_request_of_pci_ranges()
PCI: mediatek: Use pci_parse_request_of_pci_ranges()
PCI: mobiveil: Use pci_parse_request_of_pci_ranges()
PCI: rockchip: Use pci_parse_request_of_pci_ranges()
PCI: rockchip: Drop storing driver private outbound resource data
PCI: v3-semi: Use pci_parse_request_of_pci_ranges()
PCI: xgene: Use pci_parse_request_of_pci_ranges()
PCI: xilinx: Use pci_parse_request_of_pci_ranges()
PCI: xilinx-nwl: Use pci_parse_request_of_pci_ranges()
PCI: versatile: Use pci_parse_request_of_pci_ranges()
PCI: versatile: Remove usage of PHYS_OFFSET
PCI: versatile: Enable COMPILE_TEST
PCI: of: Add inbound resource parsing to helpers
PCI: ftpci100: Use inbound resources for setup
PCI: v3-semi: Use inbound resources for setup
PCI: xgene: Use inbound resources for setup
PCI: iproc: Use inbound resources for setup
PCI: rcar: Use inbound resources for setup
PCI: Make devm_of_pci_get_host_bridge_resources() static

 drivers/pci/controller/Kconfig                |  2 +-
 .../pci/controller/dwc/pcie-designware-host.c | 29 ++----
 drivers/pci/controller/pci-aardvark.c         | 60 +------------
 drivers/pci/controller/pci-ftpci100.c         | 79 +++++-----------
 drivers/pci/controller/pci-host-common.c      |  2 +-
 drivers/pci/controller/pci-v3-semi.c          | 74 +++++----------
 drivers/pci/controller/pci-versatile.c        | 71 ++++-----------
 drivers/pci/controller/pci-xgene.c            | 73 +++++----------
 drivers/pci/controller/pcie-altera.c          | 41 +--------
 drivers/pci/controller/pcie-cadence-host.c    |  2 +-
 drivers/pci/controller/pcie-iproc-platform.c  |  9 +-
 drivers/pci/controller/pcie-iproc.c           | 82 ++++-------------
 drivers/pci/controller/pcie-mediatek.c        | 43 +++------
 drivers/pci/controller/pcie-mobiveil.c        | 27 ++----
 drivers/pci/controller/pcie-rcar.c            | 48 ++++------
 drivers/pci/controller/pcie-rockchip-host.c   | 89 +++++++------------
 drivers/pci/controller/pcie-rockchip.h        |  5 --
 drivers/pci/controller/pcie-xilinx-nwl.c      | 21 ++---
 drivers/pci/controller/pcie-xilinx.c          | 18 +---
 drivers/pci/of.c                              | 51 +++++++++--
 drivers/pci/pci.h                             | 13 ---
 include/linux/pci.h                           |  9 +-
 include/linux/resource_ext.h                  | 12 +++
 23 files changed, 261 insertions(+), 599 deletions(-)

--
2.20.1