s390/ipl: Clear SBP flag when bootprog is set
authorSven Schnelle <svens@linux.ibm.com>
Fri, 5 Dec 2025 09:58:57 +0000 (10:58 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 14 Dec 2025 10:03:57 +0000 (11:03 +0100)
commitb1aa01d31249bd116b18c7f512d3e46b4b4ad83b
tree9e3f98cb8ff78311571d1acba22fe4d328adf0fd
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
s390/ipl: Clear SBP flag when bootprog is set

With z16 a new flag 'search boot program' was introduced for
list-directed IPL (SCSI, NVMe, ECKD DASD). If this flag is set,
e.g. via selecting the "Automatic" value for the "Boot program
selector" control on an HMC load panel, it is copied to the reipl
structure from the initial ipl structure. When a user now sets a
boot prog via sysfs, the flag is not cleared and the bootloader
will again automatically select the boot program, ignoring user
configuration.

To avoid that, clear the SBP flag when a bootprog sysfs file is
written.

Cc: stable@vger.kernel.org
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/uapi/asm/ipl.h
arch/s390/kernel/ipl.c