From patchwork Sat Dec 2 23:00:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 10089077 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 07BDA6035E for ; Sat, 2 Dec 2017 23:01:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1D2B290CC for ; Sat, 2 Dec 2017 23:01:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D45D129161; Sat, 2 Dec 2017 23:01:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BD43290CC for ; Sat, 2 Dec 2017 23:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752069AbdLBXBO (ORCPT ); Sat, 2 Dec 2017 18:01:14 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:42509 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbdLBXBN (ORCPT ); Sat, 2 Dec 2017 18:01:13 -0500 Received: by mail-lf0-f66.google.com with SMTP id i2so15315018lfe.9 for ; Sat, 02 Dec 2017 15:01:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PQk1+EIjxJNueFTFAQiXyxrdThNU7p47Kgs7Nj3Z2yo=; b=brd/G1241HfSxrinoRpTA+n4FzIL4iJ0VEdyDDqrJpNtt+WY0e3qGSRubGtyI/wHTu X9UTWto21I8kqiF3uy9ty0Aspg0KILw3oVBrvfdRIYuA5heeO6obdZiaRRDWvUUO2xcr 2kdb+jorsJ9ZuTnmm7XetKNn1On3Dq+qX1ItE1QT2yD5DP6Xf9RxijOR5yhiteFYVtWe BCx86lHc9AWDfqFN3iEWa8RjZrUQBBtnr4KF+G+OuiX6XtUPAaOLXLn/sw8KLOzwBao/ Mlk1M2ymZPBtBUXtSLfchx5RW8rFmLw3NhsmfPeoHvYyNz/sqCrc7yQgExWtrztnE+4T 9xEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=PQk1+EIjxJNueFTFAQiXyxrdThNU7p47Kgs7Nj3Z2yo=; b=BcUijpDWBNVoywwQk243EIqmE/T3Zt9h0UAhXOCBXALR9Gos1/yuN+j7hK649vIMwQ Lnf5c5pXEJXvk3l9zFNyKSoG7fl0jCh5L77OyopXriD7nAREH+P+f0cf8gzPPBl+daEO 553mo51MgXeN/HUanDWsP9CnWwnX0oqrLxQ7qIq7GjUsF4Ed/PER7bsQMbmwlqX5WjWl R3Xs2VodZ7JwnAjvs+lcwqci3OdEA8N75Yxlqsjne7V3eGMfg0H8ZNDSkw2uoRk+xXik eqump9HX+GQHrjC+ArrwXDNRS6zLz+3q52AThVTw/guYFpzL1W+3LqakThP2vYgdP5lP VekA== X-Gm-Message-State: AJaThX6f40zcDQY0K/HMkQmeZELlisFDVfhg//l55B6qgs3uuvpiQhTE SvBrNZaplu6YNIM1zmfcNCxwiw== X-Google-Smtp-Source: AGs4zMbNPPlYDe0IW3hfdGur8t7QZTdCOW2/HT28exh1kOwMFuR8h1WPIMNZdR5W4C0220UjgGmIsA== X-Received: by 10.46.0.166 with SMTP id e38mr6621082lji.13.1512255671743; Sat, 02 Dec 2017 15:01:11 -0800 (PST) Received: from localhost (h85-30-9-151.cust.se.alltele.net. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id e70sm1700623lfg.63.2017.12.02.15.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Dec 2017 15:01:10 -0800 (PST) Date: Sat, 2 Dec 2017 15:00:52 -0800 From: Olof Johansson To: Christian Zigotzky Cc: Bjorn Helgaas , Bjorn Helgaas , linux-pci@vger.kernel.org, linuxppc-dev , Darren Stevens Subject: Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus Message-ID: <20171202230052.34y2ivxgpgr3osct@localhost> References: <87tvxl15qx.fsf@concordia.ellerman.id.au> <4cfe3cc0-7fe3-9774-7d20-1b7fcb7aa910@xenosoft.de> <28b43e1a-3643-9edb-7123-be1cb0dc846a@xenosoft.de> <527175f7-8a13-37a1-9f0a-0b918aeebd64@xenosoft.de> <20171130224243.GB19640@bhelgaas-glaptop.roam.corp.google.com> <406ba7c4-7305-4069-227f-81afed202e47@xenosoft.de> <20171201232716.GA18780@bhelgaas-glaptop.roam.corp.google.com> <6d2505ab-a985-bdb0-ad3a-e7659cc2c54d@xenosoft.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6d2505ab-a985-bdb0-ad3a-e7659cc2c54d@xenosoft.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Sat, Dec 02, 2017 at 01:54:41PM +0100, Christian Zigotzky wrote: > On 02 December 2017 at 00:27AM, Bjorn Helgaas wrote: > > > > Thanks for testing that. I'll merge a similar patch for v4.16. > > > > I don't think using "pci=pcie_scan_all" is really an acceptable > > long-term answer for you, though. Is there some way we can identify > > at run-time whether we're on a Nemo system? If so, we can make this > > happen automatically. > > > > Bjorn > > > Hi Bjorn, > > Many thanks for your effort! I appreciate it very much. :-) > > We can identify the Nemo board at the boot time. See dmesg output: [    > 0.061592] NEMO SB600 IOB base e0000000 > > @linuxppc-dev > Any other ideas? Maybe the same as we can identify the other P.A. Semi > boards (Electra, Chitra, and Athena). > > @Olof > Maybe you know how we can identify the P.A. Semi Nemo board at the run-time. > > @Darren > Do you have an idea? The below patch, together with Bjorn's, should do it. Christian, can you test and report back? I'm guessing it won't do any harm to set this on non-X1000 platforms. My test system is currently powered down so I can't check. From a3b390277627b0342c8ccfc16e58679e0d8abdde Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Sat, 2 Dec 2017 14:56:36 -0800 Subject: [PATCH] powerpc/pasemi: set PCI_SCAN_ALL_PCI_DEVS Needed on Amiga X1000 with SB600. Reported-by: Christian Zigotzky Cc: Bjorn Helgaas Signed-off-by: Olof Johansson --- arch/powerpc/platforms/pasemi/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/pasemi/pci.c b/arch/powerpc/platforms/pasemi/pci.c index 5ff6108..ea54ed2 100644 --- a/arch/powerpc/platforms/pasemi/pci.c +++ b/arch/powerpc/platforms/pasemi/pci.c @@ -224,6 +224,8 @@ void __init pas_pci_init(void) return; } + pci_set_flag(PCI_SCAN_ALL_PCIE_DEVS): + for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) if (np->name && !strcmp(np->name, "pxp") && !pas_add_bridge(np)) of_node_get(np);