powerpc/powernv/npu: Remove atsd_threshold debugfs setting
authorMark Hairgrove <mhairgrove@nvidia.com>
Wed, 3 Oct 2018 18:51:34 +0000 (11:51 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Oct 2018 06:55:54 +0000 (16:55 +1000)
This threshold is no longer used now that all invalidates issue a single
ATSD to each active NPU.

Signed-off-by: Mark Hairgrove <mhairgrove@nvidia.com>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c

index e4c0fabf37ac480e4f101a0b7d5b30fa3b9a801e..6f60e09319223015f5ebd36e3aa1fd9f66078520 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/pci.h>
 #include <linux/memblock.h>
 #include <linux/iommu.h>
-#include <linux/debugfs.h>
 #include <linux/sizes.h>
 
 #include <asm/debugfs.h>
  */
 static DEFINE_SPINLOCK(npu_context_lock);
 
-/*
- * When an address shootdown range exceeds this threshold we invalidate the
- * entire TLB on the GPU for the given PID rather than each specific address in
- * the range.
- */
-static uint64_t atsd_threshold = 2 * 1024 * 1024;
-static struct dentry *atsd_threshold_dentry;
-
 /*
  * Other types of TCE cache invalidation are not functional in the
  * hardware.
@@ -966,11 +957,6 @@ int pnv_npu2_init(struct pnv_phb *phb)
        static int npu_index;
        uint64_t rc = 0;
 
-       if (!atsd_threshold_dentry) {
-               atsd_threshold_dentry = debugfs_create_x64("atsd_threshold",
-                                  0600, powerpc_debugfs_root, &atsd_threshold);
-       }
-
        phb->npu.nmmu_flush =
                of_property_read_bool(phb->hose->dn, "ibm,nmmu-flush");
        for_each_child_of_node(phb->hose->dn, dn) {