pstore: Add mem_type property DT parsing support
authorMukesh Ojha <mojha@codeaurora.org>
Mon, 22 Mar 2021 18:42:17 +0000 (00:12 +0530)
committerKees Cook <keescook@chromium.org>
Wed, 31 Mar 2021 17:06:23 +0000 (10:06 -0700)
commit9d843e8fafc7c0b15d8f511d146c0c3d7c816634
treeaa50c176998930654d9764bdfb5c60af2f416d55
parenta38fd8748464831584a19438cbb3082b5a2dab15
pstore: Add mem_type property DT parsing support

There could be a scenario where we define some region
in normal memory and use them store to logs which is later
retrieved by bootloader during warm reset.

In this scenario, we wanted to treat this memory as normal
cacheable memory instead of default behaviour which
is an overhead. Making it cacheable could improve
performance.

This commit gives control to change mem_type from Device
tree, and also documents the value for normal memory.

Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/1616438537-13719-1-git-send-email-mojha@codeaurora.org
Documentation/admin-guide/ramoops.rst
Documentation/devicetree/bindings/reserved-memory/ramoops.txt
fs/pstore/ram.c
fs/pstore/ram_core.c