s390/ipl: add REIPL_CLEAR flag to os_info
authorMikhail Zaslonko <zaslonko@linux.ibm.com>
Thu, 30 Mar 2023 07:18:01 +0000 (09:18 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 1 Jun 2023 15:07:56 +0000 (17:07 +0200)
commit31e9ccc67ce24f82120e41fcafd841f98838ff5c
treecc32ae9de2e95ea7e10862bd0e8b3d6abe1fa33b
parentd933e5f41e4f6c54f4bd3e0b29ca4854fe5fa0d6
s390/ipl: add REIPL_CLEAR flag to os_info

Introduce new OS_INFO_FLAGS_ENTRY to os_info pointing to the field
with bit flags.
Add OS_INFO_FLAGS_ENTRY upon dump_reipl shutdown action processing and
set OS_INFO_FLAG_REIPL_CLEAR flag indicating 'clear' sysfs attribute has
been set on the panicked system for specified ipl type. This flag can be
used to inform the dumper whether LOAD_CLEAR or LOAD_NORMAL diag308
subcode to be used for ipl after dumping the memory.

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/os_info.h
arch/s390/kernel/ipl.c