The following patches are for OpenHarmony 4.19 kernel. These patches refer to pstore/bl from upstream. ------------------------------------------------------------- Al Viro (1): pstore: switch to copy_from_user() Christoph Hellwig (1): mark pstore-blk as broken Dmitry Osipenko (1): pstore/ram: Rate-limit "uncorrectable error in header" message Douglas Anderson (1): pstore/ram: Improve backward compatibility with older Chromebooks Greg Kroah-Hartman (1): pstore: no need to check return value of debugfs_create functions Gustavo A. R. Silva (1): pstore/ram: Replace zero-length array with flexible-array member Jiri Bohac (1): pstore: Fix typo in compression option name Joel Fernandes (Google) (2): pstore: Map PSTORE_TYPE_* to strings pstore/ram: Simplify ramoops_get_next_prz() arguments Kees Cook (19): pstore/ram: Clarify resource reservation labels pstore/ram: Standardize module name in ramoops pstore: Improve and update some comments and status output pstore/ram: Report backend assignments with finer granularity pstore: Replace open-coded << with BIT() pstore/ram: Avoid needless alloc during header write pstore/ram: Regularize prz label allocation lifetime pstore: Rename "allpstore" to "records_list" pstore: Convert "records_list" locking to mutex pstore: Refactor pstorefs record list removal pstore: Add locking around superblock changes pstore/platform: Switch pstore_info::name to const pstore/platform: Move module params after declarations pstore/ram: Adjust module param permissions to reflect reality pstore/ram: Refactor DT size parsing pstore/ram: Refactor ftrace buffer merging pstore/ftrace: Provide ftrace log merging routine pstore/ram: Introduce max_reason and convert dump_oops pstore/blk: Introduce "best_effort" mode Mukesh Ojha (1): pstore: Add mem_type property DT parsing support Pavel Tatashin (1): pstore/platform: Pass max_reason to kmesg dump Peng Wang (1): pstore: Avoid duplicate call of persistent_ram_zap() Sai Prakash Ranjan (1): pstore/ram: Fix console ramoops to show the previous boot logs Tetsuo Handa (1): pstore: Fix warning in pstore_kill_sb() Thomas Meyer (1): pstore: Fix bool initialization/comparison Vasile-Laurentiu Stanimir (1): pstore: Move kmsg_bytes default into Kconfig WeiXiong Liao (9): pstore/zone: Introduce common layer to manage storage zones pstore/blk: Introduce backend for block devices pstore/zone,blk: Add support for pmsg frontend pstore/zone,blk: Add console frontend support pstore/zone,blk: Add ftrace frontend support Documentation: Add details for pstore/blk pstore/zone: Provide way to skip "broken" zone for MTD devices pstore/blk: Provide way to query pstore configuration pstore/blk: Support non-block storage devices Yue Hu (4): pstore/ram: Replace dummy_data heap memory with stack memory pstore/ram: Move initialization earlier pstore: Avoid writing records with zero size pstore/ram: Add kmsg hlen zero check to ramoops_pstore_write() chenqiwu (1): pstore/ram: remove unnecessary ramoops_unregister_dummy() Documentation/admin-guide/pstore-blk.rst | 238 +++ Documentation/admin-guide/ramoops.rst | 18 +- .../bindings/reserved-memory/ramoops.txt | 10 +- MAINTAINERS | 5 + drivers/acpi/apei/erst.c | 2 +- drivers/platform/chrome/chromeos_pstore.c | 2 +- fs/pstore/Kconfig | 118 ++ fs/pstore/Makefile | 6 + fs/pstore/blk.c | 517 ++++++ fs/pstore/ftrace.c | 74 +- fs/pstore/inode.c | 152 +- fs/pstore/internal.h | 11 +- fs/pstore/platform.c | 78 +- fs/pstore/ram.c | 323 ++-- fs/pstore/ram_core.c | 67 +- fs/pstore/zone.c | 1469 +++++++++++++++++ include/linux/pstore.h | 37 +- include/linux/pstore_blk.h | 118 ++ include/linux/pstore_ram.h | 46 +- include/linux/pstore_zone.h | 60 + 20 files changed, 3026 insertions(+), 325 deletions(-) create mode 100644 Documentation/admin-guide/pstore-blk.rst create mode 100644 fs/pstore/blk.c create mode 100644 fs/pstore/zone.c create mode 100644 include/linux/pstore_blk.h create mode 100644 include/linux/pstore_zone.h -- 2.17.1