summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorAlex Van Brunt <avanbrunt@nvidia.com>2016-03-30 18:29:30 -0400
committerBharat Nihalani <bnihalani@nvidia.com>2016-04-14 09:51:52 -0400
commita596f0bd6d327ce832adca4ae915529dc0bb0b3b (patch)
tree40217c92866a2edce9a92bcda962c9e074175a3b /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parentccba95757033292d881671e575aed5e0feb61dc3 (diff)
debugfs: Pass bool pointer to debugfs_create_bool()
Port the change 621a5f7ad9cd1ce7933f1d302067cbd58354173c from kernel.org to the nvgpu driver. bug 200187033 Change-Id: I7d742f614161d9d4ed59c4216d7c730d57ef4116 Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1118397 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 4482a21d..567369bc 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -24,6 +24,7 @@
24#include <linux/tegra-soc.h> 24#include <linux/tegra-soc.h>
25#include <linux/vmalloc.h> 25#include <linux/vmalloc.h>
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include <linux/version.h>
27#include <asm/dma-iommu.h> 28#include <asm/dma-iommu.h>
28#include <asm/cacheflush.h> 29#include <asm/cacheflush.h>
29#include "gk20a_allocator.h" 30#include "gk20a_allocator.h"
@@ -342,10 +343,19 @@ struct mm_gk20a {
342 bool use_full_comp_tag_line; 343 bool use_full_comp_tag_line;
343#ifdef CONFIG_DEBUG_FS 344#ifdef CONFIG_DEBUG_FS
344 u32 ltc_enabled; 345 u32 ltc_enabled;
346#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
345 u32 ltc_enabled_debug; 347 u32 ltc_enabled_debug;
348#else
349 bool ltc_enabled_debug;
350#endif
346#endif 351#endif
352#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
347 u32 bypass_smmu; 353 u32 bypass_smmu;
348 u32 disable_bigpage; 354 u32 disable_bigpage;
355#else
356 bool bypass_smmu;
357 bool disable_bigpage;
358#endif
349 bool has_physical_mode; 359 bool has_physical_mode;
350}; 360};
351 361