alistair23-linux/drivers/s390/char
Gerald Schaefer 55a5542a54 s390/hibernate: fix error handling when suspend cpu != resume cpu
The resume code checks if the resume cpu is the same as the suspend cpu.
If not, and if it is also not possible to switch to the suspend cpu, an
error message should be printed and the resume process should be stopped
by loading a disabled wait psw.

The current logic is broken in multiple ways, the message is never printed,
and the disabled wait psw never loaded because the kernel panics before that:
- sam31 and SIGP_SET_ARCHITECTURE to ESA mode is wrong, this will break
  on the first 64bit instruction in sclp_early_printk().
- The init stack should be used, but the stack pointer is not set up correctly
  (missing aghi %r15,-STACK_FRAME_OVERHEAD).
- __sclp_early_printk() checks the sclp_init_state. If it is not
  sclp_init_state_uninitialized, it simply returns w/o printing anything.
  In the resumed kernel however, sclp_init_state will never be uninitialized.

This patch fixes those issues by removing the sam31/ESA logic, adding a
correct init stack pointer, and also introducing sclp_early_printk_force()
to allow using sclp_early_printk() even when sclp_init_state is not
uninitialized.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-09-20 13:20:23 +02:00
..
con3215.c
con3270.c
ctrlchar.c
ctrlchar.h
defkeymap.c s390/defkeymap: fix global init to zero 2018-03-18 23:02:02 -07:00
defkeymap.map
diag_ftp.c
diag_ftp.h
fs3270.c compat: Move compat_timespec/ timeval to compat_time.h 2018-04-19 13:29:54 +02:00
hmcdrv_cache.c
hmcdrv_cache.h
hmcdrv_dev.c
hmcdrv_dev.h
hmcdrv_ftp.c
hmcdrv_ftp.h
hmcdrv_mod.c
Kconfig
keyboard.c TTY/Serial driver patches for 4.19-rc1 2018-08-18 10:50:41 -07:00
keyboard.h
Makefile s390/decompressor: avoid reusing uncompressed image objects 2018-06-25 10:14:39 +02:00
monreader.c
monwriter.c s390/monwriter: fix gcc 8 stringop-truncation warning 2018-07-02 11:25:03 +02:00
raw3270.c
raw3270.h
sclp.c
sclp.h
sclp_async.c s390/sclp_async: replace callhome proc handler with generic one 2018-07-06 08:47:53 +02:00
sclp_cmd.c
sclp_con.c
sclp_config.c
sclp_cpi_sys.c
sclp_cpi_sys.h
sclp_ctl.c compat: Move compat_timespec/ timeval to compat_time.h 2018-04-19 13:29:54 +02:00
sclp_diag.h
sclp_early.c
sclp_early_core.c s390/hibernate: fix error handling when suspend cpu != resume cpu 2018-09-20 13:20:23 +02:00
sclp_ftp.c
sclp_ftp.h
sclp_ocf.c
sclp_pci.c
sclp_quiesce.c
sclp_rw.c
sclp_rw.h
sclp_sd.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
sclp_sdias.c
sclp_sdias.h
sclp_tty.c
sclp_tty.h
sclp_vt220.c
tape.h
tape_34xx.c
tape_3590.c s390/tape: fix gcc 8 stringop-truncation warning 2018-07-02 11:25:03 +02:00
tape_3590.h
tape_char.c
tape_class.c s390/tape: replace PTR_RET with PTR_ERR_OR_ZERO 2018-07-19 16:37:37 +02:00
tape_class.h
tape_core.c
tape_proc.c proc: introduce proc_create_seq{,_data} 2018-05-16 07:23:35 +02:00
tape_std.c
tape_std.h
tty3270.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
tty3270.h
vmcp.c mm/cma: remove unsupported gfp_mask parameter from cma_alloc() 2018-08-17 16:20:32 -07:00
vmlogrdr.c
vmur.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
vmur.h
zcore.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00