summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-10-21 19:43:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-09 23:24:07 -0500
commitdfb061cbdbc0a87391e475b5d86303cb028eb549 (patch)
treeba0be402c85d13be093467f8877e3174a771c683 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent71ecc8f660503eed4a094b1b1531e8e92a6de0bb (diff)
gpu: nvgpu: get voltage, current, power and temperature
Add ioctls to retrieve voltage, current, power and temperature. Add flags in GPU characteristics to indicate if feature is supported. Jira DNVGPU-166 Change-Id: Idd5a767326c9d43630e8289ca7d2c27bb96a9f14 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1241862 Tested-by: Thomas Fleury <tfleury@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-on: http://git-master/r/1267153
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 564026a4..071111ab 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -588,6 +588,7 @@ struct gpu_ops {
588 int (*init_therm_setup_hw)(struct gk20a *g); 588 int (*init_therm_setup_hw)(struct gk20a *g);
589 int (*elcg_init_idle_filters)(struct gk20a *g); 589 int (*elcg_init_idle_filters)(struct gk20a *g);
590 void (*therm_debugfs_init)(struct gk20a *g); 590 void (*therm_debugfs_init)(struct gk20a *g);
591 int (*get_internal_sensor_curr_temp)(struct gk20a *g, u32 *temp_f24_8);
591 } therm; 592 } therm;
592 struct { 593 struct {
593 bool (*is_pmu_supported)(struct gk20a *g); 594 bool (*is_pmu_supported)(struct gk20a *g);