# 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-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 07a361072378fb3ae116db86244372dbd68f9ea3 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc83xx_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7d439c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e49ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3563995 Bytes = 3480.46 KiB = 3.40 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3593526 Bytes = 3509.30 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3592350 Bytes = 3508.15 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3593117 Bytes = 3508.90 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3592166 Bytes = 3507.97 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3593180 Bytes = 3508.96 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 02:49:07 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3593193 Bytes = 3508.98 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc83xx_defconfig_powerpc-gcc5 # Build took: 0:01:05.293404