From patchwork Fri Mar 16 12:55:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Zigotzky X-Patchwork-Id: 886776 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402lt44ZHyz9s7C for ; Fri, 16 Mar 2018 23:59:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xenosoft.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.b="NnJLLsX0"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402lt42pqbzDqxx for ; Fri, 16 Mar 2018 23:59:56 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=xenosoft.de Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.b="NnJLLsX0"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (helo) smtp.helo=mo6-p00-ob.smtp.rzone.de (client-ip=2a01:238:20a:202:5300::12; helo=mo6-p00-ob.smtp.rzone.de; envelope-from=chzigotzky@xenosoft.de; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=xenosoft.de Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.b="NnJLLsX0"; dkim-atps=neutral Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402lnP1XxBzF13m for ; Fri, 16 Mar 2018 23:55:48 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1521204943; s=strato-dkim-0002; d=xenosoft.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:Date:Message-ID: References:To:From:Subject:X-RZG-CLASS-ID:X-RZG-AUTH; bh=GR4wA33KNX0nCK9qZfO2QEsYjlzAoDmK+zqlFQO2lDY=; b=NnJLLsX0iMtotM+XR5re8RvEtIaUBqvtg8/mtjjBM/z0O3gqia5x93j5ZPgcuGvc5/ thG564BF3vu6+KG8aBchUmAKbxu2EpPOwMu+G/VNq/LDTbLVinETNiIf5hmUp0OWGTCY WrDa0p8ma5JIGAOzt/MzLZAazV2dVMAdHkw0p0NwPY7JVfOhNh4oEzh7QBUTXFFID7g7 XYxqSpe4ZJ3i1KL0VsGT7WKm/0JvDdWk8dxbNNNhh5UEmrk2vyk6Rni1UAeI0VIY5GfI d6+qk1aoexVuPXzm9eutjoiw6NlQ0VBSRIDrFgFVVMu2n2Lzv9JG16+6sZeBFVH5uAkW 5FKg== X-RZG-AUTH: :L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySf+VvAflxJtIS6kwmwtuC X-RZG-CLASS-ID: mo00 Received: from [192.168.1.134] (ppp-188-174-88-170.dynamic.mnet-online.de [188.174.88.170]) by smtp.strato.de (RZmta 42.18 DYNA|AUTH) with ESMTPSA id f061ebu2GCtb0En (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 16 Mar 2018 13:55:37 +0100 (CET) Subject: [PATCH 1/1] PCI set flag PCI_SCAN_ALL_PCIE_DEVS for P.A. Semi boards From: Christian Zigotzky To: Bjorn Helgaas , Bjorn Helgaas , linux-pci@vger.kernel.org, linuxppc-dev , Olof Johansson 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> Message-ID: <639e975f-1b3a-4f85-9a40-13fe2473fc28@xenosoft.de> Date: Fri, 16 Mar 2018 13:55:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Language: de-DE X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Bjorn Helgaas created a patch for making PCI_SCAN_ALL_PCIE_DEVS work for Root Ports as well as Downstream. Previously PCI_SCAN_ALL_PCIE_DEVS (set by quirks or the "pci=pcie_scan_all" kernel parameter) only affected Switch Downstream Ports, not Root Ports. The problem is, that we have to add always the boot argument "pci=pcie_scan_all" for using Bjorn's improvements. Without the boot argument "pci=pcie_scan_all", the kernel doesn't boot on P.A. Semi boards with SB600 chipset (SB600 chipset is connected via PCIe x4 to the P.A. Semi’s PA6T-1682M System-on-a-Chip) because the kernel can't find any drives connected to the SB600 anymore. Olof Johansson has created a patch for executing "pci=pcie_scan_all" automatically on P.A. Semi boards. With his patch, we don't need to add 'pci=pcie_scan_all' to the kernel boot arguments anymore. Reported-by: Christian Zigotzky 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_flags(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);