s390/ipl: Add missing SCSI loadparm attributes to /sys/firmware
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Tue, 26 Aug 2014 15:51:08 +0000 (17:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 1 Sep 2014 07:56:29 +0000 (09:56 +0200)
commit69928601676ff6f51ff71ba943f749afe7b1cbb2
tree69bc55d8ba4fd2c271b5305320fff8e6caadbf1a
parent3b1269350b15e46aba8cdd1613a07530253275cd
s390/ipl: Add missing SCSI loadparm attributes to /sys/firmware

Currently the loadparm is only supported for CCW IPL. But also for SCSI
IPL it can be specified either on the HMC load panel respectively
z/VM console or via diagnose 308.

So fix this for SCSI and add the required sysfs attributes for reading the
IPL loadparm and for setting the loadparm for re-IPL.

With this patch the following two sysfs attributes are introduced:

 - /sys/firmware/ipl/loadparm (for system that have been IPLed from SCSI)
 - /sys/firmware/reipl/fcp/loadparm

Because the loadparm is now available for SCSI and CCW it is moved
now from "struct ipl_block_ccw" to the generic "struct ipl_list_hdr".

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ipl.h
arch/s390/kernel/ipl.c