Received: by 10.223.164.202 with SMTP id h10csp789909wrb; Thu, 30 Nov 2017 20:08:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMYnOehiCCjtYUTtDg9+R0SGjXS7mNj4k1bBDjh1bXFY/1YzoDlOIzj+OtdBkRsZXuZVUldb X-Received: by 10.99.96.87 with SMTP id u84mr4553412pgb.69.1512101305425; Thu, 30 Nov 2017 20:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512101305; cv=none; d=google.com; s=arc-20160816; b=KXDIcXGBVln1MskxsGLYzyYhoTks5+enm0Ob0vWsUR9T4kY/ObIYUJi6O70Joz57+n rvBgPRIJvOhVeeov3Whs1cR+UCeecxLdf4NriHaUdbWTZWWhhz/D7IhZRhedHb2uPAVS b0LySDKbBbktAPUSkym5Tqu7GMTErV0kCEJWl4g6dvPRBSqvqgOodpBO83vqhr8L6dEF sE4N6TX/bquXerh8NwOtyrHqnsxzWwPkZoDUTrB3d+qxnR9NsZ9nzeUhxD5jDFb72ORH GgMX12hxOgLJ/qx8x3hxl3+AvQnIq7QhoGLx4hFsfvgjtKK3N824EKAu2uLxDatzACVY anmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Fmr4bh/P5zwCxvlFacZT9jUI/iXZ3s4GsLaAFeNa3xs=; b=Njk1zMA3e44Ao78lbd8W+szpheiDoacZ92Xabs7mU7MdBsVdZxdjLxVqsk2qYzBQti Wz/9uuaDBh3VrAiGo2LFfyaKMw+JdpXXY9D1TOCcWmvUwfqvknSUYIzlLfFe+Y1Q21sM EjHcwR824bKz33Hguw5KcUb0IBL8oGe6R4p7OjhyvuHS3BF4myNs01Yv172kP/1YQVNv /sBpdNOza3HTmpG5Vl7AYDJEs9Yzr4r9X5YodWMmrwsoLg9BTrZcpWfvChS64pMPWfd5 hJoygBdhktYubVdqH52Nl4qRlh/35U3qByFrWXmzd4pmS5AS+aYkIYkNHDbs+sBkTYlF 6NmQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si4265210plb.632.2017.11.30.20.08.09; Thu, 30 Nov 2017 20:08:25 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752373AbdLAEH6 (ORCPT + 99 others); Thu, 30 Nov 2017 23:07:58 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:4197 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751303AbdLAEH5 (ORCPT ); Thu, 30 Nov 2017 23:07:57 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com id ; Thu, 30 Nov 2017 20:08:00 -0800 Received: from HQMAIL108.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 30 Nov 2017 20:07:56 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 30 Nov 2017 20:07:56 -0800 Received: from BGMAIL102.nvidia.com (10.25.59.11) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 1 Dec 2017 04:07:55 +0000 Received: from [10.24.194.23] (10.24.194.23) by bgmail102.nvidia.com (10.25.59.11) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 1 Dec 2017 04:07:51 +0000 Subject: Re: [PATCH v1] PCI: Remove PCI_REASSIGN_ALL_RSRC use on arm and arm64 To: Bjorn Helgaas CC: , Rob Herring , "Lorenzo Pieralisi" , , "Simon Horman" , Thierry Reding References: <20171130201505.7811.2713.stgit@bhelgaas-glaptop.roam.corp.google.com> From: Manikanta Maddireddy X-Nvconfidentiality: public Message-ID: <46321870-84d6-ebb1-a6d6-6783a3f59002@nvidia.com> Date: Fri, 1 Dec 2017 09:37:42 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171130201505.7811.2713.stgit@bhelgaas-glaptop.roam.corp.google.com> X-Originating-IP: [10.24.194.23] X-ClientProxiedBy: BGMAIL104.nvidia.com (10.25.59.13) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-Dec-17 1:45 AM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > On arm, PCI_REASSIGN_ALL_RSRC is used only in pcibios_assign_all_busses(), > which helps decide whether to reconfigure bridge bus numbers. It has > nothing to do with BAR assignments. On arm64 and powerpc, > pcibios_assign_all_busses() tests PCI_REASSIGN_ALL_BUS, which makes more > sense. > > Align arm with arm64 and powerpc, so they all use PCI_REASSIGN_ALL_BUS for > pcibios_assign_all_busses(). > > Remove PCI_REASSIGN_ALL_RSRC from the Tegra, Versatile, and R-Car drivers. > These drivers are used only on arm or arm64, where PCI_REASSIGN_ALL_RSRC is > not used after this change, so removing it should have no effect. > > No functional change intended. > > Signed-off-by: Bjorn Helgaas Reviewed-by: Manikanta Maddireddy > --- > arch/arm/include/asm/pci.h | 5 +---- > arch/arm/kernel/bios32.c | 2 +- > drivers/pci/host/pci-tegra.c | 2 +- > drivers/pci/host/pci-versatile.c | 2 +- > drivers/pci/host/pcie-rcar.c | 2 +- > 5 files changed, 5 insertions(+), 8 deletions(-) > > diff --git a/arch/arm/include/asm/pci.h b/arch/arm/include/asm/pci.h > index 960d9dc4f380..1f0de808d111 100644 > --- a/arch/arm/include/asm/pci.h > +++ b/arch/arm/include/asm/pci.h > @@ -10,10 +10,7 @@ extern unsigned long pcibios_min_io; > extern unsigned long pcibios_min_mem; > #define PCIBIOS_MIN_MEM pcibios_min_mem > > -static inline int pcibios_assign_all_busses(void) > -{ > - return pci_has_flag(PCI_REASSIGN_ALL_RSRC); > -} > +#define pcibios_assign_all_busses() pci_has_flag(PCI_REASSIGN_ALL_BUS) > > #ifdef CONFIG_PCI_DOMAINS > static inline int pci_proc_domain(struct pci_bus *bus) > diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c > index 0cd0aefb3a8f..ed46ca69813d 100644 > --- a/arch/arm/kernel/bios32.c > +++ b/arch/arm/kernel/bios32.c > @@ -527,7 +527,7 @@ void pci_common_init_dev(struct device *parent, struct hw_pci *hw) > struct pci_sys_data *sys; > LIST_HEAD(head); > > - pci_add_flags(PCI_REASSIGN_ALL_RSRC); > + pci_add_flags(PCI_REASSIGN_ALL_BUS); > if (hw->preinit) > hw->preinit(); > pcibios_init_hw(parent, hw, &head); > diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c > index f9d3960dc39f..ee193767f77b 100644 > --- a/drivers/pci/host/pci-tegra.c > +++ b/drivers/pci/host/pci-tegra.c > @@ -2382,7 +2382,7 @@ static int tegra_pcie_probe(struct platform_device *pdev) > > tegra_pcie_enable_ports(pcie); > > - pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS); > + pci_add_flags(PCI_REASSIGN_ALL_BUS); > host->busnr = pcie->busn.start; > host->dev.parent = &pdev->dev; > host->ops = &tegra_pcie_ops; > diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c > index d417acab0ecf..2a2dfcd68e86 100644 > --- a/drivers/pci/host/pci-versatile.c > +++ b/drivers/pci/host/pci-versatile.c > @@ -202,7 +202,7 @@ static int versatile_pci_probe(struct platform_device *pdev) > writel(0, versatile_cfg_base[0] + PCI_INTERRUPT_LINE); > > pci_add_flags(PCI_ENABLE_PROC_DOMAINS); > - pci_add_flags(PCI_REASSIGN_ALL_BUS | PCI_REASSIGN_ALL_RSRC); > + pci_add_flags(PCI_REASSIGN_ALL_BUS); > > list_splice_init(&pci_res, &bridge->windows); > bridge->dev.parent = dev; > diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c > index 12796eccb2be..03fabb0552ae 100644 > --- a/drivers/pci/host/pcie-rcar.c > +++ b/drivers/pci/host/pcie-rcar.c > @@ -459,7 +459,7 @@ static int rcar_pcie_enable(struct rcar_pcie *pcie) > > rcar_pcie_setup(&bridge->windows, pcie); > > - pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS); > + pci_add_flags(PCI_REASSIGN_ALL_BUS); > > bridge->dev.parent = dev; > bridge->sysdata = pcie; > From 1585523400588035892@xxx Thu Nov 30 20:15:45 +0000 2017 X-GM-THRID: 1585523400588035892 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread