diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2018-03-16 14:03:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-28 09:46:36 -0400 |
commit | 3e5e4804f9c2bf5b914012852b56dbbbc00f8253 (patch) | |
tree | 748dcdbd358e82cf9fe9b53c078dc64c910b97da /drivers/gpu/nvgpu/therm/thrmdev.h | |
parent | 271456272d09d6c21728cc92bedc8ec6f7f48c8b (diff) |
gpu: nvgpu: gv10x therm boardobj support
- Added support for below multiple therm sensor device & defined macros
GPC_TSOSC
GPC SCI
HBM2_SITE
HBM2_COMBINED
- Added PMU interface for listed therm sensor device
- Added nvgpu interface for listed therm sensor device
- Added construct boardobj support for listed therm sensor device
& called to update nvgpu interface.
- Updated devinit_get_therm_device_table() to read sensor info from
therm device table from vbios table & construct respective
therm device boardobj using construct_therm_device_*()
based on class_id param read from vbios table.
- Updated RPC handler to handle THERM ack request
- Updated gv100 therm ops "get_internal_sensor_limits"
to point to gp106_get_internal_sensor_limits()
Change-Id: I4b4ed501d0625cb8fc7b300c820622e40ae59fe6
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1676785
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vaikundanathan S <vaikuns@nvidia.com>
Tested-by: Vaikundanathan S <vaikuns@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm/thrmdev.h')
-rw-r--r-- | drivers/gpu/nvgpu/therm/thrmdev.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmdev.h b/drivers/gpu/nvgpu/therm/thrmdev.h index 83ff5cbf..af349c88 100644 --- a/drivers/gpu/nvgpu/therm/thrmdev.h +++ b/drivers/gpu/nvgpu/therm/thrmdev.h | |||
@@ -32,7 +32,25 @@ struct therm_devices { | |||
32 | }; | 32 | }; |
33 | 33 | ||
34 | struct therm_device { | 34 | struct therm_device { |
35 | struct therm_devices super; | 35 | struct boardobj super; |
36 | }; | ||
37 | |||
38 | struct therm_device_gpu_sci { | ||
39 | struct therm_device super; | ||
40 | }; | ||
41 | |||
42 | struct therm_device_gpu_gpc_tsosc { | ||
43 | struct therm_device super; | ||
44 | u8 gpc_tsosc_idx; | ||
45 | }; | ||
46 | |||
47 | struct therm_device_hbm2_site { | ||
48 | struct therm_device super; | ||
49 | u8 site_idx; | ||
50 | }; | ||
51 | |||
52 | struct therm_device_hbm2_combined { | ||
53 | struct therm_device super; | ||
36 | }; | 54 | }; |
37 | 55 | ||
38 | u32 therm_device_sw_setup(struct gk20a *g); | 56 | u32 therm_device_sw_setup(struct gk20a *g); |