All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] PCI: leak fixes, removable generic PCI host, assorted stuff
@ 2018-04-24 15:13 ` Jan Kiszka
  0 siblings, 0 replies; 45+ messages in thread
From: Jan Kiszka @ 2018-04-24 15:13 UTC (permalink / raw)
  To: Bjorn Helgaas, Linux Kernel Mailing List, linux-pci, linux-arm-kernel
  Cc: Jingoo Han, Joao Pinto, Lorenzo Pieralisi, Will Deacon

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


CC: Jingoo Han <jingoohan1@gmail.com>
CC: Joao Pinto <Joao.Pinto@synopsys.com>
CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
CC: Will Deacon <will.deacon@arm.com>

Jan Kiszka (6):
  PCI: Make pci_get_new_domain_nr static
  PCI: Fix memory leak of devm_pci_alloc_host_bridge
  PCI: Introduce devm_of_pci_get_host_bridge_resources
  PCI: Convert of_pci_get_host_bridge_resources users to devm variant
  PCI: Add support for unbinding the generic PCI host controller
  arm: Allow to enable PCI_DOMAINS manually

 arch/arm/Kconfig                       |  7 ++-
 drivers/pci/dwc/pcie-designware-host.c |  2 +-
 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                       | 93 ++++++++++++++++++++++------------
 drivers/pci/pci.c                      |  6 +--
 drivers/pci/probe.c                    |  4 +-
 include/linux/of_pci.h                 | 14 ++++-
 include/linux/pci-ecam.h               |  1 +
 include/linux/pci.h                    |  3 --
 21 files changed, 120 insertions(+), 68 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2018-05-02  5:40 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-24 15:13 [PATCH 0/6] PCI: leak fixes, removable generic PCI host, assorted stuff Jan Kiszka
2018-04-24 15:13 ` Jan Kiszka
2018-04-24 15:13 ` [PATCH 1/6] PCI: Make pci_get_new_domain_nr static Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-25 16:27   ` Lorenzo Pieralisi
2018-04-25 16:27     ` Lorenzo Pieralisi
2018-04-25 16:27     ` Lorenzo Pieralisi
2018-04-25 17:21     ` Jan Kiszka
2018-04-25 17:21       ` Jan Kiszka
2018-04-24 15:13 ` [PATCH 2/6] PCI: Fix memory leak of devm_pci_alloc_host_bridge Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-24 15:13 ` [PATCH 3/6] PCI: Introduce devm_of_pci_get_host_bridge_resources Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-25 10:40   ` Jan Kiszka
2018-04-25 10:40     ` Jan Kiszka
2018-04-25 10:40     ` Jan Kiszka
2018-04-27 22:24   ` Bjorn Helgaas
2018-04-27 22:24     ` Bjorn Helgaas
2018-04-28  7:28     ` Jan Kiszka
2018-04-28  7:28       ` Jan Kiszka
2018-04-28  7:28       ` Jan Kiszka
2018-04-30 18:40       ` Bjorn Helgaas
2018-04-30 18:40         ` Bjorn Helgaas
2018-04-30 18:40         ` Bjorn Helgaas
2018-04-30 18:43         ` Sinan Kaya
2018-04-30 18:43           ` Sinan Kaya
2018-05-02  5:39           ` Jan Kiszka
2018-05-02  5:39             ` Jan Kiszka
2018-04-24 15:13 ` [PATCH 4/6] PCI: Convert of_pci_get_host_bridge_resources users to devm variant Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-25 19:47   ` Jingoo Han
2018-04-25 19:47     ` Jingoo Han
2018-04-25 19:47     ` Jingoo Han
2018-04-24 15:13 ` [PATCH 5/6] PCI: Add support for unbinding the generic PCI host controller Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-24 15:13 ` [PATCH 6/6] arm: Allow to enable PCI_DOMAINS manually Jan Kiszka
2018-04-24 15:13   ` Jan Kiszka
2018-04-25 17:54   ` Lorenzo Pieralisi
2018-04-25 17:54     ` Lorenzo Pieralisi
2018-04-25 17:54     ` Lorenzo Pieralisi
2018-04-26  7:19     ` Jan Kiszka
2018-04-26  7:19       ` Jan Kiszka
2018-04-27 22:16 ` [PATCH 0/6] PCI: leak fixes, removable generic PCI host, assorted stuff Bjorn Helgaas
2018-04-27 22:16   ` Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.