Received: by 10.223.164.221 with SMTP id h29csp2903395wrb; Wed, 18 Oct 2017 08:46:46 -0700 (PDT) X-Received: by 10.98.15.197 with SMTP id 66mr14927495pfp.272.1508341605805; Wed, 18 Oct 2017 08:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508341605; cv=none; d=google.com; s=arc-20160816; b=cZ10piT0hT+31TJS0MrVxmObVgW5/SA8TrOHQfUSQ0Gabf/St5Gyc8Z2sJDABuFZ0/ PzMM3nBw5+BXPKKBBV/AfZWmxqUplMEYBNmLGtPHxLpPvPb5dxFn0r1XLytgf4++hm5P uGWf6W/cgH/gejEzlFOb+41byzbWE2O/Ga0X4oolFjE6Z3oSmtKBGtvBT0gEoXKLkESm 0KxJ86CfNF6040S5C4bvOliGG8BEf6WN7cLK3j9bPijsu5DYICO5ayOYqSw9x/h/4eq1 DQ+ZB/IFyQAl8YBlmyYMZBrK3kybZSM4XmWkAYkSITU1pwwMuGUvySRAlazObwXvVLDk n2xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=Cpaf+A71GFwfDhUEw3kQAuqmiM1R/OHLZ6EQjP1YySw=; b=FG12rKzp36nr7oL2PTdmK6cZqZVEGvStzoXfImXjFE2RwXMUZW4bfvo/QqSqJRQklR Y8lTlNQQsSqhHaHzrAkxVcfOWDAjPC7IccWs+tJWsGeK4WlA9FG/MKV1Ywh0TEjzaWVP Ui5yz9WICReh3kfMtipD18fuTLh1rzmWcSlaVSe5/UFojpZvurFDc0Rl1cbhjHdbpi8T u6aI2kzYMnhVgNls5mZQ7jdDpZD4+/DjT0B3R4El9yKb0bQpllhMJfl1dt7wFBxHEuZl Wvhql7dRIklqYYezJK7OceP97zEutCNwShhilYNSaMt/W0YJG882TmPaL9tB0tp5lQz8 Qgdw== 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 w9si7605750pfk.551.2017.10.18.08.46.32; Wed, 18 Oct 2017 08:46:45 -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 S1751529AbdJRPpC (ORCPT + 99 others); Wed, 18 Oct 2017 11:45:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbdJRPpA (ORCPT ); Wed, 18 Oct 2017 11:45:00 -0400 Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE8BE2191B; Wed, 18 Oct 2017 15:44:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE8BE2191B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qk0-f170.google.com with SMTP id m189so6761584qke.4; Wed, 18 Oct 2017 08:44:59 -0700 (PDT) X-Gm-Message-State: AMCzsaWGccHUsEK024i/koCDgwcR9/C9zkzKUNX+t0MoInGDTuam1URA ovU1SxdtKnnTa1yMnfDNVJP06F47n/EQeoB43w== X-Google-Smtp-Source: ABhQp+TPn8N/g2PAP2NfYyGZha7dBmJbtrutwPFvyOaEqUUxTQTgL6eLtHxPsVkz6hMjNKlC5OA274DpH4ML8SyTIEc= X-Received: by 10.55.110.196 with SMTP id j187mr3087651qkc.192.1508341499075; Wed, 18 Oct 2017 08:44:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.130.134 with HTTP; Wed, 18 Oct 2017 08:44:38 -0700 (PDT) In-Reply-To: References: <20170821151651.25096-1-robh@kernel.org> <20170821151651.25096-6-robh@kernel.org> <59E69786.2030406@gmail.com> From: Rob Herring Date: Wed, 18 Oct 2017 10:44:38 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/5] of/fdt: only store the device node basename in full_name To: Alan Tull Cc: Frank Rowand , Pantelis Antoniou , "devicetree@vger.kernel.org" , Michael Ellerman , linuxppc-dev , linux-kernel , Benjamin Herrenschmidt , Paul Mackerras , David Laight , linux-fpga@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 18, 2017 at 10:12 AM, Alan Tull wrote: > On Tue, Oct 17, 2017 at 6:51 PM, Frank Rowand wrote: >> On 10/17/17 14:46, Rob Herring wrote: >>> On Tue, Oct 17, 2017 at 4:32 PM, Alan Tull wrote: >>>> On Mon, Aug 21, 2017 at 10:16 AM, Rob Herring wrote: >>>> >>>> Hi Rob, >>>> >>>>> With dependencies on a statically allocated full path name converted to >>>>> use %pOF format specifier, we can store just the basename of node, and >>>>> the unflattening of the FDT can be simplified. >>>>> >>>>> This commit will affect the remaining users of full_name. After >>>>> analyzing these users, the remaining cases should only change some print >>>>> messages. The main users of full_name are providing a name for struct >>>>> resource. The resource names shouldn't be important other than providing >>>>> /proc/iomem names. >>>>> >>>>> We no longer distinguish between pre and post 0x10 dtb formats as either >>>>> a full path or basename will work. However, less than 0x10 formats have >>>>> been broken since the conversion to use libfdt (and no one has cared). >>>>> The conversion of the unflattening code to be non-recursive also broke >>>>> pre 0x10 formats as the populate_node function would return 0 in that >>>>> case. >>>>> >>>>> Signed-off-by: Rob Herring >>>>> --- >>>>> v2: >>>>> - rebase to linux-next >>>>> >>>>> drivers/of/fdt.c | 69 +++++++++----------------------------------------------- >>>>> 1 file changed, 11 insertions(+), 58 deletions(-) >>>> >>>> I've just updated to the latest next branch and am finding problems >>>> applying overlays. Reverting this commit alleviates things. The >>>> errors I get are: >>>> >>>> [ 88.498704] OF: overlay: Failed to apply prop @/__symbols__/clk_0 >>>> [ 88.513447] OF: overlay: apply failed '/__symbols__' >>>> [ 88.518423] create_overlay: Failed to create overlay (err=-12) >>> >>> Frank's series with overlay updates should fix this. >> >> Yes, it does: >> >> [PATCH v3 11/12] of: overlay: remove a dependency on device node full_name > > Thanks for the fast response. I fetched the dt/next branch to test > this but there are sufficient changes that Pantelis' "OF: DT-Overlay > configfs interface (v7)" is broken now. I've been adding that > downstream since 4.4. We're using it as an interface for applying > overlays to program FPGAs. If we fix it again, is there any chance > that can go upstream now? With a drive-by posting once every few years, no. The issue remains that the kernel is not really setup to deal with any random property or node to be changed at any point in run-time. I think there needs to be some restrictions around what the overlays can touch. We can't have it be wide open and then lock things down later and break users. One example of what you could do is you can only add sub-trees to whitelisted nodes. That's probably acceptable for your usecase. Rob From 1581608751378110836@xxx Wed Oct 18 15:14:04 +0000 2017 X-GM-THRID: 1576354368386704057 X-Gmail-Labels: Inbox,Category Forums