# git rev-parse -q --verify 1e072bee33d09c62a975faab919a5be92d9538ab^{commit} 1e072bee33d09c62a975faab919a5be92d9538ab already have revision, skipping fetch # git checkout -q -f -B kisskb 1e072bee33d09c62a975faab919a5be92d9538ab # git clean -qxdf # < git log -1 # commit 1e072bee33d09c62a975faab919a5be92d9538ab # 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/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < git log --format=%s --max-count=1 1e072bee33d09c62a975faab919a5be92d9538ab # < make -s -j 80 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # make -s -j 80 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- arch/mips/boot/dts/img/boston.dtb: Warning (pci_bridge): /pci@10000000: missing bus-range for PCI bridge arch/mips/boot/dts/img/boston.dtb: Warning (pci_bridge): /pci@12000000: missing bus-range for PCI bridge arch/mips/boot/dts/img/boston.dtb: Warning (pci_bridge): /pci@14000000: missing bus-range for PCI bridge arch/mips/boot/dts/img/boston.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' FIT description: Linux 4.17.0-rc1-g1e072be Created: Fri Apr 20 23:50:14 2018 Image 0 (kernel@0) Description: Linux 4.17.0-rc1-g1e072be Created: Fri Apr 20 23:50:14 2018 Type: Kernel Image Compression: gzip compressed Data Size: 4456573 Bytes = 4352.12 kB = 4.25 MB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8088f000 Hash algo: sha1 Hash value: 354efae4e8e91092e0e5ec61603247671eaa4678 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Fri Apr 20 23:50:14 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 3598 Bytes = 3.51 kB = 0.00 MB Architecture: MIPS Hash algo: sha1 Hash value: 2e0bbd83e8c8cf26533474f7ef1ea3ad578e5ae9 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Fri Apr 20 23:50:14 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 kB = 0.00 MB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mipsel # Build took: 0:01:53.016435