Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4557493imm; Mon, 15 Oct 2018 17:38:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV60GrrBr18Ry5jGTea7e8Ji7PdzMnsMuO55LQB10iWnrMpOXwddyjkF0LybDXPvZiKxIt8dp X-Received: by 2002:a62:5c03:: with SMTP id q3-v6mr20154041pfb.182.1539650290292; Mon, 15 Oct 2018 17:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539650290; cv=none; d=google.com; s=arc-20160816; b=i7dhET3N8SJq6r2XYq+XJcGJpO0TgidL3lNApHfEU18VaqrziCwihnEujH0zAPrJvB fTJ5ZGSvbHGDBmT7DzgtGXTOwE11CknmD2XF85uHDEHuvZr4LkwNnZIvThV9cO8kP7XV 1l2eg5abxC74FVSvSOp7RnmG0rFIB+8+buceUl2DZS+5mn2BZUMThrqriRmqkt424bMT i3T7pQby9bEuRLLM1d9gf0veg21+Fb112LWpjg47v1kwJ4TyPoF1ORHgk2F7/3oaa3pw vqfhLeJb5CyDjO1xhiR6K+sbcTDHBADqUYK1RWWHzYhdIG2CFGgwLDo0NmfA+UhLKoxL MZ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from; bh=v1f0bhPGF3wayMa5ufWuWVG1e0ox4szMoy4YrsmPrOo=; b=KALDerulzXWq7IrQAgpdLUONPG2LKO4o7lCjIRoHdGqXLBgwDfCd7PHrUp9ICEmdw+ 1HVka++Qu1yii3tzvwPntZFze5XAHlJKnkR2g9diBDiVyR1hrWTPDPovSoh//Gv0Pi3i Wh56RM9QGSxz6PQ/lMLJgP7rpkKwJ59EFU8LjXQY2IrXDZjm770P4lW1YOwz6ByBpMQJ PyEKeCGlMrj1YxEVSFR+GFFkLUrP8Jmf0hhrkedr6KfvSH+x3y6rMBWdVuaLB95QF/ii K8yR845O5kzk2U5mRSb9NiXfYrr0cTtPgYgodk3YOGCkhE1TVrAtD+Aj6fXztobc/qvi 8fzA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p186-v6si8596945pfb.200.2018.10.15.17.37.53; Mon, 15 Oct 2018 17:38:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbeJPIXs (ORCPT + 99 others); Tue, 16 Oct 2018 04:23:48 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:51370 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726914AbeJPIXr (ORCPT ); Tue, 16 Oct 2018 04:23:47 -0400 Received: from mr4.cc.vt.edu (mail.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id w9G0a5Vg009344 for ; Mon, 15 Oct 2018 20:36:05 -0400 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id w9G0a03b015674 for ; Mon, 15 Oct 2018 20:36:05 -0400 Received: by mail-qt1-f199.google.com with SMTP id m1-v6so22622019qtb.18 for ; Mon, 15 Oct 2018 17:36:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=v1f0bhPGF3wayMa5ufWuWVG1e0ox4szMoy4YrsmPrOo=; b=aH33P8ZgJilD6be+Zrjk4Zev+kSDhMlvcDcAJ8SHaRv8grzw/zsPmjT8qBDVuCcpbb W8cNxUQKiynnTpAkgYN/8lmLNv9pd6i1hwDyWynoOUBoxjJB/K+FGbIPntv4WxKbu/AC YYxbPMorgUIjOODQPFJvCaHe2l4vkX1NX+FnD7dBQkS/4tInze7XVDgx9Y5/Oya1aMdi 3MVuLW9MLXhx7UFuF6fZBlWmcpcwHrNfowKAT6p2desjF/X2BtS0TZfVBGrhsX8x4L3R pQ0m5zK3sfdAV1Ly2rCeNNKgFEfEjTXDDqJSQocCXwJ1ve+Wa9Pl0Tno7oII5oURUWWK e9bA== X-Gm-Message-State: ABuFfohl2yJz5U7ow05cws6NZeGToVyj9VmVdCXTDRGU8DYz5cbOwyyJ byFrMjQ/hpUv0FUU+blHF2hVMsRWxvGuoKKkoZo2TU/Fyxas+MLUyU9UgPtOjlvu/IYbgx01ryD p+4YZ2p1wq5fLZ9YA36muCHAwOIqyCgIek6o= X-Received: by 2002:ac8:2278:: with SMTP id p53-v6mr18699048qtp.200.1539650160317; Mon, 15 Oct 2018 17:36:00 -0700 (PDT) X-Received: by 2002:ac8:2278:: with SMTP id p53-v6mr18699033qtp.200.1539650160025; Mon, 15 Oct 2018 17:36:00 -0700 (PDT) Received: from turing-police.cc.vt.edu ([2607:b400:24:0:3d3c:680f:afbc:c585]) by smtp.gmail.com with ESMTPSA id n67-v6sm11387281qkh.66.2018.10.15.17.35.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 17:35:58 -0700 (PDT) From: valdis.kletnieks@vt.edu X-Google-Original-From: Valdis.Kletnieks@vt.edu X-Mailer: exmh version 2.8.0 04/21/2017 with nmh-1.7+dev To: frowand.list@gmail.com Cc: Rob Herring , pantelis.antoniou@konsulko.com, Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, Alan Tull Subject: Re: [PATCH v2] of: overlay: user space synchronization In-Reply-To: <1539649621-5518-1-git-send-email-frowand.list@gmail.com> References: <1539649621-5518-1-git-send-email-frowand.list@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1539650157_2195P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 15 Oct 2018 20:35:58 -0400 Message-ID: <5408.1539650158@turing-police.cc.vt.edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1539650157_2195P Content-Type: text/plain; charset=us-ascii On Mon, 15 Oct 2018 17:27:01 -0700, frowand.list@gmail.com said: > From: Frank Rowand > > When an overlay is applied or removed, the live devicetree visible in > /proc/device-tree/, aka /sys/firmware/devicetree/base/, reflects the > changes. There is no method for user space to determine whether the > live devicetree was modified by overlay actions. > > Provide a sysfs file, /sys/firmware/devicetree/tree_version, to allow > user space to determine if the live devicetree has remained unchanged > while a series of one or more accesses of /proc/device-tree/ occur. > > The use of both dynamic devicetree modifications and overlay apply and > removal are not supported during the same boot cycle. Thus non-overlay > dynamic modifications are not reflected in the value of tree_version. Is there an easy way from userspace to detect "yes/no dynamic modifications have been done since boot"? --==_Exmh_1539650157_2195P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.8.0 04/21/2017 iQEVAwUBW8UybY0DS38y7CIcAQJaRAf+Il4+gH+j2Zi4KTT3qxKMlNjnKbA+UubA BHOBGqTG9rD6GOTbR/0Cz2E/yXScYkcG+pmO2+DvhJgkYmAmpGr+epkIjmRBECBx tA4fHPxH4mKcb09PrlqyjcmAfoRffGcfTkY2yAR9fSkwk9Kk7hOchiqIpE7YkUCR KN6xkn6pX9xsA1iG7Xuk+L1SSupm4DounP/8km8Bml31ebL/uVMjSKI6+PllM3RN ScxOHbW6vCy/9Z1F/ZUT0sOovBPl2GSZNyA6L6rbvdmaubVZIR2Yh9DunRIV45Gu F+B3kWZ56baPpStLDKXr7BhPYv+SctGxyYMsJZgekKONdzqwd7Gy4A== =AWoN -----END PGP SIGNATURE----- --==_Exmh_1539650157_2195P--