diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-09 12:20:33 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-14 18:33:20 -0400 |
commit | 91390d857f6302f9c2923ec4188ea7e24ee537a2 (patch) | |
tree | e0884e79ea748d2c0bd384c29f805125a7b88fec /drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |
parent | 02f9c99e4b4a452ded20978c5ee1e27b775b9224 (diff) |
gpu: nvgpu: Move therm HAL to common
Move implementation of therm HAL to common/therm. ELCG and BLCG
code was embedded in gr HAL, so moved that code to therm.
Bump gk20a code to gm20b.
JIRA NVGPU-955
Change-Id: I9b03e52f2832d3a1d89071a577e8ce106aaf603b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1795989
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index e6c4c8d1..05acc0cf 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -29,12 +29,13 @@ | |||
29 | #include "common/ptimer/ptimer_gk20a.h" | 29 | #include "common/ptimer/ptimer_gk20a.h" |
30 | #include "common/fb/fb_gk20a.h" | 30 | #include "common/fb/fb_gk20a.h" |
31 | #include "common/fb/fb_gm20b.h" | 31 | #include "common/fb/fb_gm20b.h" |
32 | #include "common/therm/therm_gm20b.h" | ||
33 | #include "common/therm/therm_gm20b.h" | ||
32 | 34 | ||
33 | #include "gk20a/gk20a.h" | 35 | #include "gk20a/gk20a.h" |
34 | #include "gk20a/ce2_gk20a.h" | 36 | #include "gk20a/ce2_gk20a.h" |
35 | #include "gk20a/dbg_gpu_gk20a.h" | 37 | #include "gk20a/dbg_gpu_gk20a.h" |
36 | #include "gk20a/fifo_gk20a.h" | 38 | #include "gk20a/fifo_gk20a.h" |
37 | #include "gk20a/therm_gk20a.h" | ||
38 | #include "gk20a/mm_gk20a.h" | 39 | #include "gk20a/mm_gk20a.h" |
39 | #include "gk20a/css_gr_gk20a.h" | 40 | #include "gk20a/css_gr_gk20a.h" |
40 | #include "gk20a/mc_gk20a.h" | 41 | #include "gk20a/mc_gk20a.h" |
@@ -53,7 +54,6 @@ | |||
53 | #include "pmu_gm20b.h" | 54 | #include "pmu_gm20b.h" |
54 | #include "clk_gm20b.h" | 55 | #include "clk_gm20b.h" |
55 | #include "regops_gm20b.h" | 56 | #include "regops_gm20b.h" |
56 | #include "therm_gm20b.h" | ||
57 | #include "hal_gm20b.h" | 57 | #include "hal_gm20b.h" |
58 | #include "acr_gm20b.h" | 58 | #include "acr_gm20b.h" |
59 | #include "fuse_gm20b.h" | 59 | #include "fuse_gm20b.h" |
@@ -291,7 +291,6 @@ static const struct gpu_ops gm20b_ops = { | |||
291 | .commit_inst = gr_gk20a_commit_inst, | 291 | .commit_inst = gr_gk20a_commit_inst, |
292 | .write_zcull_ptr = gr_gk20a_write_zcull_ptr, | 292 | .write_zcull_ptr = gr_gk20a_write_zcull_ptr, |
293 | .write_pm_ptr = gr_gk20a_write_pm_ptr, | 293 | .write_pm_ptr = gr_gk20a_write_pm_ptr, |
294 | .init_elcg_mode = gr_gk20a_init_elcg_mode, | ||
295 | .load_tpc_mask = gr_gm20b_load_tpc_mask, | 294 | .load_tpc_mask = gr_gm20b_load_tpc_mask, |
296 | .inval_icache = gr_gk20a_inval_icache, | 295 | .inval_icache = gr_gk20a_inval_icache, |
297 | .trigger_suspend = gr_gk20a_trigger_suspend, | 296 | .trigger_suspend = gr_gk20a_trigger_suspend, |
@@ -512,7 +511,9 @@ static const struct gpu_ops gm20b_ops = { | |||
512 | }, | 511 | }, |
513 | .therm = { | 512 | .therm = { |
514 | .init_therm_setup_hw = gm20b_init_therm_setup_hw, | 513 | .init_therm_setup_hw = gm20b_init_therm_setup_hw, |
515 | .elcg_init_idle_filters = gk20a_elcg_init_idle_filters, | 514 | .init_elcg_mode = gm20b_therm_init_elcg_mode, |
515 | .init_blcg_mode = gm20b_therm_init_blcg_mode, | ||
516 | .elcg_init_idle_filters = gm20b_elcg_init_idle_filters, | ||
516 | }, | 517 | }, |
517 | .pmu = { | 518 | .pmu = { |
518 | .pmu_setup_elpg = gm20b_pmu_setup_elpg, | 519 | .pmu_setup_elpg = gm20b_pmu_setup_elpg, |