PCI: leak fixes, removable generic PCI host, assorted stuff
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest8 patches 13 repliesIn review
- v38 patches 7 repliesSuperseded
- v210 patches 13 repliesApplied
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 6 patches | 12 replies | Superseded |
Changes in v4 from the cover letter
- restore pci_free_resource_list() in error path of of_pci_get_host_bridge_resources()
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | PCI: Make pci_get_new_domain_nr() staticdrivers/ include/ | +2 | 0 replies | |
| 2/8 | PCI: Fix memory leak of devm_pci_alloc_host_bridge()drivers/ | +3 | 0 replies | |
| 3/8 | PCI: Rename device node parameter of of_pci_get_host_bridge_resources()drivers/ include/ | +11 | 1 reply | |
| 4/8 | PCI: Replace dev_node parameter of of_pci_get_host_bridge_resources with devicedrivers/ drivers/ drivers/ +11 more | +29 | 5 replies | |
| 5/8 | PCI: Replace pr_*() with dev_*() in of_pci_get_host_bridge_resources()drivers/ | +12 | 1 reply | |
| 6/8 | PCI: Rework of_pci_get_host_bridge_resources() to devm_of_pci_get_host_bridge_resources()drivers/ drivers/ drivers/ +11 more | +26 | 10 replies | |
| 7/8 | PCI: Add support for unbinding the generic PCI host controllerdrivers/ drivers/ include/ | +15 | 0 replies | |
| 8/8 | PCI: Enable PCI_DOMAINS along with generic PCI host controllerdrivers/ | +1 | 0 replies |
Reviews trailers per patch
5 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Lorenzo Pieralisi | Vladimir Zapolskiy | Joao Pinto | Jingoo Han |
|---|---|---|---|---|
| 1/8 | A-b | |||
| 2/8 | ||||
| 3/8 | T-b R-b | |||
| 4/8 | T-b R-b | A-b | ||
| 5/8 | T-b R-b | |||
| 6/8 | T-b R-b R-b | A-b | A-b | |
| 7/8 | ||||
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v4 0/8] PCI: leak fixes, removable generic PCI host, assorted stuff
Changes in v4:
- restore pci_free_resource_list() in error path of of_pci_get_host_bridge_resources()
Changes in v3:
- refactor series to be both bisectable and simpler while reworking of_pci_get_host_bridge_resources()
- include of_pci_get_host_bridge_resources() removal
- include devm_of_pci_get_host_bridge_resources() error path fixes
- effectively, no functional changes to v2
Changes in v2:
- patch 1: commit message reworking as suggested by Lorenzo
- patch 3-6: split-up as suggested by Bjorn
- patch 8: new
- patch 10: select PCI_DOMAINS from PCI_HOST_GENERIC, rather than allowing manual choice, as suggested by Lorenzo
This primarily enables to unbind the generic PCI host controller without leaving lots of memory leaks behind. A previous proposal patch 5 was rejected because of those issues [1].
The fixes have been validated in the Jailhouse setup, where we add and remove a virtual PCI host controller on hypervisor activation/ deactivation, with the help of kmemleak.
Besides that, there is tiny PCI API cleanup at the beginning and support for manually enabled PCI domains at the end that enables the Jailhouse scenario.
Jan
[1] http://lkml.iu.edu/hypermail/linux/kernel/1606.3/00072.html
Jan Kiszka (8):
PCI: Make pci_get_new_domain_nr() static
PCI: Fix memory leak of devm_pci_alloc_host_bridge()
PCI: Rename device node parameter of
of_pci_get_host_bridge_resources()
PCI: Replace dev_node parameter of of_pci_get_host_bridge_resources
with device
PCI: Replace pr_*() with dev_*() in of_pci_get_host_bridge_resources()
PCI: Rework of_pci_get_host_bridge_resources() to
devm_of_pci_get_host_bridge_resources()
PCI: Add support for unbinding the generic PCI host controller
PCI: Enable PCI_DOMAINS along with generic PCI host controller
drivers/pci/dwc/pcie-designware-host.c | 2 +- drivers/pci/host/Kconfig | 1 + drivers/pci/host/pci-aardvark.c | 5 ++- drivers/pci/host/pci-ftpci100.c | 4 +-- drivers/pci/host/pci-host-common.c | 13 +++++++ drivers/pci/host/pci-host-generic.c | 1 + drivers/pci/host/pci-v3-semi.c | 3 +- drivers/pci/host/pci-versatile.c | 3 +- drivers/pci/host/pci-xgene.c | 3 +- drivers/pci/host/pcie-altera.c | 5 ++- drivers/pci/host/pcie-iproc-platform.c | 4 +-- drivers/pci/host/pcie-rcar.c | 5 ++- drivers/pci/host/pcie-rockchip.c | 4 +-- drivers/pci/host/pcie-xilinx-nwl.c | 4 +-- drivers/pci/host/pcie-xilinx.c | 4 +-- drivers/pci/of.c | 65 ++++++++++++++++------------------ drivers/pci/pci.c | 6 ++-- drivers/pci/probe.c | 4 ++- include/linux/of_pci.h | 4 +-- include/linux/pci-ecam.h | 1 + include/linux/pci.h | 3 -- 21 files changed, 76 insertions(+), 68 deletions(-)
Signature · 1 line
2.13.6