s390/ipl: add support to control memory clearing for FCP and CCW re-IPL
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Thu, 20 Feb 2020 15:22:30 +0000 (16:22 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 23 Mar 2020 12:41:54 +0000 (13:41 +0100)
commit1a2ae03b1938b050c3bbd79e79d5075e0307fe20
tree52a9ffb9acd1ac06c370aa0cff04ef33da9f57b8
parent40501c70e3f09e8018bf08457502a3a7b2d5a406
s390/ipl: add support to control memory clearing for FCP and CCW re-IPL

Re-IPL for both CCW and FCP is currently done by using diag 308 with the
"Load Clear" subcode, which means that all memory will be cleared.
This can increase re-IPL duration considerably on very large machines.

For CCW devices, there is also a "Load Normal" subcode that was only used
for dump kernels so far. For FCP devices, a similar "Load Normal" subcode
was introduced with z14. The "Load Normal" diag 308 subcode allows to
re-IPL without clearing memory.

This patch adds a new "clear" sysfs attribute to /sys/firmware/reipl for
both the ccw and fcp subdirectories, which can be set to either "0" or "1"
to disable or enable re-IPL with memory clearing. The default value is "0",
which disables memory clearing.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/ipl.h
arch/s390/kernel/ipl.c