s390/dump: save IPL CPU registers once DAT is available
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 2 Sep 2022 08:05:08 +0000 (10:05 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 14 Sep 2022 14:46:00 +0000 (16:46 +0200)
commit14a3a2624285d36624966935ec12f228d876c028
tree0657050efce003fc42e18d228459e702261b0bb1
parent2187582c361fcd33a6ab5e9e6fef5b774c3b8cda
s390/dump: save IPL CPU registers once DAT is available

Function smp_save_dump_cpus() collects CPU state of a crashed
system for secondary CPUs and for the IPL CPU very differently.
The Signal Processor stop-and-store-status orders are used for
the former while Hardware System Area requests and memcpy_real()
routine are called for the latter. In addition a system reset is
triggered, which pins smp_save_dump_cpus() function call before
CPU and device initialization.

Move the collection of IPL CPU state to a later stage when DAT
becomes available. That is needed to allow a follow-up rework of
memcpy_real() routine.

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