s390/kexec_file: fix diag308 subcode when loading crash kernel
authorPhilipp Rudo <prudo@linux.ibm.com>
Thu, 26 Nov 2020 17:31:08 +0000 (18:31 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 9 Dec 2020 20:02:07 +0000 (21:02 +0100)
commit613775d62ec60202f98d2c5f520e6e9ba6dd4ac4
tree80bb5b533634e7a68f353146116d49863e0e26e6
parent14d4c4fa46eeaa3922e8e1c4aa727eb0a1412804
s390/kexec_file: fix diag308 subcode when loading crash kernel

diag308 subcode 0 performes a clear reset which inlcudes the reset of
all registers in the system. While this is the preferred behavior when
loading a normal kernel via kexec it prevents the crash kernel to store
the register values in the dump. To prevent this use subcode 1 when
loading a crash kernel instead.

Fixes: ee337f5469fd ("s390/kexec_file: Add crash support to image loader")
Cc: <stable@vger.kernel.org> # 4.17
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Reported-by: Xiaoying Yan <yiyan@redhat.com>
Tested-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/purgatory/head.S