# git rev-parse -q --verify 07a361072378fb3ae116db86244372dbd68f9ea3^{commit} 07a361072378fb3ae116db86244372dbd68f9ea3 already have revision, skipping fetch # git checkout -q -f -B kisskb 07a361072378fb3ae116db86244372dbd68f9ea3 # git clean -qxdf # < git log -1 # commit 07a361072378fb3ae116db86244372dbd68f9ea3 # Author: Daniel Henrique Barboza # Date: Tue Mar 23 17:50:56 2021 -0300 # # powerpc/pseries/hotplug-cpu: Show 'last online CPU' error in dlpar_cpu_offline() # # One of the reasons that dlpar_cpu_offline can fail is when attempting to # offline the last online CPU of the kernel. This can be observed in a # pseries QEMU guest that has hotplugged CPUs. If the user offlines all # other CPUs of the guest, and a hotplugged CPU is now the last online # CPU, trying to reclaim it will fail. # # The current error message in this situation returns rc with -EBUSY and a # generic explanation, e.g.: # # pseries-hotplug-cpu: Failed to offline CPU PowerPC,POWER9, rc: -16 # # EBUSY can be caused by other conditions, such as cpu_hotplug_disable # being true. Throwing a more specific error message for this case, # instead of just "Failed to offline CPU", makes it clearer that the error # is in fact a known error situation instead of other generic/unknown # cause. # # This patch adds a 'last online' check in dlpar_cpu_offline() to catch # the 'last online CPU' offline error, eturning a more informative error # message: # # pseries-hotplug-cpu: Unable to remove last online CPU PowerPC,POWER9 # # Signed-off-by: Daniel Henrique Barboza # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20210323205056.52768-2-danielhb413@gmail.com # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 07a361072378fb3ae116db86244372dbd68f9ea3 # < make -s -j 48 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # < make -s -j 48 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 48 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 48 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-objdump: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-objdump: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-objdump: mm/kfence/kfence_test.o: File format not recognized /kisskb/src/lib/bitfield_kunit.c: In function 'test_bitfields_constants': /kisskb/src/lib/bitfield_kunit.c:93:1: warning: the frame size of 7432 bytes is larger than 2048 bytes [-Wframe-larger-than=] } ^ /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info mm/kfence/kfence_test.o: file not recognized: File format not recognized make[3]: *** [/kisskb/src/scripts/Makefile.modfinal:78: mm/kfence/kfence_test.ko] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.modpost:138: __modpost] Error 2 make[1]: *** [/kisskb/src/Makefile:1442: modules] Error 2 make: *** [Makefile:215: __sub-make] Error 2 Command 'make -s -j 48 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc8 # Build took: 0:27:18.430790