Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp221679imm; Thu, 30 Aug 2018 21:37:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdacvqtXBSIFvuhQu7A4D1ThFTCET0F3yvHtb/ntKHm38XY6O+84gKEgulCQ6uS7GAbxsFd2 X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr13744858pfy.227.1535690255583; Thu, 30 Aug 2018 21:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535690255; cv=none; d=google.com; s=arc-20160816; b=VQKD2QWhdjiUqXtKtCdYXx4hp0PXJfiB1ACa9xyCFWHBNfHa62sPbVwsTlsXIs/Nxq t547N6BnA+k2Sz7v6W1WaCQ5KYCALo1yDL9GCck11Na47KQd9/quaKpVTYBvLWUKWdcI Kh4kqF865qcTwrQOORZ7PqrAFq+RLCVIh70wUctk7eLNvB4JJf0FfCPODE4jdZIZtlxH /8RNAHidG+JvRoEmRKlk5e62zPjRtf44IUB/wAk3dsLyyQ+4c/bSrIJGBig87ho/J2sA +3kAhCxWxEY34DytVmksfG7TMyVel9hUIoceZ9+9lXzWZ+BL8PCSMfseqJ++ckMXF27m s6Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=JzHKizdqtXHqg2ZAKxGco+oSwPCfwueEkdIQ7T7t1ys=; b=fsPC82QywjUZ5XcTmqQjaxrHmTNaEExOLUrl73xMCdXaBwMUNuowKvRZFfyJcnMj0k fEgJ/fUZ7qgQft6S9dRPTrBkUEUwiuCYz3xYHOZYxPtN8+9qsff8qUHbY8m1pW/tmJet MRJFYgE0RhvEKpQDkq1Fpl/MRll95lD/LiqPTSvqIODsB1H0fJPsEthcuh+hSBwBgiKX oOlATNy+GuE+57TlFC+FLeASfq5Zv01rX0wztfenRQFNR9Z7Yf/LZrfo4IdQ6MjV4DtV i1MiwtAjTUWAzDKxG2VreACg5N2Egj1KUCD/l4e3YAxuMeOcRzRW2n63ATmakuwyLuzT QMgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x67-v6si8627256pfa.80.2018.08.30.21.37.20; Thu, 30 Aug 2018 21:37:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727292AbeHaIld (ORCPT + 99 others); Fri, 31 Aug 2018 04:41:33 -0400 Received: from gate.crashing.org ([63.228.1.57]:40251 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbeHaIld (ORCPT ); Fri, 31 Aug 2018 04:41:33 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w7V4Zd03004846; Thu, 30 Aug 2018 23:35:40 -0500 Message-ID: <84f13bded54eda0817f9134f355d518d5b3a5f77.camel@kernel.crashing.org> Subject: Re: v4.17 regression: PowerMac G3 won't boot, was Re: [PATCH v5 1/3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle() From: Benjamin Herrenschmidt To: Mac User , Rob Herring Cc: fthain@telegraphics.com.au, Frank Rowand , Chintan Pandya , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linuxppc-dev Date: Fri, 31 Aug 2018 14:35:39 +1000 In-Reply-To: <569e4bc3-2149-4b2d-562f-e400dd05a8a8@yahoo.com> References: <1520208889-3908-1-git-send-email-frowand.list@gmail.com> <1520208889-3908-2-git-send-email-frowand.list@gmail.com> <569e4bc3-2149-4b2d-562f-e400dd05a8a8@yahoo.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-08-30 at 20:39 -0600, Mac User wrote: > On 8/29/18 7:05 PM, Rob Herring wrote: > > > On Wed, Aug 29, 2018 at 7:44 PM Finn Thain wrote: > > > Hi Frank, > > > > > > Linux v4.17 and later will no longer boot on a G3 PowerMac. The boot hangs > > > very early, before any video driver loads. > > > > > > Stan and I were able to bisect the regression between v4.16 and v4.17 and > > > arrived at commit 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of > > > of_find_node_by_phandle()"). > > > > > > I don't see any obvious bug in 0b3ce78e90fc or b9952b5218ad. But if you > > > revert these from v4.18 (which is also affected) that certainly resolves > > > the issue. > > > > Perhaps a bad assumption on phandle values causing a problem. Can you > > provide a dump of all the phandle or linux,phandle values from > > /proc/device-tree. > > > > Rob > > Rob, > > As suggested by Finn, I installed device-tree-compiler and > powerpc-ibm-utils. > > Running "dtc -I fs -H both /sys/firmware/devicetree/base" > resulted in the following errors: > > DTC: fs->dts on file "/sys/firmware/devicetree/base" > ERROR (name_properties): "name" property in > /pci/multifunc-device/pci1799,1#1 is incorrect ("pci1799,1" instead of > base node name) > ERROR (name_properties): "name" property in /pci/mac-io/ide#1 is > incorrect ("ide" instead of base node name) > ERROR (name_properties): "name" property in > /pci/mac-io/ide#1/atapi-disk#1 is incorrect ("atapi-disk" instead of > base node name) > ERROR (name_properties): "name" property in /cpus/PowerPC,750/l2-cache#1 > is incorrect ("l2-cache" instead of base node name) > ERROR: Input tree has errors, aborting (use -f to force output) > > If I force output with "-f", the resulting file has no occurrences > of "phandle". Are you booting with BootX or Open Firmware ? > Running "lsprop /proc/device-tree | grep -i phandle" results in no > output. > > Please let me know if there's some other way to get information that > would be helpful. > > thanks > > -Stan