]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/setup: fix boot crash for machine without EDAT-1
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 18 Feb 2019 17:10:08 +0000 (18:10 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitc0797905fdc9616478609c374ff646c4307bea76
tree3c0d384f88130ea039e20330703ef45bf9cfd4b7
parent05787d1f5629ad758c5b96e60eefc5283123c1fc
s390/setup: fix boot crash for machine without EDAT-1

BugLink: https://bugs.launchpad.net/bugs/1837952
commit 86a86804e4f18fc3880541b3d5a07f4df0fe29cb upstream.

The fix to make WARN work in the early boot code created a problem
on older machines without EDAT-1. The setup_lowcore_dat_on function
uses the pointer from lowcore_ptr[0] to set the DAT bit in the new
PSWs. That does not work if the kernel page table is set up with
4K pages as the prefix address maps to absolute zero.

To make this work the PSWs need to be changed with via address 0 in
form of the S390_lowcore definition.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Cornelia Huck <cohuck@redhat.com>
Fixes: 94f85ed3e2f8 ("s390/setup: fix early warning messages")
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/kernel/setup.c