# git rev-parse -q --verify d6e3af06d947d4f23b5698007e9a1a6313d2ed58^{commit} d6e3af06d947d4f23b5698007e9a1a6313d2ed58 already have revision, skipping fetch # git checkout -q -f -B kisskb d6e3af06d947d4f23b5698007e9a1a6313d2ed58 # git clean -qxdf # < git log -1 # commit d6e3af06d947d4f23b5698007e9a1a6313d2ed58 # Author: Greg Kurz # Date: Wed May 15 12:05:01 2019 +0200 # # powerpc/pseries: Fix xive=off command line # # On POWER9, if the hypervisor supports XIVE exploitation mode, the # guest OS will unconditionally requests for the XIVE interrupt mode # even if XIVE was deactivated with the kernel command line xive=off. # Later on, when the spapr XIVE init code handles xive=off, it disables # XIVE and tries to fall back on the legacy mode XICS. # # This discrepency causes a kernel panic because the hypervisor is # configured to provide the XIVE interrupt mode to the guest : # # kernel BUG at arch/powerpc/sysdev/xics/xics-common.c:135! # ... # NIP xics_smp_probe+0x38/0x98 # LR xics_smp_probe+0x2c/0x98 # Call Trace: # xics_smp_probe+0x2c/0x98 (unreliable) # pSeries_smp_probe+0x40/0xa0 # smp_prepare_cpus+0x62c/0x6ec # kernel_init_freeable+0x148/0x448 # kernel_init+0x2c/0x148 # ret_from_kernel_thread+0x5c/0x68 # # Look for xive=off during prom_init and don't ask for XIVE in this # case. One exception though: if the host only supports XIVE, we still # want to boot so we ignore xive=off. # # Similarly, have the spapr XIVE init code to looking at the interrupt # mode negotiated during CAS, and ignore xive=off if the hypervisor only # supports XIVE. # # Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller") # Cc: stable@vger.kernel.org # v4.20 # Reported-by: Pavithra R. Prakash # Signed-off-by: Greg Kurz # Reviewed-by: Cédric Le Goater # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/s390-linux/bin/s390-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/s390-linux/bin/s390-linux-ld --version # < git log --format=%s --max-count=1 d6e3af06d947d4f23b5698007e9a1a6313d2ed58 # < make -s -j 120 ARCH=s390 O=/kisskb/build/powerpc-fixes_s390-defconfig_s390x-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/s390-linux/bin/s390-linux- defconfig # make -s -j 120 ARCH=s390 O=/kisskb/build/powerpc-fixes_s390-defconfig_s390x-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/s390-linux/bin/s390-linux- arch/s390/../../virt/kvm/kvm_main.o: In function `__kvm_map_gfn': /kisskb/src/arch/s390/kvm/../../../virt/kvm/kvm_main.c:1764: undefined reference to `memremap' arch/s390/../../virt/kvm/kvm_main.o: In function `kvm_vcpu_unmap': /kisskb/src/arch/s390/kvm/../../../virt/kvm/kvm_main.c:1796: undefined reference to `memunmap' make[1]: *** [/kisskb/src/Makefile:1052: vmlinux] Error 1 make: *** [Makefile:179: sub-make] Error 2 Command 'make -s -j 120 ARCH=s390 O=/kisskb/build/powerpc-fixes_s390-defconfig_s390x-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/s390-linux/bin/s390-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-fixes_s390-defconfig_s390x-gcc8 # Build took: 0:00:36.159977