diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-09-02 07:01:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-11 16:44:45 -0400 |
commit | e8ba69e3837f20be0c8225d4bc9f3a9970f3f596 (patch) | |
tree | f30051264065fbcd5adf97de1a4ad1352d06c0dc /drivers/gpu/nvgpu | |
parent | fda4ddfa79f3a78becfe44fd558974bd274c03a9 (diff) |
gpu: nvgpu: gp10x: Add debugfs entry for temperature reading
Added current temperature reading support for gp10x.
JIRA DNVGPU-48
Change-Id: If101a68a8a25d741ad5d3d79087142604d7da398
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1213713
(cherry picked from commit 0048cfdb1b642be896da8300b29aaae9ba43a979)
Reviewed-on: http://git-master/r/1234093
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/therm_gk20a.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 042bd9d7..504da848 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -571,6 +571,7 @@ struct gpu_ops { | |||
571 | struct { | 571 | struct { |
572 | int (*init_therm_setup_hw)(struct gk20a *g); | 572 | int (*init_therm_setup_hw)(struct gk20a *g); |
573 | int (*update_therm_gate_ctrl)(struct gk20a *g); | 573 | int (*update_therm_gate_ctrl)(struct gk20a *g); |
574 | void (*therm_debugfs_init)(struct gk20a *g); | ||
574 | } therm; | 575 | } therm; |
575 | struct { | 576 | struct { |
576 | int (*prepare_ucode)(struct gk20a *g); | 577 | int (*prepare_ucode)(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c index 1fb60438..da8e2894 100644 --- a/drivers/gpu/nvgpu/gk20a/therm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/therm_gk20a.c | |||
@@ -104,6 +104,9 @@ int gk20a_init_therm_support(struct gk20a *g) | |||
104 | if (err) | 104 | if (err) |
105 | return err; | 105 | return err; |
106 | 106 | ||
107 | if (g->ops.therm.therm_debugfs_init) | ||
108 | g->ops.therm.therm_debugfs_init(g); | ||
109 | |||
107 | return err; | 110 | return err; |
108 | } | 111 | } |
109 | 112 | ||