# git rev-parse -q --verify e610a466d16a086e321f0bd421e2fc75cff28605^{commit} e610a466d16a086e321f0bd421e2fc75cff28605 already have revision, skipping fetch # git checkout -q -f -B kisskb e610a466d16a086e321f0bd421e2fc75cff28605 # git clean -qxdf # < git log -1 # commit e610a466d16a086e321f0bd421e2fc75cff28605 # Author: Nathan Lynch # Date: Tue Jun 11 23:45:06 2019 -0500 # # powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration # # It's common for the platform to replace the cache device nodes after a # migration. Since the cacheinfo code is never informed about this, it # never drops its references to the source system's cache nodes, causing # it to wind up in an inconsistent state resulting in warnings and oopses # as soon as CPU online/offline occurs after the migration, e.g. # # cache for /cpus/l3-cache@3113(Unified) refers to cache for /cpus/l2-cache@200d(Unified) # WARNING: CPU: 15 PID: 86 at arch/powerpc/kernel/cacheinfo.c:176 release_cache+0x1bc/0x1d0 # [...] # NIP release_cache+0x1bc/0x1d0 # LR release_cache+0x1b8/0x1d0 # Call Trace: # release_cache+0x1b8/0x1d0 (unreliable) # cacheinfo_cpu_offline+0x1c4/0x2c0 # unregister_cpu_online+0x1b8/0x260 # cpuhp_invoke_callback+0x114/0xf40 # cpuhp_thread_fun+0x270/0x310 # smpboot_thread_fn+0x2c8/0x390 # kthread+0x1b8/0x1c0 # ret_from_kernel_thread+0x5c/0x68 # # Using device tree notifiers won't work since we want to rebuild the # hierarchy only after all the removals and additions have occurred and # the device tree is in a consistent state. Call cacheinfo_teardown() # before processing device tree updates, and rebuild the hierarchy # afterward. # # Fixes: 410bccf97881 ("powerpc/pseries: Partition migration in the kernel") # Signed-off-by: Nathan Lynch # Reviewed-by: Gautham R. Shenoy # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 e610a466d16a086e321f0bd421e2fc75cff28605 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig KCONFIG_SEED=0x5EAFA582 # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # yes \n | make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/kernel/eeh.c:1792:12: warning: 'proc_eeh_show' defined but not used [-Wunused-function] static int proc_eeh_show(struct seq_file *m, void *v) ^~~~~~~~~~~~~ /kisskb/src/drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': /kisskb/src/drivers/cpufreq/powernv-cpufreq.c:1070:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/drivers/usb/misc/usbtest.c: In function 'test_queue': /kisskb/src/drivers/usb/misc/usbtest.c:2148:1: warning: the frame size of 1136 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ WARNING: vmlinux.o(.text+0x2bc6): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup() The function start_here_multiplatform() references the function __init .early_setup(). This is often because start_here_multiplatform lacks a __init annotation or the annotation of .early_setup is wrong. /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'. /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'. /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'. warning: same module names found: drivers/gpu/drm/bridge/adv7511/adv7511.ko drivers/media/i2c/adv7511.ko Completed OK # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 # Build took: 0:02:59.171029