Received: by 10.223.176.5 with SMTP id f5csp183725wra; Tue, 30 Jan 2018 09:52:50 -0800 (PST) X-Google-Smtp-Source: AH8x2273Bw1Zdf0EWMr+fyT7OYbVG+6TSlk87IllIFr+WC1urrfSBPJ4CmciG5/DNLuSdmaKPHAO X-Received: by 10.99.140.18 with SMTP id m18mr24629744pgd.59.1517334770577; Tue, 30 Jan 2018 09:52:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517334770; cv=none; d=google.com; s=arc-20160816; b=wNGxcH/+jVAbTpEcwNY2HJSScxtEwjc+/Ifq/H3PNU2IhQj4jfJTPuEaR+GwvIm6OF tmaatXXoDgjfftTp7/1BUr7/6/5gATNdDh1ogGGAzgEN4e2kuTNBD4b5H7Zk+5Sb5SwK 7PC4Oj17L1GgIvbGhaOahbEyuPrRPrveVZYZ1Zt4Yw5pcleQ6JkwxAoaKLf0+Lz2m9b8 2ypG98sc1lhAZKHAIrEfmsPHgbiCc6D6NR9R5Fzo/yDqY3T3h/wMRw1vZ2MGK4Lnws40 5+FFNvnnTx0Pf8vmKXds2JxLkjN+peBCpl0tClgq+rPciEoV+RkK6ukM46Ll3qAVdnn8 JJTA== 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=2E1EdR8kvWZ7f9lKu1pRk64k5OHQaIUQDzB1OUSRxZM=; b=fXNhLG4l1xVcIF7RBfgwAqYn8p7nP/xA9tneFw4qu7sHuewqVaKM1y4ITa0fmj/3+u s88wb20Z1BPZ4iWbR952qGOnY3eukcHCHmOkJxGr++y4CA+h/x+WMgpb7TWyjVYHzfFW eh4bnM1TMfM9sY/LMuAuwHDHLm5yHGfQq/npVzVKtPO7Qsqw4lAJjcfjHXZpB2emFvIJ z3ay36z+5nfy1X/IaEOSQc+NhjXY6Qr4+AaBWDyxb0ofKuJ6O39jTKo07Cor0quu6PCb Xul7/q8h7k5B5sRxiOTj/B6QtjNYkTvDhUPneN2s6LgZzRuZ1pUD34kIahSTHXWntEAh 8d9A== 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 w61-v6si12149412plb.412.2018.01.30.09.52.36; Tue, 30 Jan 2018 09:52:50 -0800 (PST) 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 S1753246AbeA3Q27 (ORCPT + 99 others); Tue, 30 Jan 2018 11:28:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:52696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbeA3Q2x (ORCPT ); Tue, 30 Jan 2018 11:28:53 -0500 Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) (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 898FC217A0; Tue, 30 Jan 2018 16:28:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 898FC217A0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=atull@kernel.org Received: by mail-ua0-f169.google.com with SMTP id q8so7451895uae.4; Tue, 30 Jan 2018 08:28:52 -0800 (PST) X-Gm-Message-State: AKwxytenqIpRFj/ZYZGezaQJms48zVyZScTE12922nSncgdPIV2jLbZR /rZa2mYY64dSW49pyZFSEbfvpmqW1ofeydmzCmA= X-Received: by 10.159.54.240 with SMTP id p103mr22866552uap.119.1517329731600; Tue, 30 Jan 2018 08:28:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.60.79 with HTTP; Tue, 30 Jan 2018 08:28:11 -0800 (PST) In-Reply-To: References: <1517194414-19932-1-git-send-email-frowand.list@gmail.com> From: Alan Tull Date: Tue, 30 Jan 2018 10:28:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] of: change overlay apply input data from EDT to FDT To: Frank Rowand Cc: Geert Uytterhoeven , Rob Herring , Pantelis Antoniou , Pantelis Antoniou , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List 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 Mon, Jan 29, 2018 at 6:35 PM, Frank Rowand wrote: Hi Frank, > Hi Alan, > > In this patch series one of the changes was to change some > devicetree unittest overlay source to use the new sugar syntax to > specify overlay nodes instead of hand coding the fragment nodes. > > One reviewer reminded me to update Documentation/ files that > show the hand coding of overlay fragment nodes. One of those > files is Documentation/devicetree/bindings/fpga/fpga-region.txt. > I plan to submit a patch to update the example devicetree source > to use the sugar syntax. There is one place where I can not > make that change, which is the "Overlay DTS Format" section. > In this section, the use of 'target-path="/path" is shown as > one of two ways to specify the target of the fragment. The > sugar syntax creates a fragment using the 'target=' > form instead of 'target-path="/path"' form. With sugar > syntax, there is no way to specify target-path. Is the > target-path form needed by the fpga subsystem, or can this > be removed? Removing target-path won't be a loss of functionality as far as I can see. Currently the examples in Documentation/devicetree/bindings/fpga/fpga-region.txt all specify 'target = while the descriptive text says that target and target-path are both options (3 line edits are needed to remove target-path from this file plus other edits to change it to sugar format without __overlay__ and 'fragment@0'). Thanks for asking! Alan > > -Frank > > On 01/29/18 16:22, Frank Rowand wrote: >> On 01/29/18 06:08, Geert Uytterhoeven wrote: >>> Hi Frank, >>> >>> On Mon, Jan 29, 2018 at 3:53 AM, wrote: >>>> From: Frank Rowand >>>> >>>> Move duplicating and unflattening of an overlay flattened devicetree >>>> (FDT) into the overlay application code. To accomplish this, >>>> of_overlay_apply() is replaced by of_overlay_fdt_apply(). >>>> >>>> The copy of the FDT (aka "duplicate FDT") now belongs to devicetree >>>> code, which is thus responsible for freeing the duplicate FDT. The >>>> caller of of_overlay_fdt_apply() remains responsible for freeing the >>>> original FDT. >>>> >>>> The unflattened device tree (aka expanded device tree, EDT) now >>>> belongs to devicetree code, which is thus responsible for freeing >>>> the EDT. >>>> >>>> These ownership changes prevent early freeing of the duplicated FDT >>>> or the EDT, which could result in use after free errors. >>>> >>>> These changes led to migrating some unittest overlay data into >>>> their own devicetree source files, and then converting most of >>>> them to use sugar syntax instead of hand coding fragments. >>> >>> Thanks for your series! >>> >>>> Frank Rowand (2): >>>> of: change overlay apply input data from EDT to FDT >>>> of: convert unittest overlay devicetree source to sugar syntax >>> >>> Do you plan to update Documentation/devicetree/overlay-notes.txt >>> and Documentation/devicetree/bindings/fpga/fpga-region.txt, too? >> >> Thanks for the pointers. >> >> I will add updates to Documentation/devicetree/overlay-notes.txt in >> this series. >> >> The changes to Documentation/devicetree/bindings/fpga/fpga-region.txt >> are related to the relatively new sugar syntax in dtc, not to the >> changes introduced by this patch series. I'll create a patch outside >> this series to update this documentation. >> >> >>> Gr{oetje,eeting}s, >>> >>> Geert >>> >>> -- >>> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org >>> >>> In personal conversations with technical people, I call myself a hacker. But >>> when I'm talking to journalists I just say "programmer" or something like that. >>> -- Linus Torvalds >>> >> >> >