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>
This commit is contained in:
Mahantesh Kumbar
2018-03-12 15:09:03 +05:30
committed by mobile promotions
parent 5bb1de5b31
commit 1389aa3e87
2 changed files with 12 additions and 0 deletions

View File

@@ -1376,6 +1376,9 @@ static int nvgpu_gpu_get_temperature(struct gk20a *g,
if (args->reserved[0] || args->reserved[1] || args->reserved[2])
return -EINVAL;
if (!nvgpu_is_enabled(g, NVGPU_SUPPORT_GET_TEMPERATURE))
return -EINVAL;
if (!g->ops.therm.get_internal_sensor_curr_temp)
return -EINVAL;