# git rev-parse -q --verify d0cf9b561ca97d5245bb9e0c4774b7fadd897d67^{commit} d0cf9b561ca97d5245bb9e0c4774b7fadd897d67 already have revision, skipping fetch # git checkout -q -f -B kisskb d0cf9b561ca97d5245bb9e0c4774b7fadd897d67 # git clean -qxdf # < git log -1 # commit d0cf9b561ca97d5245bb9e0c4774b7fadd897d67 # Author: Alistair Popple # Date: Tue Apr 17 19:11:28 2018 +1000 # # powerpc/powernv/npu: Do a PID GPU TLB flush when invalidating a large address range # # The NPU has a limited number of address translation shootdown (ATSD) # registers and the GPU has limited bandwidth to process ATSDs. This can # result in contention of ATSD registers leading to soft lockups on some # threads, particularly when invalidating a large address range in # pnv_npu2_mn_invalidate_range(). # # At some threshold it becomes more efficient to flush the entire GPU # TLB for the given MM context (PID) than individually flushing each # address in the range. This patch will result in ranges greater than # 2MB being converted from 32+ ATSDs into a single ATSD which will flush # the TLB for the given PID on each GPU. # # Fixes: 1ab66d1fbada ("powerpc/powernv: Introduce address translation services for Nvlink2") # Cc: stable@vger.kernel.org # v4.12+ # Signed-off-by: Alistair Popple # Acked-by: Balbir Singh # Tested-by: Balbir Singh # 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 d0cf9b561ca97d5245bb9e0c4774b7fadd897d67 # < make -s -j 10 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 10 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- 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/mpc8541cds.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/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/mpc8548cds_32b.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8568mds.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8568mds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe08000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe09000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe0a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e0009000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e000b000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/tqm8548.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/tqm8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/sbc8548.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/sbc8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd8eb4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868695 Bytes = 5731.15 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867994 Bytes = 5730.46 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843565 Bytes = 5706.61 kB = 5.57 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867457 Bytes = 5729.94 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867779 Bytes = 5730.25 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867996 Bytes = 5730.46 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868211 Bytes = 5730.67 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867968 Bytes = 5730.44 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868267 Bytes = 5730.73 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:02 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869279 Bytes = 5731.72 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe966c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867735 Bytes = 5730.21 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868186 Bytes = 5730.65 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867894 Bytes = 5730.37 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868169 Bytes = 5730.63 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5867734 Bytes = 5730.21 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:17:06 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868926 Bytes = 5731.37 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:02:11.364431