From 3e5e4804f9c2bf5b914012852b56dbbbc00f8253 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Fri, 16 Mar 2018 23:33:23 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1676785 Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Vaikundanathan S Tested-by: Vaikundanathan S Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/therm/thrmdev.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/therm/thrmdev.h') 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 { }; struct therm_device { - struct therm_devices super; + struct boardobj super; +}; + +struct therm_device_gpu_sci { + struct therm_device super; +}; + +struct therm_device_gpu_gpc_tsosc { + struct therm_device super; + u8 gpc_tsosc_idx; +}; + +struct therm_device_hbm2_site { + struct therm_device super; + u8 site_idx; +}; + +struct therm_device_hbm2_combined { + struct therm_device super; }; u32 therm_device_sw_setup(struct gk20a *g); -- cgit v1.2.2