diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-07-27 16:00:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-04 12:24:08 -0400 |
commit | 3e3c1920404ddec1ddbcf8adad93067f384a3e59 (patch) | |
tree | 8dad008c3c49ca0d92884cecd284b87c0ca7ab05 /drivers | |
parent | f87007829f176baa5d3e784c71f3bceb082a29eb (diff) |
gpu: nvgpu: gv11b: 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: I7b73625bccd45aefa5694989adbf4a0bbac75fc4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1529054
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 963f78c6..12ec4841 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -159,9 +159,7 @@ static const struct gpu_ops gv11b_ops = { | |||
159 | .isr = gv11b_ltc_isr, | 159 | .isr = gv11b_ltc_isr, |
160 | .cbc_fix_config = gv11b_ltc_cbc_fix_config, | 160 | .cbc_fix_config = gv11b_ltc_cbc_fix_config, |
161 | .flush = gm20b_flush_ltc, | 161 | .flush = gm20b_flush_ltc, |
162 | #ifdef CONFIG_DEBUG_FS | 162 | .set_enabled = gp10b_ltc_set_enabled, |
163 | .sync_debugfs = gp10b_ltc_sync_debugfs, | ||
164 | #endif | ||
165 | }, | 163 | }, |
166 | .ce2 = { | 164 | .ce2 = { |
167 | .isr_stall = gv11b_ce_isr, | 165 | .isr_stall = gv11b_ce_isr, |