Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) config PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) 	tristate "Persistent store support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 	select CRYPTO if PSTORE_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) 	default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 	   This option enables generic access to platform level
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 	   persistent storage via "pstore" filesystem that can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) 	   be mounted as /dev/pstore.  Only useful if you have
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 	   a platform level driver that registers with pstore to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 	   provide the data, so you probably should just go say "Y"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 	   (or "M") to a platform specific persistent store driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 	   (e.g. ACPI_APEI on X86) which will select this for you.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 	   If you don't have a platform persistent store driver,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 	   say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) config PSTORE_DEFLATE_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 	tristate "DEFLATE (ZLIB) compression"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 	default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 	select CRYPTO_DEFLATE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 	  This option enables DEFLATE (also known as ZLIB) compression
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	  algorithm support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) config PSTORE_LZO_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	tristate "LZO compression"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	select CRYPTO_LZO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 	  This option enables LZO compression algorithm support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) config PSTORE_LZ4_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	tristate "LZ4 compression"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	select CRYPTO_LZ4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	  This option enables LZ4 compression algorithm support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) config PSTORE_LZ4HC_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	tristate "LZ4HC compression"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	select CRYPTO_LZ4HC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	  This option enables LZ4HC (high compression) mode algorithm.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) config PSTORE_842_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	bool "842 compression"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	select CRYPTO_842
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	  This option enables 842 compression algorithm support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) config PSTORE_ZSTD_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	bool "zstd compression"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	select CRYPTO_ZSTD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	  This option enables zstd compression algorithm support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) config PSTORE_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	depends on PSTORE_DEFLATE_COMPRESS || PSTORE_LZO_COMPRESS ||	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 		   PSTORE_LZ4_COMPRESS || PSTORE_LZ4HC_COMPRESS ||	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 		   PSTORE_842_COMPRESS || PSTORE_ZSTD_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	prompt "Default pstore compression algorithm"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	depends on PSTORE_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	  This option chooses the default active compression algorithm.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	  This change be changed at boot with "pstore.compress=..." on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	  the kernel command line.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	  Currently, pstore has support for 6 compression algorithms:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	  deflate, lzo, lz4, lz4hc, 842 and zstd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	  The default compression algorithm is deflate.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	config PSTORE_DEFLATE_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 		bool "deflate" if PSTORE_DEFLATE_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	config PSTORE_LZO_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 		bool "lzo" if PSTORE_LZO_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	config PSTORE_LZ4_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 		bool "lz4" if PSTORE_LZ4_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	config PSTORE_LZ4HC_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 		bool "lz4hc" if PSTORE_LZ4HC_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	config PSTORE_842_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 		bool "842" if PSTORE_842_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	config PSTORE_ZSTD_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 		bool "zstd" if PSTORE_ZSTD_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) config PSTORE_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	depends on PSTORE_COMPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	default "deflate" if PSTORE_DEFLATE_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	default "lzo" if PSTORE_LZO_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	default "lz4" if PSTORE_LZ4_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	default "lz4hc" if PSTORE_LZ4HC_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	default "842" if PSTORE_842_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	default "zstd" if PSTORE_ZSTD_COMPRESS_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) config PSTORE_CONSOLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	bool "Log kernel console messages"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	  When the option is enabled, pstore will log all kernel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	  messages, even if no oops or panic happened.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) config PSTORE_PMSG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	bool "Log user space messages"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	  When the option is enabled, pstore will export a character
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	  interface /dev/pmsg0 to log user space messages. On reboot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	  data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID].
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	  If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) config PSTORE_FTRACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 	bool "Persistent function tracer"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	depends on FUNCTION_TRACER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	depends on DEBUG_FS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	  With this option kernel traces function calls into a persistent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	  ram buffer that can be decoded and dumped after reboot through
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	  pstore filesystem. It can be used to determine what function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	  was last called before a reset or panic.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	  If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) config PSTORE_RAM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	tristate "Log panic/oops to a RAM buffer"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	depends on HAS_IOMEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	select REED_SOLOMON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	select REED_SOLOMON_ENC8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	select REED_SOLOMON_DEC8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	  This enables panic and oops messages to be logged to a circular
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	  buffer in RAM where it can be read back at some later point.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	  Note that for historical reasons, the module will be named
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	  "ramoops.ko".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	  For more information, see Documentation/admin-guide/ramoops.rst.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) config PSTORE_ZONE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	tristate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	  The common layer for pstore/blk (and pstore/ram in the future)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	  to manage storage in zones.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) config PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	tristate "Log panic/oops to a block device"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	depends on BLOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	depends on BROKEN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	select PSTORE_ZONE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	  This enables panic and oops message to be logged to a block dev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	  where it can be read back at some later point.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	  For more information, see Documentation/admin-guide/pstore-blk.rst
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	  If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) config PSTORE_BLK_BLKDEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	string "block device identifier"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	depends on PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	default ""
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	  Which block device should be used for pstore/blk.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	  It accepts the following variants:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	  1) <hex_major><hex_minor> device number in hexadecimal representation,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	     with no leading 0x, for example b302.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	  2) /dev/<disk_name> represents the device name of disk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	  3) /dev/<disk_name><decimal> represents the device name and number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	     of partition - device number of disk plus the partition number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	  4) /dev/<disk_name>p<decimal> - same as the above, this form is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	     used when disk name of partitioned disk ends with a digit.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	  5) PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF representing the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 	     unique id of a partition if the partition table provides it.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	     The UUID may be either an EFI/GPT UUID, or refer to an MSDOS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	     partition using the format SSSSSSSS-PP, where SSSSSSSS is a zero-
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	     filled hex representation of the 32-bit "NT disk signature", and PP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	     is a zero-filled hex representation of the 1-based partition number.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	  6) PARTUUID=<UUID>/PARTNROFF=<int> to select a partition in relation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	     to a partition with a known unique id.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	  7) <major>:<minor> major and minor number of the device separated by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	     a colon.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	  NOTE that, both Kconfig and module parameters can configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	  pstore/blk, but module parameters have priority over Kconfig.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) config PSTORE_BLK_KMSG_SIZE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	int "Size in Kbytes of kmsg dump log to store"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	depends on PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	default 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	  This just sets size of kmsg dump (oops, panic, etc) log for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	  pstore/blk. The size is in KB and must be a multiple of 4.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	  NOTE that, both Kconfig and module parameters can configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	  pstore/blk, but module parameters have priority over Kconfig.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) config PSTORE_BLK_MAX_REASON
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	int "Maximum kmsg dump reason to store"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	depends on PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 	default 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 	  The maximum reason for kmsg dumps to store. The default is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	  2 (KMSG_DUMP_OOPS), see include/linux/kmsg_dump.h's
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 	  enum kmsg_dump_reason for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 	  NOTE that, both Kconfig and module parameters can configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 	  pstore/blk, but module parameters have priority over Kconfig.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) config PSTORE_BLK_PMSG_SIZE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) 	int "Size in Kbytes of pmsg to store"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 	depends on PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 	depends on PSTORE_PMSG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) 	default 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) 	  This just sets size of pmsg (pmsg_size) for pstore/blk. The size is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) 	  in KB and must be a multiple of 4.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 	  NOTE that, both Kconfig and module parameters can configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) 	  pstore/blk, but module parameters have priority over Kconfig.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) config PSTORE_BLK_CONSOLE_SIZE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) 	int "Size in Kbytes of console log to store"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) 	depends on PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) 	depends on PSTORE_CONSOLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) 	default 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) 	  This just sets size of console log (console_size) to store via
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) 	  pstore/blk. The size is in KB and must be a multiple of 4.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) 	  NOTE that, both Kconfig and module parameters can configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) 	  pstore/blk, but module parameters have priority over Kconfig.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) config PSTORE_BLK_FTRACE_SIZE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) 	int "Size in Kbytes of ftrace log to store"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) 	depends on PSTORE_BLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) 	depends on PSTORE_FTRACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) 	default 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) 	  This just sets size of ftrace log (ftrace_size) for pstore/blk. The
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) 	  size is in KB and must be a multiple of 4.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) 	  NOTE that, both Kconfig and module parameters can configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) 	  pstore/blk, but module parameters have priority over Kconfig.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) config PSTORE_BOOT_LOG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) 	bool "Print boot log by linux"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) 	depends on PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) 	  Collect log from loader,uboot,ATF and so on, you can get their log by cat command
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) 	  through linux shell
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) 	  If unsure, say N.