From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC18EC388F9 for ; Thu, 22 Oct 2020 21:34:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2502A241A6 for ; Thu, 22 Oct 2020 21:34:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aCvRgGaR"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="R5E79aKe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2502A241A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lGnPSKZ2666h+cJl7UG0EdPMLmdvMsC4BaBv2rWKhME=; b=aCvRgGaRF+LlCRN3n1cpM8mBF rpqoOGOiiVnDazF5z6fOIc87kClxsWx7muWTLH1AMJ+JyWCiCYc+N2rF3rZOhj+qwFX5rolNt4ZVd tWxniQ13DaYrNbYk2eCxLwGwhB41xFmcu6KN2aC0OjoGCF6NwS0ZtRyWQVLn4RJz0wsk4dr0Ato03 7FheZpuSegYWua2DpgGKjO+zAkHf9Yoy7YkXn0Be5LpUdCU7eLAzcgyZkGm6/jCV8asWBQrHegwMM d0+A5s1UptkeJy1A2ejuFhzMssuH9waffmgI+ANZN6Ef93BQt6SjwP3eKFaujLVO4SNwKsj3al2MB Uc9yDdj7Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kViCb-00018P-Sj; Thu, 22 Oct 2020 21:32:53 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kViCZ-00015L-P9 for linux-arm-kernel@lists.infradead.org; Thu, 22 Oct 2020 21:32:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JiUgbggdsaH0fAvaE5gc+q5S/d6utXLSeDGH01+onrs=; b=R5E79aKeJmzoTpbPDo4GXnJVq 22BIEzNCZHek0kMrh5qVE+2Cb7nQz8JhVkK6PEfotlkxtbLGVpXAPjvgtJKAYhp14Djh7EuVDNhY3 VPZ4fb4CRnHQxCez7AlGK3kbk+T2qZf8fHksGdyLH8p7GkPUO9qWwmxR0bIBv7HFs8OqrQ/UCUtqE k+jQEPN8HsRQMdDFK8asFdnQS8luVqQie93Et79y6xOlA9oU8JAoWUqYU0/ev+/15Us3pfWW6ruY8 WVGeacP0v3BPMjFmXpo1jdAwqPSOF51sZXkcFVHkXMj0JstOHXcFsOXrdbAABfa0cMvbBjNLtvdjB jQhztbY8Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:49686) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kViCU-0002bE-Hq; Thu, 22 Oct 2020 22:32:46 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kViCU-0007kN-4q; Thu, 22 Oct 2020 22:32:46 +0100 Date: Thu, 22 Oct 2020 22:32:46 +0100 From: Russell King - ARM Linux admin To: Rob Herring , Lorenzo Pieralisi , Thomas Petazzoni , Jason Cooper Subject: Re: [BUG] PCIe on Armada 388 broken since 5.9 Message-ID: <20201022213246.GV1551@shell.armlinux.org.uk> References: <20201022211821.GU1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201022211821.GU1551@shell.armlinux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201022_173251_870641_6B4764F1 X-CRM114-Status: GOOD ( 15.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 22, 2020 at 10:18:21PM +0100, Russell King - ARM Linux admin wrote: > Hi, > > It appears that PCIe on Armada 388 has been broken in 5.9. Here are > the boot messages: > > mvebu-pcie soc:pcie: host bridge /soc/pcie ranges: > mvebu-pcie soc:pcie: MEM 0x00f1080000..0x00f1081fff -> 0x0000080000 > mvebu-pcie soc:pcie: MEM 0x00f1040000..0x00f1041fff -> 0x0000040000 > mvebu-pcie soc:pcie: MEM 0x00f1044000..0x00f1045fff -> 0x0000044000 > mvebu-pcie soc:pcie: MEM 0x00f1048000..0x00f1049fff -> 0x0000048000 > mvebu-pcie soc:pcie: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000 > mvebu-pcie soc:pcie: IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000 > mvebu-pcie soc:pcie: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000 > mvebu-pcie soc:pcie: IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000 > mvebu-pcie soc:pcie: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000 > mvebu-pcie soc:pcie: IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000 > mvebu-pcie soc:pcie: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000 > mvebu-pcie soc:pcie: IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000 > mvebu-pcie soc:pcie: resource collision: [mem 0xf1080000-0xf1081fff] conflicts with pcie [mem 0xf1080000-0xf1081fff] > mvebu-pcie: probe of soc:pcie failed with error -16 > > This results in PCIe being entirely non-functional. At a guess, I'd > say it's due to: > > commit c322fa0b3fa948010a278794e60c45ec860e4a1e > Author: Rob Herring > Date: Fri May 22 17:48:19 2020 -0600 > > PCI: mvebu: Use struct pci_host_bridge.windows list directly > > There's no need to create a temporary resource list and then splice it to > struct pci_host_bridge.windows list. Just use pci_host_bridge.windows > directly. The necessary clean-up is already handled by the PCI core. > > Link: https://lore.kernel.org/r/20200522234832.954484-3-robh@kernel.org > Signed-off-by: Rob Herring > Signed-off-by: Lorenzo Pieralisi > Cc: Thomas Petazzoni > Cc: Jason Cooper Confirmed. Reverting this commit results in functioning PCIe. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel