# 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/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 e610a466d16a086e321f0bd421e2fc75cff28605 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc44x_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/arch/powerpc/boot/dts/virtex440-ml510.dts:335.37-439.6: Warning (pci_bridge): /plb@0/plbv46-pci@85e00000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/virtex440-ml510.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:331:21: note: 'pdeo' was declared here /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec.isra.35': /kisskb/src/net/bridge/br_netlink.c:652:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1851:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1764:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/powerpc/boot/dts/katmai.dts:322.26-361.5: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:363.26-402.5: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:404.26-443.5: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54519c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x555848) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2687476 Bytes = 2624.49 KiB = 2.56 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718682 Bytes = 2654.96 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014e0 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718665 Bytes = 2654.95 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014ec Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718534 Bytes = 2654.82 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006001bc Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2720294 Bytes = 2656.54 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006000c8 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718980 Bytes = 2655.25 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014e0 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718954 Bytes = 2655.23 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014d8 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2720395 Bytes = 2656.64 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014c0 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718836 Bytes = 2655.11 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014e0 Image Name: Linux-5.2.0-rc2-ge610a466d16a Created: Sat Jun 15 17:07:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2718617 Bytes = 2654.90 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006014cc Completed OK # rm -rf /kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc4.6 # Build took: 0:00:26.029948