aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-05-26 09:20:25 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-13 19:59:28 -0400
commit958502d836cf18c6f39bdb787b76d53839e4d8aa (patch)
treeaee5d5c7301e5219c2f3637cee7afef638d4880d
parent602b5be4f14cabd5b751c340919958549475ab62 (diff)
pstore/ram: Add some more documentation and examples
Suggested-by: Shuah Khan <shuahkhan@gmail.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Colin Cross <ccross@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Documentation/ramoops.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/ramoops.txt b/Documentation/ramoops.txt
index 4ba7db231cb2..59a74a8ee2e5 100644
--- a/Documentation/ramoops.txt
+++ b/Documentation/ramoops.txt
@@ -40,6 +40,12 @@ corrupt, but usually it is restorable.
40Setting the ramoops parameters can be done in 2 different manners: 40Setting the ramoops parameters can be done in 2 different manners:
41 1. Use the module parameters (which have the names of the variables described 41 1. Use the module parameters (which have the names of the variables described
42 as before). 42 as before).
43 For quick debugging, you can also reserve parts of memory during boot
44 and then use the reserved memory for ramoops. For example, assuming a machine
45 with > 128 MB of memory, the following kernel command line will tell the
46 kernel to use only the first 128 MB of memory, and place ECC-protected ramoops
47 region at 128 MB boundary:
48 "mem=128M ramoops.mem_address=0x8000000 ramoops.ecc=1"
43 2. Use a platform device and set the platform data. The parameters can then 49 2. Use a platform device and set the platform data. The parameters can then
44 be set through that platform data. An example of doing that is: 50 be set through that platform data. An example of doing that is:
45 51
@@ -70,6 +76,14 @@ if (ret) {
70 return ret; 76 return ret;
71} 77}
72 78
79You can specify either RAM memory or peripheral devices' memory. However, when
80specifying RAM, be sure to reserve the memory by issuing memblock_reserve()
81very early in the architecture code, e.g.:
82
83#include <linux/memblock.h>
84
85memblock_reserve(ramoops_data.mem_address, ramoops_data.mem_size);
86
733. Dump format 873. Dump format
74 88
75The data dump begins with a header, currently defined as "====" followed by a 89The data dump begins with a header, currently defined as "====" followed by a