Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2232933imm; Sun, 9 Sep 2018 19:41:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ981eWeI5BJJq0dn0gRfC/9b7aO5Ju8DmEfOK3zJkybV3i37/IDbL1EXpReJQXUE/gbEMD X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr19806383pgs.203.1536547311717; Sun, 09 Sep 2018 19:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536547311; cv=none; d=google.com; s=arc-20160816; b=tqGTT6BfFEiMZ6RMrnjyr37FqKQyt9QAfFzFjuTAdmQmuA585F96wqXxikv16/WE96 AGlqOvNz5EoRQOu/iQ6vAfLXaCTVsFZvejnDc+iUiLNmomrvsP7QjlT7ZqhPiKRQMnDT CghWYQk5QPp9/stq9I/WTbjWvjUHlSoyEqwbQjf2cYHU1Qiiu3F4gHGOCf+yLp2/PSay UbMZiLgQ5sCFxIOKms3l7oNVJHgDog17b15KUGgmDfmBE9aUVY/Cm1ZeKMU7ipZLKhAi AiJkvBN6eJsjR4TBjahyxtlGltA0flerHrgskqN3RJjXCZbAUhCV+KTSVdjb6v8Th0Yx yHuA== 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; bh=woGasLP9eCFLFm0cWT6vds2/J7Cc+SSE5nrEGOq4k7A=; b=gBbfnj+0WrIPNSVsQnMNgvytRHwuAYI7fe4OMVSaRRCcUxtnd4EoE6X7ABLzL39HTT 5Ww1zjRNJEA+SNO/HoU/hQOLFf/shgOVm8QpY4TrUl3CDFEBt2WVJ83+m85Y0tHe7G4Y U8AC0QRCADX5tdkYgBoU0vPpM59d1djtmNMV/Yv1Sg0Mi1pWliErUe7GMWBMnPsm/Ppm 0UeS25HCIGTJObVRqmnTdnT86voujDiF4FIi6AYgLIrIDZfm+qr68Fu9koz5DHRWSzPv JfTDwsJeDWZrWyVPZdqfYt/d+LvAlmBvFZCX/nKKUqqxVNLmTvHiiyrW0EccO1ETDuv0 UfPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZssLbtQg; 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 188-v6si16141644pfg.154.2018.09.09.19.41.36; Sun, 09 Sep 2018 19:41:51 -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=ZssLbtQg; 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 S1726587AbeIJHb5 (ORCPT + 99 others); Mon, 10 Sep 2018 03:31:57 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45327 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbeIJHb5 (ORCPT ); Mon, 10 Sep 2018 03:31:57 -0400 Received: by mail-pg1-f194.google.com with SMTP id x26-v6so9651794pge.12; Sun, 09 Sep 2018 19:40:14 -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=woGasLP9eCFLFm0cWT6vds2/J7Cc+SSE5nrEGOq4k7A=; b=ZssLbtQg8gAU9yG51GyLuyRa92yH+lfd0i2tl/YMcmzSmzOQ/E1yV/csrQXOl3GxRO 3j4kgLwoiknN7vLZnsBS4NqUCnD3k9bDPw3Q9v1+Bb4YZ45gmBZH/UnNKEejbEPB6+Sw 0ZZjQvl4Taw5GhgP5H2wr7p1Cn2aDfVsW+JInpCxdkNjHfbHFME5etoFJRFaHwQcunvB WUGjlkI4CtLXIeh/GVqU/dNmsSy/G0UWcf9eA4WJwibvgInH9QSh4zCojTXchgDTCu7p k6cJuw1q1DhLQJ6pqWC5IEv0PZ14CE1JcHS5E3RWVjCjZ7XiqP+U0J/63ZyPZ+Bxm48Q eetQ== 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=woGasLP9eCFLFm0cWT6vds2/J7Cc+SSE5nrEGOq4k7A=; b=myyw79XnH9IXkRJVainpvCLbr+jHUT2SRtKCwr3W0Q9sZDk4vRMFWvi84TlYacr8U+ 7YrP+Q3uzQePg5rTgsTA8zkckoTJM9PWZWR2k4H5ImoDid2c1U7cMWRxm4CYCUedi0pm k6T/MjHYwhgnjocJJRW8DE33pr80cqaibabqKOV2evaNfeGH7OsAtWO+81bOUV7q2afh J2/CN7aIFAliqwSypW0HahXM46WN6iS3bEQjrY8Gx8hbzNPkbJRtDcCS1jK3tN7EuwJ/ R2S+Ox/qEnXhx+VSzkgP85mlqJhECTOLlgPQejz/GsTvQ9czrqEvXyW5ebvcYuE/NoRZ V6Ug== X-Gm-Message-State: APzg51B2BccFg+VEZvi3R/lO6DzMX86j4OVU8FV86+l4ofej9gmAZSDb eacTPKUNXm+bXkQLNo9OIqgEEDzn X-Received: by 2002:a62:57dc:: with SMTP id i89-v6mr20565299pfj.45.1536537146945; Sun, 09 Sep 2018 16:52:26 -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 w5-v6sm17222389pfn.44.2018.09.09.16.52.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Sep 2018 16:52:26 -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: Benjamin Herrenschmidt , Finn Thain Cc: Stan Johnson , Rob Herring , Chintan Pandya , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Frank Rowand References: <1520208889-3908-1-git-send-email-frowand.list@gmail.com> <1520208889-3908-2-git-send-email-frowand.list@gmail.com> <0ad5dbfd-08f3-b97d-34b9-70fc9a729921@gmail.com> <7427daf6570d519e6793eb96d2fbaa52714b0cd7.camel@kernel.crashing.org> From: Frank Rowand Message-ID: <3d806f12-dd6f-63d7-92e0-0a79904dc4c9@gmail.com> Date: Sun, 9 Sep 2018 16:52:24 -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: <7427daf6570d519e6793eb96d2fbaa52714b0cd7.camel@kernel.crashing.org> Content-Type: text/plain; charset=utf-8 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 On 09/09/18 10:04, Benjamin Herrenschmidt wrote: > On Fri, 2018-08-31 at 14:58 +1000, Benjamin Herrenschmidt wrote: >> >>> 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. >> >> The only thing I can think of is booting via the BootX bootloader on >> those ancient macs results in a DT with no phandles. I didn't see an >> obvious reason why that would cause that patch to break though. > > Guys, we still don't have a fix for this one on its way upstream... > > My test patch just creates phandle properties for all nodes, that was > not intended as a fix, more a way to check if the problem was related > to the lack of phandles. > > I don't actually know why the new code causes things to fail when > phandles are absent. This needs to be looked at. > > I'm travelling at the moment and generally caught up with other things, > I haven't had a chance to dig, so just a heads up. I don't intend to > submit my patch since it's just a band aid. We need to figure out what > the actual problem is. > > Cheers, > Ben. Thanks for chasing after this, and the current heads up. I agree that we need to understand what is going on and do a real fix. -Frank