diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2018-03-12 05:39:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-06 17:07:02 -0400 |
commit | 1389aa3e87ae059121329af41009b37692177775 (patch) | |
tree | 3ad6cd9a035e4019691241e0a35982e71e73d0bf /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |
parent | 5bb1de5b31cf20f125391b20a74112e36fee55d0 (diff) |
gpu: nvgpu: gv100 temperature read support
- Enabled internal temperature sensor read for gv100
dgpu.
- Added check to temperature read support before
proceeding to read temperature from H/W
- Assigned GP106 temperature HAL's for GV100 as no changes
between GP106 & GV100 H/W registers.
Bug 200352328
Change-Id: I86b5a1859b87ace49a07d0ff3749bb5b085bba91
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1673347
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 12e3a297..c37f45dd 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -1376,6 +1376,9 @@ static int nvgpu_gpu_get_temperature(struct gk20a *g, | |||
1376 | if (args->reserved[0] || args->reserved[1] || args->reserved[2]) | 1376 | if (args->reserved[0] || args->reserved[1] || args->reserved[2]) |
1377 | return -EINVAL; | 1377 | return -EINVAL; |
1378 | 1378 | ||
1379 | if (!nvgpu_is_enabled(g, NVGPU_SUPPORT_GET_TEMPERATURE)) | ||
1380 | return -EINVAL; | ||
1381 | |||
1379 | if (!g->ops.therm.get_internal_sensor_curr_temp) | 1382 | if (!g->ops.therm.get_internal_sensor_curr_temp) |
1380 | return -EINVAL; | 1383 | return -EINVAL; |
1381 | 1384 | ||