Skip to content

Commit b96fbd6

Browse files
committed
Merge tag 's390-6.0-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Vasily Gorbik: - Fix absolute zero lowcore corruption on kdump when CPU0 is offline - Fix lowcore protection setup for offline CPU restart * tag 's390-6.0-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/smp: enforce lowcore protection on CPU restart s390/boot: fix absolute zero lowcore corruption on boot
2 parents 445e0bc + 8d96bba commit b96fbd6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/s390/kernel/nmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static inline unsigned long nmi_get_mcesa_size(void)
6464
* structure. The structure is required for machine check happening
6565
* early in the boot process.
6666
*/
67-
static struct mcesa boot_mcesa __initdata __aligned(MCESA_MAX_SIZE);
67+
static struct mcesa boot_mcesa __aligned(MCESA_MAX_SIZE);
6868

6969
void __init nmi_alloc_mcesa_early(u64 *mcesad)
7070
{

arch/s390/kernel/setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ static void __init setup_lowcore_dat_off(void)
479479
put_abs_lowcore(restart_data, lc->restart_data);
480480
put_abs_lowcore(restart_source, lc->restart_source);
481481
put_abs_lowcore(restart_psw, lc->restart_psw);
482+
put_abs_lowcore(mcesad, lc->mcesad);
482483

483484
mcck_stack = (unsigned long)memblock_alloc(THREAD_SIZE, THREAD_SIZE);
484485
if (!mcck_stack)
@@ -507,8 +508,8 @@ static void __init setup_lowcore_dat_on(void)
507508
S390_lowcore.svc_new_psw.mask |= PSW_MASK_DAT;
508509
S390_lowcore.program_new_psw.mask |= PSW_MASK_DAT;
509510
S390_lowcore.io_new_psw.mask |= PSW_MASK_DAT;
510-
__ctl_store(S390_lowcore.cregs_save_area, 0, 15);
511511
__ctl_set_bit(0, 28);
512+
__ctl_store(S390_lowcore.cregs_save_area, 0, 15);
512513
put_abs_lowcore(restart_flags, RESTART_FLAG_CTLREGS);
513514
put_abs_lowcore(program_new_psw, lc->program_new_psw);
514515
for (cr = 0; cr < ARRAY_SIZE(lc->cregs_save_area); cr++)

0 commit comments

Comments
 (0)