summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-08-09 12:20:33 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-14 18:33:20 -0400
commit91390d857f6302f9c2923ec4188ea7e24ee537a2 (patch)
treee0884e79ea748d2c0bd384c29f805125a7b88fec /drivers/gpu/nvgpu/gp10b/hal_gp10b.c
parent02f9c99e4b4a452ded20978c5ee1e27b775b9224 (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/gp10b/hal_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index 5f55baa3..cfbdc6ce 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -32,6 +32,8 @@
32#include "common/fb/fb_gk20a.h" 32#include "common/fb/fb_gk20a.h"
33#include "common/fb/fb_gm20b.h" 33#include "common/fb/fb_gm20b.h"
34#include "common/fb/fb_gp10b.h" 34#include "common/fb/fb_gp10b.h"
35#include "common/therm/therm_gm20b.h"
36#include "common/therm/therm_gp10b.h"
35 37
36#include "gk20a/gk20a.h" 38#include "gk20a/gk20a.h"
37#include "gk20a/fifo_gk20a.h" 39#include "gk20a/fifo_gk20a.h"
@@ -56,7 +58,6 @@
56#include "gp10b/gr_ctx_gp10b.h" 58#include "gp10b/gr_ctx_gp10b.h"
57#include "gp10b/fifo_gp10b.h" 59#include "gp10b/fifo_gp10b.h"
58#include "gp10b/regops_gp10b.h" 60#include "gp10b/regops_gp10b.h"
59#include "gp10b/therm_gp10b.h"
60#include "gp10b/ecc_gp10b.h" 61#include "gp10b/ecc_gp10b.h"
61 62
62#include "gm20b/ltc_gm20b.h" 63#include "gm20b/ltc_gm20b.h"
@@ -308,7 +309,6 @@ static const struct gpu_ops gp10b_ops = {
308 .commit_inst = gr_gk20a_commit_inst, 309 .commit_inst = gr_gk20a_commit_inst,
309 .write_zcull_ptr = gr_gk20a_write_zcull_ptr, 310 .write_zcull_ptr = gr_gk20a_write_zcull_ptr,
310 .write_pm_ptr = gr_gk20a_write_pm_ptr, 311 .write_pm_ptr = gr_gk20a_write_pm_ptr,
311 .init_elcg_mode = gr_gk20a_init_elcg_mode,
312 .load_tpc_mask = gr_gm20b_load_tpc_mask, 312 .load_tpc_mask = gr_gm20b_load_tpc_mask,
313 .inval_icache = gr_gk20a_inval_icache, 313 .inval_icache = gr_gk20a_inval_icache,
314 .trigger_suspend = gr_gk20a_trigger_suspend, 314 .trigger_suspend = gr_gk20a_trigger_suspend,
@@ -573,6 +573,8 @@ static const struct gpu_ops gp10b_ops = {
573 }, 573 },
574 .therm = { 574 .therm = {
575 .init_therm_setup_hw = gp10b_init_therm_setup_hw, 575 .init_therm_setup_hw = gp10b_init_therm_setup_hw,
576 .init_elcg_mode = gm20b_therm_init_elcg_mode,
577 .init_blcg_mode = gm20b_therm_init_blcg_mode,
576 .elcg_init_idle_filters = gp10b_elcg_init_idle_filters, 578 .elcg_init_idle_filters = gp10b_elcg_init_idle_filters,
577 }, 579 },
578 .pmu = { 580 .pmu = {