# 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-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 07a361072378fb3ae116db86244372dbd68f9ea3 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4196:warning: override: reassigning to symbol PPC_E500MC .config:4197:warning: override: reassigning to symbol VIRTUALIZATION # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) | ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' 139 | if (IS_ERR_VALUE(fep->ring_mem_addr)) | ^~~~~~~~~~~~ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf4cbd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf3c4ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085728 Bytes = 6919.66 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7087571 Bytes = 6921.46 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7087946 Bytes = 6921.82 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7086187 Bytes = 6920.10 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085699 Bytes = 6919.63 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085766 Bytes = 6919.69 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085726 Bytes = 6919.65 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:23 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7088239 Bytes = 6922.11 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085849 Bytes = 6919.77 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085776 Bytes = 6919.70 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085974 Bytes = 6919.90 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085763 Bytes = 6919.69 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7087324 Bytes = 6921.21 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085692 Bytes = 6919.62 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7052080 Bytes = 6886.80 KiB = 6.73 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.12.0-rc3-g07a361072378 Created: Sun Mar 28 03:27:24 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7085817 Bytes = 6919.74 KiB = 6.76 MiB Load Address: 01000000 Entry Point: 010002cc Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 # Build took: 0:01:48.573499