From 58b85dd106f35d16ff568f8836dcbc7a019854b4 Mon Sep 17 00:00:00 2001 From: Lakshmanan M Date: Fri, 21 Oct 2016 16:57:15 +0530 Subject: gpu: nvgpu: Add thermal module support The following CL contains the following VBIOS thermal table parsing and PMU interface support. 1) Thermal device table 2) Thermal channel table JIRA DNVGPU-130 Change-Id: Ie3abab4bf099a022b1b59db96811c2ed44079519 Signed-off-by: Lakshmanan M Reviewed-on: http://git-master/r/1240630 (cherry picked from commit 814962a4be0a8cd0cddc7bc5211c62308ab1fea2) Reviewed-on: http://git-master/r/1246210 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/pstate/pstate.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/gpu/nvgpu/pstate') diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c index a4787f35..e9b9775e 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.c +++ b/drivers/gpu/nvgpu/pstate/pstate.c @@ -19,6 +19,7 @@ #include "pmgr/pmgr.h" #include "include/bios.h" #include "pstate/pstate.h" +#include "therm/thrm.h" static int pstate_sw_setup(struct gk20a *g); @@ -49,6 +50,10 @@ int gk20a_init_pstate_support(struct gk20a *g) if (err) return err; + err = therm_domain_sw_setup(g); + if (err) + return err; + err = vfe_var_sw_setup(g); if (err) return err; @@ -104,6 +109,10 @@ int gk20a_init_pstate_pmu_support(struct gk20a *g) return err; } + err = therm_domain_pmu_setup(g); + if (err) + return err; + err = vfe_var_pmu_setup(g); if (err) return err; -- cgit v1.2.2