Skip to content

Commit 1833c9f

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/smp: reenable smt after resume
After a suspend/resume cycle we missed to enable smt again, which leads to all sorts of bugs, since the kernel assumes smt is enabled, while the hardware thinks it is not. Reported-and-tested-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Reported-by: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent e143fa9 commit 1833c9f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

arch/s390/kernel/swsusp_asm64.S

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,17 @@ restart_entry:
177177
lhi %r1,1
178178
sigp %r1,%r0,SIGP_SET_ARCHITECTURE
179179
sam64
180+
#ifdef CONFIG_SMP
181+
larl %r1,smp_cpu_mt_shift
182+
icm %r1,15,0(%r1)
183+
jz smt_done
184+
llgfr %r1,%r1
185+
smt_loop:
186+
sigp %r1,%r0,SIGP_SET_MULTI_THREADING
187+
brc 8,smt_done /* accepted */
188+
brc 2,smt_loop /* busy, try again */
189+
smt_done:
190+
#endif
180191
larl %r1,.Lnew_pgm_check_psw
181192
lpswe 0(%r1)
182193
pgm_check_entry:

0 commit comments

Comments
 (0)