diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-10-21 19:43:39 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:52 -0500 |
commit | 849c5317e8509b390da626bcb607e66cc5ef847f (patch) | |
tree | a50207bd32926991b1a482dd1de5a24c1d44b97f /drivers/gpu/nvgpu/pmgr/pmgr.h | |
parent | 5ab254c6e84d741f56e9bcc93512f82eb7ce518c (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: Ifaafe2efdb6b09d7b28215b641814f28e894151e
Signed-off-by: David Martinez Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1241861
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/1267122
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr/pmgr.h')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pmgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pmgr.h b/drivers/gpu/nvgpu/pmgr/pmgr.h index 97e7b609..cf511fd1 100644 --- a/drivers/gpu/nvgpu/pmgr/pmgr.h +++ b/drivers/gpu/nvgpu/pmgr/pmgr.h | |||
@@ -27,5 +27,8 @@ struct pmgr_pmupstate { | |||
27 | 27 | ||
28 | u32 pmgr_domain_sw_setup(struct gk20a *g); | 28 | u32 pmgr_domain_sw_setup(struct gk20a *g); |
29 | u32 pmgr_domain_pmu_setup(struct gk20a *g); | 29 | u32 pmgr_domain_pmu_setup(struct gk20a *g); |
30 | int pmgr_pwr_devices_get_current(struct gk20a *g, u32 *val); | ||
31 | int pmgr_pwr_devices_get_voltage(struct gk20a *g, u32 *val); | ||
32 | int pmgr_pwr_devices_get_power(struct gk20a *g, u32 *val); | ||
30 | 33 | ||
31 | #endif | 34 | #endif |