Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1304278
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] pstore-ram: add Device Tree bindings |
| Date | 2016-01-08 09:50 +0100 |
| Message-ID | <qOAUc-4eB-47@gated-at.bofh.it> (permalink) |
| References | <qOstA-6LL-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thursday 07 January 2016 15:40:56 Greg Hackmann wrote: > ramoops is one of the remaining places where ARM vendors still rely on > board-specific shims. Device Tree lets us replace those shims with > generic code. > > These bindings mirror the ramoops module parameters, with two small > differences: > > (1) dump_oops becomes an optional "no-dump-oops" property, since ramoops > sets dump_oops=1 by default. > > (2) mem_type=1 becomes the more self-explanatory "unbuffered" property. > > Signed-off-by: Greg Hackmann <ghackmann@google.com> > --- > Changes in V3: > - documentation fixes > - look for "no-ram-oops" property as documented > > Changes in V2: > - make DT binding documentation more generic > > Documentation/devicetree/bindings/misc/ramoops.txt | 43 ++++++++ > Documentation/ramoops.txt | 6 +- > fs/pstore/ram.c | 110 ++++++++++++++++++++- > 3 files changed, 155 insertions(+), 4 deletions(-) > create mode 100644 Documentation/devicetree/bindings/misc/ramoops.txt > > diff --git a/Documentation/devicetree/bindings/misc/ramoops.txt b/Documentation/devicetree/bindings/misc/ramoops.txt > new file mode 100644 > index 0000000..5a475fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/misc/ramoops.txt > @@ -0,0 +1,43 @@ > +Ramoops oops/panic logger > +========================= > + > +ramoops provides persistent RAM storage for oops and panics, so they can be > +recovered after a reboot. > + > +Parts of this storage may be set aside for other persistent log buffers, such > +as kernel log messages, or for optional ECC error-correction data. The total > +size of these optional buffers must fit in the reserved region. > + > +Any remaining space will be used for a circular buffer of oops and panic > +records. These records have a configurable size, with a size of 0 indicating > +that they should be disabled. > + > + > +Required properties: > + > +- compatible: must be "ramoops" > + > +- memory-region: phandle to a region of memory that is preserved between reboots > + I still think putting it into the pstore node would be better here. Arnd
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3] pstore-ram: add Device Tree bindings Greg Hackmann <ghackmann@google.com> - 2016-01-08 00:50 +0100 Re: [PATCH v3] pstore-ram: add Device Tree bindings Kees Cook <keescook@chromium.org> - 2016-01-08 01:30 +0100 Re: [PATCH v3] pstore-ram: add Device Tree bindings Arnd Bergmann <arnd@arndb.de> - 2016-01-08 09:50 +0100
csiph-web