Received: by 10.192.165.148 with SMTP id m20csp1228448imm; Fri, 27 Apr 2018 15:18:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrz36QbIq/fGkQNIHYN0AM/LwK3rlBBcB+k+uzuauVQMvIyDUSbmOg05v1xw2zTrdrRz5Ha X-Received: by 2002:a65:4907:: with SMTP id p7-v6mr3483462pgs.139.1524867510573; Fri, 27 Apr 2018 15:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524867510; cv=none; d=google.com; s=arc-20160816; b=nUAN0Wm8x3Kun3/IecRWN2Hmz4DjGbHBXrHRNHoYPF59aq5jXIF/Yp5XdW90hcpFWl rPbers3ytl2y8El84rEyXfGglaFjYISh3BK4ZgMX8GJKFFup+9QpxGNjIizWeIIkP1v2 Nxs431vNfABIl0WEqRXq0ZmzvufGvtAR5NH6DnT3/6BnF3djz5GpL2H9qaVhZyiYIm8v F5/aPs0dj6tuXhWVrqz96Alx9+vs88o6eGtA9mCZIcuIU5v39ROZvAwAjnmIunHXjzm3 9nVxcB7clb8tDFWFtL2IoIYorvJ/8Y2G1K6qxR98mIumx+at5qxjuICR48U64y+doymH fPBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=7H7gJgP0u+NnOdO4wmArvm4bdeVmbaSaxUlGPgHL83w=; b=QxACJNA3oczlEsJlWyV891FBz3hXqGZfpVHjJIaIX6Xq1zubv7oxN3D/8jtUqxuL3v dXa8pNukUt3mUMeoTdSF5xjdVybTwnKecaMFZVZ7yVKGV42ZudNOpEOGTy3FAiRztvr0 HBq/70J6pHxB8g6KGXRdlDKSNwpdx2y+Or+vAt0pW+iVNq79xuE9t4GVmZvp4rPyVwc5 dNB6Yg0inB18rjkU31W1fFNBdeEMXpl3Q/gwQpA6ddFVRcXUUVltQEZJcRY8NeTkCfLZ tEYY/cauSJN2n2x+/y6LLA/cassBH7Uecyj6Ssx0v0nSnBM6dTkxMSTDkyjQFhCI47/d +pBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si1197848pfv.135.2018.04.27.15.18.16; Fri, 27 Apr 2018 15:18:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759403AbeD0WQG (ORCPT + 99 others); Fri, 27 Apr 2018 18:16:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:41670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753569AbeD0WQF (ORCPT ); Fri, 27 Apr 2018 18:16:05 -0400 Received: from localhost (unknown [69.71.5.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B958F2191E; Fri, 27 Apr 2018 22:16:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B958F2191E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Fri, 27 Apr 2018 17:16:02 -0500 From: Bjorn Helgaas To: Jan Kiszka Cc: Bjorn Helgaas , Linux Kernel Mailing List , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jingoo Han , Joao Pinto , Lorenzo Pieralisi , Will Deacon Subject: Re: [PATCH 0/6] PCI: leak fixes, removable generic PCI host, assorted stuff Message-ID: <20180427221602.GB73256@bhelgaas-glaptop.roam.corp.google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 05:13:36PM +0200, Jan Kiszka wrote: > 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. Sounds like you have a couple things lined up for a v2 posting. When you do that, would you mind updating the function references in subjects, changelogs, and comments to include "()" after the function name, e.g., s/pci_get_new_domain_nr/pci_get_new_domain_nr()/? > [1] http://lkml.iu.edu/hypermail/linux/kernel/1606.3/00072.html > > > CC: Jingoo Han > CC: Joao Pinto > CC: Lorenzo Pieralisi > CC: Will Deacon > > 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 >