Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp838102pxk; Mon, 31 Aug 2020 02:29:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWNwdyAjTwTxnOFPSGSbEg4oLFKpmwDDLxRR01Vm+Axmr8VyDxruXwZDd1sKvw4Yz0j0O4 X-Received: by 2002:a17:906:180b:: with SMTP id v11mr276809eje.427.1598866188810; Mon, 31 Aug 2020 02:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598866188; cv=none; d=google.com; s=arc-20160816; b=EJ2ignVge3XG0mcdFpqL/9uFbCnU3/wSo0zr2UJdZ//VScf7t4CDC64sDHB1Q5HCLc vPhvH7mNPIpto0BB5SvAg3bFJDrF3AnwX4aU8VEKJaEPfk3/fUMaqIB/cXqRK8Ktfv8G aqNbqldzNrEj4FcU76QHNO9+VnBvF2JIi751KBZjkSS4v8msrK5xmvyl09u6vr5zvJAz G8c4O6XnPEvgVOiOAoBHq8YvApOX32zG1qh37UNGF9uHauFkxpNUNL11F+PyvRbn1Vcu oLlTopErhlmkiYoWVMN+9Dtc0YTpcGD6+KDdjOQ5Yp/FsL6bmeyzHrcrmo/sA0ngsva7 xo3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=JznZYu1g4SNzW8WG0Czy7oimFTx6Hxqps3cueL0NbUc=; b=V85tGoKYdKI8jEs7JrG8UaA9dMPzkSjj8z//hudcQSK8szsIf2stAKYRDGrjvBWv/f 10ZRtWy9lvjkTr5UdnKhnLSa/txnhFBZFLikp/x5uzZl+5bJKC//qsynDEE1smkRY9JB H8T2oh0tYW8gq2LNFqTw7cWKjr1XV2WFvTuN+/bjew7nyIjd1NPwC1oQ8B07GB83qHbY WUDycK6Zz0oOuo/A/H1MPX0SgqFFklwJdMGz+4QGCX6KUyWsQQ+vdWkSeaWnFoR1BYIE n056TAy9DSGpdvBXcTMAu9gx+ZoBeY4s3knxDaSrozfSwOnIji2494+QxbZ903aC+Tyq hV2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GFv0wLhg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si5848390edb.548.2020.08.31.02.29.26; Mon, 31 Aug 2020 02:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GFv0wLhg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726312AbgHaJ1l (ORCPT + 99 others); Mon, 31 Aug 2020 05:27:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:60076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgHaJ1j (ORCPT ); Mon, 31 Aug 2020 05:27:39 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E17E42073A; Mon, 31 Aug 2020 09:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598866059; bh=DrHloDABVgOOM+XRYJ0A+dG8Nq8q3jEeLOViCmEba4E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GFv0wLhg+Ji+EwB14dxJs3wxpxWs9OKGcAAxx5CdUCWXp0AfxeoqtPvm6ef9aZFda r/Xsy86vEda6tAmFqBo2w/uel7m3Ru0tEAmofvst5C3ur5KQu76ILp9GDGSg6k/bJu IO8iQjjqiNjhBip7SUav8DmJaiN8h2hvHOYN7n/o= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kCg6D-007yrR-BW; Mon, 31 Aug 2020 10:27:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 31 Aug 2020 10:27:37 +0100 From: Marc Zyngier To: Samuel Dionne-Riel , Rob Herring Cc: devicetree@vger.kernel.org, Frank Rowand , linux-kernel@vger.kernel.org Subject: Re: Boot failure on gru-scarlet-inx with 5.9-rc2 In-Reply-To: <20200831031838.2d6d76d9@DUFFMAN> References: <20200829164920.7d28e01a@DUFFMAN> <65d88bdd0888a69849327501a2aad186@kernel.org> <20200831031838.2d6d76d9@DUFFMAN> User-Agent: Roundcube Webmail/1.4.8 Message-ID: <90731ebb54fe03003dce03bc7ec4872e@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: samuel@dionne-riel.com, robh@kernel.org, devicetree@vger.kernel.org, frowand.list@gmail.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-31 08:18, Samuel Dionne-Riel wrote: > On Sun, 30 Aug 2020 10:41:42 +0100 > Marc Zyngier wrote: > > Hi, > >> >> Could you try replacing the problematic patch with [1], and let me >> know whether this changes anything on your end? This patch probably >> isn't the right approach, but it would certainly help pointing me >> in the right direction. >> >> [1] >> https://lore.kernel.org/lkml/20200815125112.462652-2-maz@kernel.org/ > > Following through a bisect session to figure out why the Wi-Fi broke > between 5.8 and 5.9-rc1, I figured out something that you might have in > mind already. > > It seems that anything that makes of_bus_pci_match return true will > cause this to happen. This is why your initial fix also fails. > > I believe my understanding is right since applying the following on top > of 5.9-rc1 also produces the same result. > > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > @@ -227,6 +227,7 @@ dmac_peri: dma-controller@ff6e0000 { > }; > > pcie0: pcie@f8000000 { > + device_type = "pci"; > compatible = "rockchip,rk3399-pcie"; > reg = <0x0 0xf8000000 0x0 0x2000000>, > <0x0 0xfd000000 0x0 0x1000000>; > > > This was found out since the Wi-Fi pci-based ath10k Wi-Fi broke, with > 2f96593ecc37e98bf99525f0629128080533867f, which changes stuff around > pci bus... things... > > Am I understanding right that your fix(es) were related to the change > set where the commit is found? > > My intuition is that the commit causing the boot issue could be related > to changes with PCI or PCIe subsystems, and that your fix for > of_bus_pci_match is a red herring, that only surfaced the existing > issue. > > This is backed by applying the previous dts patch on top of 2f96593e, > and having Wi-Fi work. I would assume that between that commit and > 5.9-rc1 there is a commit that causes the complete failure to boot, > which is unrelated to the first identified commit on 5.9-rc2. Ah, so actually anything that *enables pcie* kills your system. Great investigative work! > > And backed by a further bisection with this that points to > d84c572de1a360501d2e439ac632126f5facf59d being the actual change that > causes the tablet to fail to boot, as long as the pcie0 node is > identified as pci properly. > > I am unsure if I should add as a Cc everyone involved in that change > set, though the author (coincidentally) is already in the original list > of recipients. I've deliberately moved Rob from Cc to To... ;-) > Any additional thoughts from this additional information? What you could do is to start looking at which of the pci_is_root_bus() changes breaks PCIe on this system. The fact that it breaks on your system and not on mine is a bit puzzling. Thanks, M. -- Jazz is not dead. It just smells funny...