s390/kexec: turn DAT mode off immediately before purgatory
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 3 Apr 2023 06:44:36 +0000 (08:44 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 19 Apr 2023 15:24:15 +0000 (17:24 +0200)
commit7a04d491edf4766e7724671355b1ab27cae81a4a
tree26e760f5c0deb6b6b4925886d51c2b5037ee55d5
parent1a33aee1dc2476c5937a0890f2dfc228a165f364
s390/kexec: turn DAT mode off immediately before purgatory

The kernel code is not guaranteed DAT-off mode safe.
Turn the DAT mode off immediately before entering the
purgatory.

Further, to avoid subtle side effects reset the system
immediately before turning DAT mode off while making
all necessary preparations in advance.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/machine_kexec.c