From: Rob Herring <robh@kernel.org>
To: frowand.list@gmail.com
Cc: pantelis.antoniou@konsulko.com,
Pantelis Antoniou <panto@antoniou-consulting.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
geert@linux-m68k.org, Alan Tull <atull@kernel.org>
Subject: Re: [PATCH v3] of: overlay: user space synchronization
Date: Thu, 18 Oct 2018 14:32:16 -0500 [thread overview]
Message-ID: <20181018193216.GA9971@bogus> (raw)
In-Reply-To: <1539736466-28638-1-git-send-email-frowand.list@gmail.com>
On Tue, Oct 16, 2018 at 05:34:26PM -0700, frowand.list@gmail.com wrote:
> From: Frank Rowand <frank.rowand@sony.com>
>
> 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.
Because userspace has no way to modify the DT and the ways the kernel
can do modifications is limited.
Do you have an actually need for this outside of testing/development?
> 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 (1) dynamic devicetree modifications and (2) 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.
I'd prefer to see some sort of information on overlays exported and user
space can check if that changed. IIRC, Pantelis had a series to do that
along with a kill switch to prevent further modifications. At least some
of that series only had minor issues to fix.
Also, shouldn't we get uevents if the tree changes? Maybe that's not
guaranteed, but I'd bet we can't handle cases where we don't get events.
A property added to an existing node comes to mind.
Rob
next prev parent reply other threads:[~2018-10-18 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 0:34 [PATCH v3] of: overlay: user space synchronization frowand.list
2018-10-18 19:32 ` Rob Herring [this message]
2018-10-19 0:06 ` Frank Rowand
2018-10-19 7:08 ` Geert Uytterhoeven
2018-10-19 16:06 ` Rob Herring
2018-10-22 7:30 ` Frank Rowand
2018-11-03 4:54 ` Frank Rowand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181018193216.GA9971@bogus \
--to=robh@kernel.org \
--cc=atull@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pantelis.antoniou@konsulko.com \
--cc=panto@antoniou-consulting.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).