Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp222162imm; Thu, 30 Aug 2018 21:38:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZJZkqe0QGu0GdtA/RgMqkMOxWJjsHXj8IrsncmbQLPU/Ajf7XHfiEhVH6yuMrO3ny1+TBe X-Received: by 2002:a17:902:7845:: with SMTP id e5-v6mr13372143pln.197.1535690333578; Thu, 30 Aug 2018 21:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535690333; cv=none; d=google.com; s=arc-20160816; b=FtiTkPhdpifWb4E4S41h9xiUbFa7HhRzC2SgHb+XNSSKEpuXlmVjBllERuQ1zMRiS7 jnBIwTYMD9P9s3c628X/yCwvfZNO+9ldF7Z75atiNer4QmZ6g/p1c+m9Fu4HelUsDoVj aV1cz08qblf5nyGxhin5UHv24EZHjUaeB0kCVGn8O7qEwWe/o514QLSOdbV4ZOFIzMhX KqoSxJOpN0kY8Y8jHFfXV32E+1Pjptl4q5UdCChDisW+fVv0xU0HtjmqHcZQoi4zqc7T VoC7NRxM0Zo5AVpiPbPqF4cpZAuHY5Kqc0oZR/FPSK4RrnHNGA0oEaxHwuVgZUS7JYsS xP9w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=2tboE3a2R3pfYj3H3lUAqibkfDCL7iLM6OKuWC3F+TA=; b=HuMg+eG1YA4u46gB7Wyx/E/tX2SJ5Aqqn1dD1hwPPAde1gbwowgIWcX0MgoBY8ZOqu kFUOAh4RE+lvgqDlXrR1zniYd1dkz8xK/iWoBx1HtmbNh0a8eCPMJaDg1BPPpyAaTBzk oz0t4AGOZ0HR7BrKHl3eHFWhY4l9eFKV9ve7zki7WrGCzQJJSiHqgOXhYXQ05sFZOuZ7 ffz8deeU+HgmVgTCKvaLjwC2cfGL9fwfPGTr9g5DejK7/uliRQ26c3xMfHQkeT+JjaXt JDKAn7tSoZS2E7xHQ4XjSURM/v4wstsXz13PIdlNeeJ1aPt6eZPXeowZUTXk7D7cqrQB MFkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VtRFEywF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127-v6si8595788pfa.189.2018.08.30.21.38.38; Thu, 30 Aug 2018 21:38:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VtRFEywF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727370AbeHaIli (ORCPT + 99 others); Fri, 31 Aug 2018 04:41:38 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38416 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726660AbeHaIlh (ORCPT ); Fri, 31 Aug 2018 04:41:37 -0400 Received: by mail-pf1-f193.google.com with SMTP id x17-v6so4904834pfh.5; Thu, 30 Aug 2018 21:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2tboE3a2R3pfYj3H3lUAqibkfDCL7iLM6OKuWC3F+TA=; b=VtRFEywF3GC1AikV1ROCqzUL9mpGtgU/3YNX+SD7ni5UdMQQHJADdykNH2ixXf8oBl J/kRR3lQOKgvFs+PqxTDzOjsrWH9wRvVTvn4SBLc1R8evfqTG4CYQQevnSnvC05NwriJ 3aC7cFxv2cR6KPgWL85s9KgyJUMyJPtWiMt9I+mIppLcs+1pjGSWV8RVzX7RK1JDHZk7 MnreWRRIGv5/Ovaa5owMvS6U92KqastFOl7MPT+GcaWtoYOB2N3TYQaUu40MEPwtFBEI XWo2rfdswuZ6cmKe2hNECjxBE/JgEb14wzcGMBFvMTv1052Ip7v+8VSJoJhvmcLuvojt rx2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2tboE3a2R3pfYj3H3lUAqibkfDCL7iLM6OKuWC3F+TA=; b=RNxG5iY7vUr2bjblE8R/AuE3z9EDikG23LCMaQzJOHIsHk4ex3kwrblNT5zzJTU99A +4CUdixjIG0J0kF4azqFQitqH4jfDGdv4tcvTWt/4BoyZKDPCcdAxgrR5ei7kPNUejFY Fd7blzmDhD/S9zxBZU/0Wrp/1NURMhovjP9FoRqC2e2DmQwTLv7araZUk4lpylaRZLQU byHoXpUWRbeMnA/0851Fl6Tj/cCEdx8sdq9tei7j8VlaRk20hhBB6fusg48Flh4vNhg5 gH9LVqKGXNFczkCtmug+WY47qGKdB8641QylatKv8Hlpq5UUR3A7BQmQQzw9vMohMRLd ad7A== X-Gm-Message-State: APzg51CXuCyNwggKUxy0gk+i3VOoQzt4ITIj30nUYf4ZIiBeMs6gryQ+ zZZIsSBm/ZTPNr93ccBwMnE= X-Received: by 2002:a62:d94:: with SMTP id 20-v6mr13751544pfn.202.1535690162868; Thu, 30 Aug 2018 21:36:02 -0700 (PDT) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id n22-v6sm23804660pfj.68.2018.08.30.21.36.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 21:36:02 -0700 (PDT) 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() To: Finn Thain Cc: Stan Johnson , Rob Herring , Benjamin Herrenschmidt , Chintan Pandya , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <1520208889-3908-1-git-send-email-frowand.list@gmail.com> <1520208889-3908-2-git-send-email-frowand.list@gmail.com> From: Frank Rowand Message-ID: <0ad5dbfd-08f3-b97d-34b9-70fc9a729921@gmail.com> Date: Thu, 30 Aug 2018 21:36:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Finn, On 08/29/18 17:44, 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. > > I did see this in the kernel messages: > > Duplicate name in PowerPC,750, renamed to "l2-cache#1" > Duplicate name in mac-io, renamed to "ide#1" > Duplicate name in ide#1, renamed to "atapi-disk#1" > Duplicate name in multifunc-device, renamed to "pci1799,1#1" > > No idea whether that's relevant; I haven't done any further investigation. > Complete dmesg output is attached. Please let me know if there's any more > information you need to help find the bug. > > Thanks. I don't have any useful answers yet, but I am following the thread and have also quickly scanned the two commits for any obvious cause. I will look into this some more, but have a few other tasks that I need to complete first. A long shot, but something to consider, is that I failed to cover the cases of dynamic devicetree updates (removing nodes that contain a phandle) in ways other than overlays. Michael Ellerman has reported such a problem for powerpc/mobility with of_detach_node(). A patch to fix that is one of the tasks I need to complete. -Frank