summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
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/gv100
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/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 344ad1e8..7926c35c 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -35,6 +35,10 @@
35#include "common/fb/fb_gv11b.h" 35#include "common/fb/fb_gv11b.h"
36#include "common/fb/fb_gv100.h" 36#include "common/fb/fb_gv100.h"
37#include "common/xve/xve_gp106.h" 37#include "common/xve/xve_gp106.h"
38#include "common/therm/therm_gm20b.h"
39#include "common/therm/therm_gp106.h"
40#include "common/therm/therm_gp10b.h"
41#include "common/therm/therm_gv11b.h"
38 42
39#include "gk20a/gk20a.h" 43#include "gk20a/gk20a.h"
40#include "gk20a/fifo_gk20a.h" 44#include "gk20a/fifo_gk20a.h"
@@ -61,13 +65,11 @@
61#include "gp106/acr_gp106.h" 65#include "gp106/acr_gp106.h"
62#include "gp106/sec2_gp106.h" 66#include "gp106/sec2_gp106.h"
63#include "gp106/bios_gp106.h" 67#include "gp106/bios_gp106.h"
64#include "gp106/therm_gp106.h"
65#include "gp106/clk_gp106.h" 68#include "gp106/clk_gp106.h"
66#include "gp106/flcn_gp106.h" 69#include "gp106/flcn_gp106.h"
67 70
68#include "gp10b/gr_gp10b.h" 71#include "gp10b/gr_gp10b.h"
69#include "gp10b/ltc_gp10b.h" 72#include "gp10b/ltc_gp10b.h"
70#include "gp10b/therm_gp10b.h"
71#include "gp10b/mc_gp10b.h" 73#include "gp10b/mc_gp10b.h"
72#include "gp10b/ce_gp10b.h" 74#include "gp10b/ce_gp10b.h"
73#include "gp10b/fifo_gp10b.h" 75#include "gp10b/fifo_gp10b.h"
@@ -385,7 +387,6 @@ static const struct gpu_ops gv100_ops = {
385 .commit_inst = gr_gv11b_commit_inst, 387 .commit_inst = gr_gv11b_commit_inst,
386 .write_zcull_ptr = gr_gv11b_write_zcull_ptr, 388 .write_zcull_ptr = gr_gv11b_write_zcull_ptr,
387 .write_pm_ptr = gr_gv11b_write_pm_ptr, 389 .write_pm_ptr = gr_gv11b_write_pm_ptr,
388 .init_elcg_mode = gr_gv11b_init_elcg_mode,
389 .load_tpc_mask = gr_gv11b_load_tpc_mask, 390 .load_tpc_mask = gr_gv11b_load_tpc_mask,
390 .inval_icache = gr_gk20a_inval_icache, 391 .inval_icache = gr_gk20a_inval_icache,
391 .trigger_suspend = gv11b_gr_sm_trigger_suspend, 392 .trigger_suspend = gv11b_gr_sm_trigger_suspend,
@@ -703,6 +704,8 @@ static const struct gpu_ops gv100_ops = {
703 .therm_debugfs_init = gp106_therm_debugfs_init, 704 .therm_debugfs_init = gp106_therm_debugfs_init,
704#endif /* CONFIG_DEBUG_FS */ 705#endif /* CONFIG_DEBUG_FS */
705 /* PROD values match with H/W INIT values */ 706 /* PROD values match with H/W INIT values */
707 .init_elcg_mode = gv11b_therm_init_elcg_mode,
708 .init_blcg_mode = gm20b_therm_init_blcg_mode,
706 .elcg_init_idle_filters = NULL, 709 .elcg_init_idle_filters = NULL,
707 .get_internal_sensor_curr_temp = 710 .get_internal_sensor_curr_temp =
708 gp106_get_internal_sensor_curr_temp, 711 gp106_get_internal_sensor_curr_temp,