summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-07-27 15:58:03 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-04 12:23:56 -0400
commitb8efd9d04537d6129e2ce8b067417e46b0e7436f (patch)
tree1a40179a893e10c0fdcdd56797599bcdf6b55206 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parentc16797e35c2926bf34a61d5d8f37d5675ec23b1b (diff)
gpu: nvgpu: Make LTC disabling common code
Refactor the sync_debugfs LTC HAL op so that the logic to enable or disable LTC goes to common code nvgpu_ltc_sync_enabled() and the LTC HAL set_enabled only performs the hardware register access. Create a new common function nvgpu_init_ltc_support() to initialize the LTC software variable, and move hardware initialization of LTC to be called from it. JIRA NVGPU-62 Change-Id: Ib1cf4f5b83ca3dac08407464ed56a732e0a33923 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528262 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@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, 2 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 2f35df71..c56b28bb 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -245,14 +245,8 @@ struct mm_gk20a {
245 bool sw_ready; 245 bool sw_ready;
246 int physical_bits; 246 int physical_bits;
247 bool use_full_comp_tag_line; 247 bool use_full_comp_tag_line;
248#ifdef CONFIG_DEBUG_FS 248 bool ltc_enabled_current;
249 u32 ltc_enabled; 249 bool ltc_enabled_target;
250#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
251 u32 ltc_enabled_debug;
252#else
253 bool ltc_enabled_debug;
254#endif
255#endif
256#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) 250#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
257 u32 bypass_smmu; 251 u32 bypass_smmu;
258 u32 disable_bigpage; 252 u32 disable_bigpage;