hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/Documentation/devicetree/bindings/reserved-memory/ramoops.txt
....@@ -30,7 +30,7 @@
3030 - ecc-size: enables ECC support and specifies ECC buffer size in bytes
3131 (defaults to 0: no ECC)
3232
33
-- record-size: maximum size in bytes of each dump done on oops/panic
33
+- record-size: maximum size in bytes of each kmsg dump.
3434 (defaults to 0: disabled)
3535
3636 - console-size: size in bytes of log buffer reserved for kernel messages
....@@ -42,10 +42,25 @@
4242 - pmsg-size: size in bytes of log buffer reserved for userspace messages
4343 (defaults to 0: disabled)
4444
45
-- unbuffered: if present, use unbuffered mappings to map the reserved region
46
- (defaults to buffered mappings)
45
+- mem-type: if present, sets the type of mapping is to be used to map the
46
+ reserved region. mem-type: 0 = write-combined (default), 1 = unbuffered,
47
+ 2 = cached.
4748
48
-- no-dump-oops: if present, only dump panics (defaults to panics and oops)
49
+- unbuffered: deprecated, use mem_type instead. if present, and mem_type is
50
+ not specified, it is equivalent to mem_type = 1 and uses unbuffered mappings
51
+ to map the reserved region (defaults to buffered mappings mem_type = 0). If
52
+ both are specified -- "mem_type" overrides "unbuffered".
53
+
54
+- max-reason: if present, sets maximum type of kmsg dump reasons to store
55
+ (defaults to 2: log Oopses and Panics). This can be set to INT_MAX to
56
+ store all kmsg dumps. See include/linux/kmsg_dump.h KMSG_DUMP_* for other
57
+ kmsg dump reason values. Setting this to 0 (KMSG_DUMP_UNDEF), means the
58
+ reason filtering will be controlled by the printk.always_kmsg_dump boot
59
+ param: if unset, it will be KMSG_DUMP_OOPS, otherwise KMSG_DUMP_MAX.
60
+
61
+- no-dump-oops: deprecated, use max_reason instead. If present, and
62
+ max_reason is not specified, it is equivalent to max_reason = 1
63
+ (KMSG_DUMP_PANIC).
4964
5065 - flags: if present, pass ramoops behavioral flags (defaults to 0,
5166 see include/linux/pstore_ram.h RAMOOPS_FLAG_* for flag values).