diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 10 |
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 | ||