# git rev-parse -q --verify cca19f0b684f4ed6aabf6ad07ae3e15e77bfd78a^{commit} cca19f0b684f4ed6aabf6ad07ae3e15e77bfd78a already have revision, skipping fetch # git checkout -q -f -B kisskb cca19f0b684f4ed6aabf6ad07ae3e15e77bfd78a # git clean -qxdf # < git log -1 # commit cca19f0b684f4ed6aabf6ad07ae3e15e77bfd78a # Author: Frederic Barrat # Date: Tue Jul 31 15:24:52 2018 +0200 # # powerpc/64s/radix: Fix missing global invalidations when removing copro # # With the optimizations for TLB invalidation from commit 0cef77c7798a # ("powerpc/64s/radix: flush remote CPUs out of single-threaded # mm_cpumask"), the scope of a TLBI (global vs. local) can now be # influenced by the value of the 'copros' counter of the memory context. # # When calling mm_context_remove_copro(), the 'copros' counter is # decremented first before flushing. It may have the unintended side # effect of sending local TLBIs when we explicitly need global # invalidations in this case. Thus breaking any nMMU user in a bad and # unpredictable way. # # Fix it by flushing first, before updating the 'copros' counter, so # that invalidations will be global. # # Fixes: 0cef77c7798a ("powerpc/64s/radix: flush remote CPUs out of single-threaded mm_cpumask") # Signed-off-by: Frederic Barrat # Reviewed-by: Nicholas Piggin # Tested-by: Vaibhav Jain # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 cca19f0b684f4ed6aabf6ad07ae3e15e77bfd78a # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, 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] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # 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' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ arch/powerpc/boot/mpc8555cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/mpc8541cds.dtb: 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 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbf36e4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe2f2c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895107 Bytes = 5756.94 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895183 Bytes = 5757.01 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895125 Bytes = 5756.96 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895087 Bytes = 5756.92 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5896415 Bytes = 5758.22 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895265 Bytes = 5757.09 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895086 Bytes = 5756.92 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895008 Bytes = 5756.84 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895010 Bytes = 5756.85 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895035 Bytes = 5756.87 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5896721 Bytes = 5758.52 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5896716 Bytes = 5758.51 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895208 Bytes = 5757.04 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5871618 Bytes = 5734.00 kB = 5.60 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5895348 Bytes = 5757.18 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.18.0-rc3-gcca19f0 Created: Thu Aug 2 01:57:26 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5896512 Bytes = 5758.31 kB = 5.62 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:00:51.687540