All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Bjorn Helgaas <bhelgaas@google.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: Jingoo Han <jingoohan1@gmail.com>,
	Joao Pinto <Joao.Pinto@synopsys.com>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Will Deacon <will.deacon@arm.com>
Subject: [PATCH v2 00/10] PCI: leak fixes, removable generic PCI host, assorted stuff
Date: Mon, 30 Apr 2018 07:48:34 +0200	[thread overview]
Message-ID: <cover.1525067324.git.jan.kiszka@siemens.com> (raw)

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


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 (10):
  PCI: Make pci_get_new_domain_nr() static
  PCI: Fix memory leak of devm_pci_alloc_host_bridge()
  PCI: Factor out __of_pci_get_host_bridge_resources()
  PCI: Add dev parameter to __of_pci_get_host_bridge_resources()
  PCI: Replace pr_*() with dev_*() in
    __of_pci_get_host_bridge_resources()
  PCI: Introduce devm_of_pci_get_host_bridge_resources()
  PCI: Convert of_pci_get_host_bridge_resources() users to devm variant
  PCI: Deprecate 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                       | 105 +++++++++++++++++++++------------
 drivers/pci/pci.c                      |   6 +-
 drivers/pci/probe.c                    |   4 +-
 include/linux/of_pci.h                 |  42 ++++++++++++-
 include/linux/pci-ecam.h               |   1 +
 include/linux/pci.h                    |   3 -
 21 files changed, 149 insertions(+), 73 deletions(-)

-- 
2.13.6

WARNING: multiple messages have this Message-ID (diff)
From: jan.kiszka@siemens.com (Jan Kiszka)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 00/10] PCI: leak fixes, removable generic PCI host, assorted stuff
Date: Mon, 30 Apr 2018 07:48:34 +0200	[thread overview]
Message-ID: <cover.1525067324.git.jan.kiszka@siemens.com> (raw)

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


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 (10):
  PCI: Make pci_get_new_domain_nr() static
  PCI: Fix memory leak of devm_pci_alloc_host_bridge()
  PCI: Factor out __of_pci_get_host_bridge_resources()
  PCI: Add dev parameter to __of_pci_get_host_bridge_resources()
  PCI: Replace pr_*() with dev_*() in
    __of_pci_get_host_bridge_resources()
  PCI: Introduce devm_of_pci_get_host_bridge_resources()
  PCI: Convert of_pci_get_host_bridge_resources() users to devm variant
  PCI: Deprecate 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                       | 105 +++++++++++++++++++++------------
 drivers/pci/pci.c                      |   6 +-
 drivers/pci/probe.c                    |   4 +-
 include/linux/of_pci.h                 |  42 ++++++++++++-
 include/linux/pci-ecam.h               |   1 +
 include/linux/pci.h                    |   3 -
 21 files changed, 149 insertions(+), 73 deletions(-)

-- 
2.13.6

             reply	other threads:[~2018-04-30  5:51 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30  5:48 Jan Kiszka [this message]
2018-04-30  5:48 ` [PATCH v2 00/10] PCI: leak fixes, removable generic PCI host, assorted stuff Jan Kiszka
2018-04-30  5:48 ` [PATCH v2 01/10] PCI: Make pci_get_new_domain_nr() static Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-04-30  5:48 ` [PATCH v2 02/10] PCI: Fix memory leak of devm_pci_alloc_host_bridge() Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-04-30  5:48 ` [PATCH v2 03/10] PCI: Factor out __of_pci_get_host_bridge_resources() Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-03  7:14   ` Vladimir Zapolskiy
2018-05-03  7:14     ` Vladimir Zapolskiy
2018-04-30  5:48 ` [PATCH v2 04/10] PCI: Add dev parameter to __of_pci_get_host_bridge_resources() Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-03  7:14   ` Vladimir Zapolskiy
2018-05-03  7:14     ` Vladimir Zapolskiy
2018-04-30  5:48 ` [PATCH v2 05/10] PCI: Replace pr_*() with dev_*() in __of_pci_get_host_bridge_resources() Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-03  7:15   ` Vladimir Zapolskiy
2018-05-03  7:15     ` Vladimir Zapolskiy
2018-05-03  7:15     ` Vladimir Zapolskiy
2018-04-30  5:48 ` [PATCH v2 06/10] PCI: Introduce devm_of_pci_get_host_bridge_resources() Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-03  7:15   ` Vladimir Zapolskiy
2018-05-03  7:15     ` Vladimir Zapolskiy
2018-04-30  5:48 ` [PATCH v2 07/10] PCI: Convert of_pci_get_host_bridge_resources() users to devm variant Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-03  7:18   ` Vladimir Zapolskiy
2018-05-03  7:18     ` Vladimir Zapolskiy
2018-05-04 16:44     ` Lorenzo Pieralisi
2018-05-04 16:44       ` Lorenzo Pieralisi
2018-05-04 16:44       ` Lorenzo Pieralisi
2018-05-05  7:42       ` Vladimir Zapolskiy
2018-05-05  7:42         ` Vladimir Zapolskiy
2018-05-05  7:42         ` Vladimir Zapolskiy
2018-04-30  5:48 ` [PATCH v2 08/10] PCI: Deprecate of_pci_get_host_bridge_resources() Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-02 12:39   ` Christoph Hellwig
2018-05-02 12:39     ` Christoph Hellwig
2018-05-02 12:39     ` Christoph Hellwig
2018-05-03  7:53     ` Jan Kiszka
2018-05-03  7:53       ` Jan Kiszka
2018-05-03  7:53       ` Jan Kiszka
2018-05-08 13:29       ` Bjorn Helgaas
2018-05-08 13:29         ` Bjorn Helgaas
2018-05-08 13:29         ` Bjorn Helgaas
2018-05-09 19:03         ` [PATCH v3 08/10] PCI: Remove of_pci_get_host_bridge_resources() Jan Kiszka
2018-05-09 19:03           ` Jan Kiszka
2018-04-30  5:48 ` [PATCH v2 09/10] PCI: Add support for unbinding the generic PCI host controller Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-04-30  5:48 ` [PATCH v2 10/10] PCI: Enable PCI_DOMAINS along with " Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-04-30  5:48   ` Jan Kiszka
2018-05-03  7:12 ` [PATCH v2 00/10] PCI: leak fixes, removable generic PCI host, assorted stuff Vladimir Zapolskiy
2018-05-03  7:12   ` Vladimir Zapolskiy
2018-05-03  7:12   ` Vladimir Zapolskiy
2018-05-03  7:52   ` Jan Kiszka
2018-05-03  7:52     ` Jan Kiszka
2018-05-03  7:52     ` Jan Kiszka
2018-05-10 22:51 ` Bjorn Helgaas
2018-05-10 22:51   ` Bjorn Helgaas
2018-05-10 22:51   ` Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1525067324.git.jan.kiszka@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=bhelgaas@google.com \
    --cc=jingoohan1@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.