# 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/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 1e072bee33d09c62a975faab919a5be92d9538ab # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc5200_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183: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:340:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2497:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1819:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_fence': /kisskb/src/drivers/dma-buf/reservation.c:225:6: warning: 'k' may be used uninitialized in this function [-Wuninitialized] INFO: Uncompressed kernel (size 0x6c8118) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6c8118) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6c8118) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6b7a6c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:00:08 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3376021 Bytes = 3296.90 kB = 3.22 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:00:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3399638 Bytes = 3319.96 kB = 3.24 MB Load Address: 00700000 Entry Point: 00700248 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:00:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3399433 Bytes = 3319.76 kB = 3.24 MB Load Address: 00700000 Entry Point: 00700248 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:00:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3399639 Bytes = 3319.96 kB = 3.24 MB Load Address: 00700000 Entry Point: 00700248 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc # Build took: 0:00:53.067020