]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "s390/smp: enforce lowcore protection on CPU restart"
authorAlexander Gordeev <agordeev@linux.ibm.com>
Sat, 6 Aug 2022 07:29:46 +0000 (09:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:30 +0000 (14:24 +0200)
commit 6087226b3bf98e536be141d2d98f9764239e5594 upstream.

This reverts commit e3640cb262f0b13be4ad1610c51ef4d84f636c5f.

This breaks normal crash dump when CPU0 is offline.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/setup.c

index c8e7b3db82e28043469f4d9bbca39f4a1d3651c4..6b1a8697fae8d5c115e8743b49192b10e7e4d8a2 100644 (file)
@@ -507,8 +507,8 @@ static void __init setup_lowcore_dat_on(void)
        S390_lowcore.svc_new_psw.mask |= PSW_MASK_DAT;
        S390_lowcore.program_new_psw.mask |= PSW_MASK_DAT;
        S390_lowcore.io_new_psw.mask |= PSW_MASK_DAT;
-       __ctl_set_bit(0, 28);
        __ctl_store(S390_lowcore.cregs_save_area, 0, 15);
+       __ctl_set_bit(0, 28);
        put_abs_lowcore(restart_flags, RESTART_FLAG_CTLREGS);
        put_abs_lowcore(program_new_psw, lc->program_new_psw);
        for (cr = 0; cr < ARRAY_SIZE(lc->cregs_save_area); cr++)