]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:26:19 +0000 (14:26 +0100)
commitd66975f03be31feb24eccba942c6d1ba2d2e6a21
tree4128c1d65bdf39c06b7325f1be8d9b40d0cecce9
parent362424d4d255c6045cc91999cdf22a6ef8e69e97
s390/kexec_file: fix diag308 subcode when loading crash kernel

BugLink: https://bugs.launchpad.net/bugs/1910822
commit 613775d62ec60202f98d2c5f520e6e9ba6dd4ac4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/s390/purgatory/head.S