From: "Frédéric Danis" <frederic.danis@collabora.com>
To: u-boot@lists.denx.de
Subject: [PATCH v5 0/3] Add command to display or save Linux PStore dumps
Date: Fri, 20 Mar 2020 10:59:21 +0100 [thread overview]
Message-ID: <20200320095924.523-1-frederic.danis@collabora.com> (raw)
This serie of patches adds a new pstore command allowing to display or save
ramoops logs (oops, panic, console, ftrace and user) generated by a previous
kernel crash.
PStore parameters can be set in U-Boot configuration file, or at run-time
using "pstore set" command. For kernel using Device Tree, the parameters are
dynamically added to Device Tree.
Records size should be the same as the ones used by kernel, and should be a
power of 2.
Changes in v5:
- Fix test_pstore.py license
- Change log level on error messages in fdt_fixup_pstore()
- Replace fdt_appendprop_?() by fdt_setprop_?() when adding a new property
Changes in v4:
- Fix PStore memory address in sandbox defconfig files for tests
Changes in v3:
- Add default value for PStore memory size
- Remove default value of PStore memory address
- Update config entry helps
- Replace calls to debug() by log_debug()
- Update documentation
- Replace 1M test file by 3 * 4K files and build pstore memory during test
- Add fdt_fixup_pstore() to pass PStore/Ramoops parameters to kernel
Changes in v2:
- Fix 64bit mode build warnings
- Add documentation
- Add function description comments
- Replace calls to pr_debug() by debug()
- Add CONFIG_CMD_PSTORE to sandbox and sandbox64
- Add unit tests
Fr?d?ric Danis (3):
cmd: Add command to display or save Linux PStore dumps
test: Add PStore command tests
cmd: Fixup DT to pass PStore Ramoops parameters
cmd/Kconfig | 71 +++
cmd/Makefile | 1 +
cmd/pstore.c | 543 +++++++++++++++++++++
common/image-fdt.c | 4 +
configs/sandbox64_defconfig | 2 +
configs/sandbox_defconfig | 2 +
doc/index.rst | 7 +
doc/pstore.rst | 76 +++
include/fdt_support.h | 3 +
test/py/tests/test_pstore.py | 73 +++
test/py/tests/test_pstore_data_console.hex | Bin 0 -> 4096 bytes
test/py/tests/test_pstore_data_panic1.hex | Bin 0 -> 4096 bytes
test/py/tests/test_pstore_data_panic2.hex | Bin 0 -> 4096 bytes
13 files changed, 782 insertions(+)
create mode 100644 cmd/pstore.c
create mode 100644 doc/pstore.rst
create mode 100644 test/py/tests/test_pstore.py
create mode 100644 test/py/tests/test_pstore_data_console.hex
create mode 100644 test/py/tests/test_pstore_data_panic1.hex
create mode 100644 test/py/tests/test_pstore_data_panic2.hex
--
2.18.0
next reply other threads:[~2020-03-20 9:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 9:59 Frédéric Danis [this message]
2020-03-20 9:59 ` [PATCH v5 1/3] cmd: Add command to display or save Linux PStore dumps Frédéric Danis
2020-10-14 17:43 ` Tom Rini
2020-03-20 9:59 ` [PATCH v5 2/3] test: Add PStore command tests Frédéric Danis
2020-10-13 15:48 ` Tom Rini
2020-10-13 16:35 ` Frédéric Danis
2020-10-13 18:03 ` Tom Rini
2020-10-13 18:33 ` Tom Rini
2020-10-14 17:44 ` Tom Rini
2020-03-20 9:59 ` [PATCH v5 3/3] cmd: Fixup DT to pass PStore Ramoops parameters Frédéric Danis
2020-10-14 17:44 ` Tom Rini
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=20200320095924.523-1-frederic.danis@collabora.com \
--to=frederic.danis@collabora.com \
--cc=u-boot@lists.denx.de \
/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