# 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 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_52xx_lite5200b_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 52xx/lite5200b_defconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_52xx_lite5200b_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x4dd480) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4dd480) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4ccd68) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:13:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2449621 Bytes = 2392.21 kB = 2.34 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:13:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2473200 Bytes = 2415.23 kB = 2.36 MB Load Address: 00500000 Entry Point: 00500228 Image Name: Linux-4.17.0-rc2-gd0cf9b5 Created: Tue Apr 24 11:13:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2473249 Bytes = 2415.28 kB = 2.36 MB Load Address: 00500000 Entry Point: 00500228 Completed OK # rm -rf /kisskb/build/powerpc-fixes_52xx_lite5200b_defconfig_powerpc-5.3 # Build took: 0:01:04.110982