# 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-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 1e072bee33d09c62a975faab919a5be92d9538ab # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_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/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/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) 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/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/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' 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' INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b70c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4af54) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5561272 Bytes = 5430.93 kB = 5.30 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585010 Bytes = 5454.11 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584750 Bytes = 5453.86 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585012 Bytes = 5454.11 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584840 Bytes = 5453.95 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585055 Bytes = 5454.16 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584618 Bytes = 5453.73 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584746 Bytes = 5453.85 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585022 Bytes = 5454.12 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585044 Bytes = 5454.14 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584141 Bytes = 5453.26 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584836 Bytes = 5453.94 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584697 Bytes = 5453.81 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:18 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584485 Bytes = 5453.60 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:18 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584303 Bytes = 5453.42 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc1-g1e072be Created: Sat Apr 21 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5584945 Bytes = 5454.05 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-5.3 # Build took: 0:01:51.768958