Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5109515rwb; Sun, 22 Jan 2023 03:30:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXuftMXqU+dypeTw7APp8aVj/Zpqg0sGJpWkm/j8kpwvbmsKpliIEquNVBQwTFsQ1HRIn8Tl X-Received: by 2002:a17:907:a702:b0:877:95bf:cff3 with SMTP id vw2-20020a170907a70200b0087795bfcff3mr10640047ejc.77.1674387039080; Sun, 22 Jan 2023 03:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674387039; cv=none; d=google.com; s=arc-20160816; b=YW7GsU7R3Iu6kn8cE3PfCKUh1rFzGP8XmZ3/LgcDzO16vfP6YichGew15Ar7vsTM1P F57Ox/fdD4Sw5U+eaFiSHr0FSS3QeLDhCCJZqNbLcajvWifx7Jy2T7HF3EGb3KQ4VQgd WuwzSJlWWt2qm4PrZNyy3MHMKxVpOhzsNf5srtyGg//1CfzF4rFwoPgDqXP5NGzOSyu4 4iOiWG0s0xQnaJ88wWZkMDoIiQI6trdJRpwtMQFoOMdQYCsBHTk2daMbMu/I0rkiTPot q9zNjS6+2OpeFZqZ3y40Zv0OC5DFPiFiZrj1twO9qed2ATN/Ms9AxHxRzS2ei/DRSlO1 W9dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GKvEtAEsS99QdAutgUod4Jlk0KBQ2wcND8FbTJ/1+Pc=; b=V7m83L+YSAwchRZMEnBNs+0ZCHe9859U+MSxgTA42tAKn9IvvJzgw8gkLUp08CwWEn 98XgEdZKGVizyWGmy7nKHuVMMK9c9njacDNatrXKFOT48LRkkHzXnWn3sjnNpBLgoa5D KIpSZx3nzHKv6Qq6dOVH1K0KN39isKOlXHd/cWQlaja+ZV9Bm6/y+qCzjT6HVtXRq+Sc +CgAcE/ysctdkC6ffsPnbDBPRwAXPw7Lr5uqQTk21eXXQqWSpb8/ed8ec7xFETgmgMs4 yOWKYL4SLPXVE6VgrIMU2wnHj3jViVvsvvosx8FrIMtoNqz/vFPZM+D+Mn5i/b1Wp8YO N2Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mI/3Oz7x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne35-20020a1709077ba300b008722ef50e43si18624065ejc.925.2023.01.22.03.30.26; Sun, 22 Jan 2023 03:30:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mI/3Oz7x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjAVLVe (ORCPT + 50 others); Sun, 22 Jan 2023 06:21:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbjAVLV1 (ORCPT ); Sun, 22 Jan 2023 06:21:27 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E2DD1C32A for ; Sun, 22 Jan 2023 03:21:24 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F2FACB8091F for ; Sun, 22 Jan 2023 11:21:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A7DCC433D2; Sun, 22 Jan 2023 11:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674386481; bh=dHGHdmr+7JzWwDRFHdWnmnaV6JJ/et4k1OGeOBy+s8M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mI/3Oz7xCmlS0EV7UcJ+9g2QVobNA471jJz1x9ex7XvBZnCtDvm/oOalfJhuDKkwP iIDfeDxSrJymiWI3VsCGUrIJbT196j5g1+9F/KLqpOILVP2GiwQ3FbJdyoWO/n3n4r s9DkB1SBGQOJm0jxL7hXm5L/tUbSbovJBaE+2FCDceuVj9jopcsx+axHXCc5J73jw2 EmuvHaezScbUTEX+riqv/2dde+rZdINVS7kUCHRh2gvxYDjWLvSCvqIc9vUBWpA9Zf /s0C/R4BSIMSLqvfE/zRzTEnYjhwpNzIMGHfWkR6aDv3fPaKghXmNF/SrwzwlSxsXj NXN3lZf9/ZBuQ== Received: by pali.im (Postfix) id 9349593D; Sun, 22 Jan 2023 12:21:18 +0100 (CET) Date: Sun, 22 Jan 2023 12:21:18 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map Message-ID: <20230122112118.qhezbsmoeggbkqfs@pali> References: <20220817163927.24453-1-pali@kernel.org> <20221009112555.spnwid27r4rwi67q@pali> <20221101222603.h3nlrp6xuhrnkmht@pali> <20221126162345.a4uuyefmtavfqa6g@pali> <20221216181206.tfzd2qalkking6sj@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221216181206.tfzd2qalkking6sj@pali> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PING? It is more than 5 months since this patch series is there and it still has not received any comment. On Friday 16 December 2022 19:12:06 Pali Rohár wrote: > PING? > > On Saturday 26 November 2022 17:23:45 Pali Rohár wrote: > > PING? > > > > On Tuesday 01 November 2022 23:26:03 Pali Rohár wrote: > > > Hello! Gentle reminder... > > > > > > On Sunday 09 October 2022 13:25:55 Pali Rohár wrote: > > > > Hello! Any comments on this? It would be nice to take these two patches > > > > (or at least patch 2) to finally enable PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT > > > > by default where possible. > > > > > > > > Per following comment there can be an issue with early powermac so seems > > > > that PPC_PCI_OF_BUS_MAP_FILL still has to be by default enabled (which > > > > implies that PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT is disabled) on powermac: > > > > https://lore.kernel.org/linuxppc-dev/575f239205e8635add81c9f902b7d9db7beb83ea.camel@kernel.crashing.org/ > > > > > > > > On Wednesday 17 August 2022 18:39:26 Pali Rohár wrote: > > > > > Creating or filling pci-OF-bus-map property in the device-tree is > > > > > deprecated since May 2006 [1]. Allow to disable filling this property by > > > > > unsetting config option CONFIG_PPC_PCI_OF_BUS_MAP_FILL for remaining chrp > > > > > and powermac code. > > > > > > > > > > Disabling of pci-OF-bus-map property allows to enable new option > > > > > CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT also for chrp and powermac. > > > > > > > > > > [1] - https://lore.kernel.org/linuxppc-dev/1148016268.13249.14.camel@localhost.localdomain/ > > > > > > > > > > Signed-off-by: Pali Rohár > > > > > --- > > > > > arch/powerpc/Kconfig | 12 +++++++++++- > > > > > arch/powerpc/kernel/pci_32.c | 6 ++++++ > > > > > 2 files changed, 17 insertions(+), 1 deletion(-) > > > > > > > > > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > > > > > index 5881441f7672..df2696c406ad 100644 > > > > > --- a/arch/powerpc/Kconfig > > > > > +++ b/arch/powerpc/Kconfig > > > > > @@ -373,9 +373,19 @@ config PPC_DCR > > > > > depends on PPC_DCR_NATIVE || PPC_DCR_MMIO > > > > > default y > > > > > > > > > > +config PPC_PCI_OF_BUS_MAP_FILL > > > > > + bool "Fill pci-OF-bus-map property in the device-tree" > > > > > + depends on PPC32 > > > > > + depends on PPC_PMAC || PPC_CHRP > > > > > + default y > > > > > + help > > > > > + This option creates and fills pci-OF-bus-map property in the > > > > > + device-tree which is deprecated and is needed only for old > > > > > + platforms. > > > > > + > > > > > config PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT > > > > > depends on PPC32 > > > > > - depends on !PPC_PMAC && !PPC_CHRP > > > > > + depends on !PPC_PCI_OF_BUS_MAP_FILL > > > > > bool "Assign PCI bus numbers from zero individually for each PCI domain" > > > > > help > > > > > By default on PPC32 were PCI bus numbers unique across all PCI domains. > > > > > diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c > > > > > index 433965bf37b4..ffc4e1928c80 100644 > > > > > --- a/arch/powerpc/kernel/pci_32.c > > > > > +++ b/arch/powerpc/kernel/pci_32.c > > > > > @@ -64,6 +64,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_CPC710_PCI64, fixu > > > > > > > > > > #if defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_CHRP) > > > > > > > > > > +#ifdef CONFIG_PPC_PCI_OF_BUS_MAP_FILL > > > > > + > > > > > static u8* pci_to_OF_bus_map; > > > > > static int pci_bus_count; > > > > > > > > > > @@ -223,6 +225,8 @@ pci_create_OF_bus_map(void) > > > > > } > > > > > #endif > > > > > > > > > > +#endif /* CONFIG_PPC_PCI_OF_BUS_MAP_FILL */ > > > > > + > > > > > #endif /* defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_CHRP) */ > > > > > > > > > > void pcibios_setup_phb_io_space(struct pci_controller *hose) > > > > > @@ -264,6 +268,7 @@ static int __init pcibios_init(void) > > > > > } > > > > > > > > > > #if defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_CHRP) > > > > > +#ifdef CONFIG_PPC_PCI_OF_BUS_MAP_FILL > > > > > pci_bus_count = next_busno; > > > > > > > > > > /* OpenFirmware based machines need a map of OF bus > > > > > @@ -272,6 +277,7 @@ static int __init pcibios_init(void) > > > > > */ > > > > > if (pci_assign_all_buses) > > > > > pcibios_make_OF_bus_map(); > > > > > +#endif > > > > > #endif > > > > > > > > > > /* Call common code to handle resource allocation */ > > > > > -- > > > > > 2.20.1 > > > > >