Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12444429rwb; Sat, 26 Nov 2022 09:07:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6DamnaE6DlxhV7+hPs9yA331MIZuw61E9bQVq7CThc2cc4dm8qMTdgLEHskELt9CVG2TOt X-Received: by 2002:a62:ea0e:0:b0:575:7bb:d6fc with SMTP id t14-20020a62ea0e000000b0057507bbd6fcmr759869pfh.79.1669482447533; Sat, 26 Nov 2022 09:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669482447; cv=none; d=google.com; s=arc-20160816; b=QiU0Fk/71HYo9mwe0TN5/8TQaWQ42Q0zYOnjPyqzqEsu9dE1v7WAZHmjymsxAiannm WkS4uKMUJMAaXuFJrOl+4Rxzc1FGI2LjnkCB6wobXrkhoiFS4qLbYFSRursLhmB19Oi3 h5N4PNbm9/tAHtx6GVmk+zhD2+v1ajkRrRFtK9QkKmhCXy5dYnUMaRsKYkAJ62reL4FF rs2Y05ItW7GL3fvLloNFSRHRIS3tJQmufyPNFp2A+wZGqzFd4WeR970CLmp7mKRnsV6x TaYFJQMZUYVKP7WEI2StKCk1keRfciqGfWPm3kfFPDFK9N0Z1Ja1QBKlpcvxzEXJWK/+ +yNA== 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=4rLw4OAbsUjn3lYh5jLtbBQB/9qi/KC8RkMnhjLTysA=; b=lSLaIXFGz2kQb6of8rZpxB2jOoIokMK3X48v8CuOltz3uBPxdnvRLSsH0eY6LAX5yG bWTKiPe+efFdCWtz3BxgXFYw5Fg0fhv/M+GjE8pXEijPcMDwog4L8m1jPJcM19LWiV7r IZN7eRDY0M5WcV0n8WjirAApLSp7+hTa43Uid2NTFLF9kjm2CHqLdR1CGYQq70r8SqjX CZqgsaFg9gM2tgorkf4MseXHdkQEiICSouo2PO67vE3Qo213QdOkGW1vr6E6g+z5Z1bN Mjyduyl1CzpZnphCfSvke995hhQB5GUcVMFgqcQazZD5qoHnfuJkCSeqzU8XwkcKEEHS aWnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arEckJ9u; 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 e3-20020a170902ed8300b001897e2fd660si737167plj.11.2022.11.26.09.07.12; Sat, 26 Nov 2022 09:07:27 -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=arEckJ9u; 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 S229757AbiKZQYa (ORCPT + 84 others); Sat, 26 Nov 2022 11:24:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiKZQYQ (ORCPT ); Sat, 26 Nov 2022 11:24:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD581E723 for ; Sat, 26 Nov 2022 08:23:42 -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 DC2B1B81A42 for ; Sat, 26 Nov 2022 16:23:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7479BC433C1; Sat, 26 Nov 2022 16:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669479796; bh=ZiMoEvPiAbm9Zd5prrCmD+tFBUbmTzfO59TPPLSrPmY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=arEckJ9udIDYet5J0h5PreVs0TvbcXS0A9NGvxaBSt9KLPzxondRvGVp1oJKyF9FC sZA/Haad684xQ84QhFDztacxz2ZcULoRZSx5fvl1ubZHE+2uIaQnvzQkMqUQ6gXiiI wFaGFMIq5keklr8yxI+EAZZN6ltx/St/WgIej8DL0mdMJhMLobC1VG3HMDXTGJEcvn z01dytIwc6yw3Lg39d2ci3cQLnHw0J7utJE0HvpYQyQYx0IymowmnqPBzioegFPeqo xd50XjiHe/JaMyNeiTo+6Y5wMBdt6t0YrjDD70b6W48nQBhPlO7ofFsteuruMXX14d fiG54LCfY1GNw== Received: by pali.im (Postfix) id 84A627B2; Sat, 26 Nov 2022 17:23:13 +0100 (CET) Date: Sat, 26 Nov 2022 17:23:13 +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] powerpc/fsl-pci: Choose PCI host bridge with alias pci0 as the primary Message-ID: <20221126162313.kn7ibopmwwfwrfvx@pali> References: <20220820123327.20551-1-pali@kernel.org> <20221009110808.agfixtgneshui47o@pali> <20221101221909.3u5ateevc7ka2ysv@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221101221909.3u5ateevc7ka2ysv@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? On Tuesday 01 November 2022 23:19:09 Pali Rohár wrote: > Hello! I would like to remind this patch. > > On Sunday 09 October 2022 13:08:08 Pali Rohár wrote: > > Hello! Any opinion on this patch? > > > > On Saturday 20 August 2022 14:33:27 Pali Rohár wrote: > > > If there's no PCI host bridge with ISA then check for PCI host bridge with > > > alias "pci0" (first PCI host bridge) and if it exists then choose it as the > > > primary PCI host bridge. > > > > > > This makes choice of primary PCI host bridge more stable across boots and > > > updates as the last fallback candidate for primary PCI host bridge (if > > > there is no choice) is selected arbitrary. > > > > > > Signed-off-by: Pali Rohár > > > --- > > > arch/powerpc/sysdev/fsl_pci.c | 13 +++++++++++++ > > > 1 file changed, 13 insertions(+) > > > > > > diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c > > > index 1011cfea2e32..e4b703943dd3 100644 > > > --- a/arch/powerpc/sysdev/fsl_pci.c > > > +++ b/arch/powerpc/sysdev/fsl_pci.c > > > @@ -1125,6 +1125,19 @@ void __init fsl_pci_assign_primary(void) > > > return; > > > } > > > > > > + /* > > > + * If there's no PCI host bridge with ISA then check for > > > + * PCI host bridge with alias "pci0" (first PCI host bridge). > > > + */ > > > + np = of_find_node_by_path("pci0"); > > > + if (np && of_match_node(pci_ids, np) && of_device_is_available(np)) { > > > + fsl_pci_primary = np; > > > + of_node_put(np); > > > + return; > > > + } > > > + if (np) > > > + of_node_put(np); > > > + > > > /* > > > * If there's no PCI host bridge with ISA, arbitrarily > > > * designate one as primary. This can go away once > > > -- > > > 2.20.1 > > >