From 7f09ad1be8616d3b7028c6b9db3d49e368552438 Mon Sep 17 00:00:00 2001 From: rmylavarapu Date: Tue, 26 Nov 2019 14:22:25 +0530 Subject: [PATCH] gpu: nvgpu: Add therm device to support VBIOS .95 Latest POR VBIOS have TSOSC/SCI therm device in therm device table. PMU ucode doesn't support these device, so NVGPU need not send the config data to PMU. Adding support in NVGPU to skip these boardobj entries. NVBUG-200569668 Change-Id: I64ccd1f7f8c4e545369134fd2ca5bb76561ffc8f Signed-off-by: rmylavarapu Reviewed-on: https://git-master.nvidia.com/r/2247690 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-mobile-cert Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Mahantesh Kumbar Reviewed-by: Vaibhav Kachore Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/pmu/therm/thrmdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/nvgpu/common/pmu/therm/thrmdev.c b/drivers/gpu/nvgpu/common/pmu/therm/thrmdev.c index 2f557a3b5..a08feb73a 100644 --- a/drivers/gpu/nvgpu/common/pmu/therm/thrmdev.c +++ b/drivers/gpu/nvgpu/common/pmu/therm/thrmdev.c @@ -164,6 +164,12 @@ static int devinit_get_therm_device_table(struct gk20a *g, break; case NV_VBIOS_THERM_DEVICE_1X_ENTRY_CLASS_GPU: break; + case NV_VBIOS_THERM_DEVICE_1X_ENTRY_CLASS_GPU_GPC_SCI: + continue; + break; + case NV_VBIOS_THERM_DEVICE_1X_ENTRY_CLASS_GPU_GPC_TSOSC: + continue; + break; default: nvgpu_err(g, "Unknown thermal device class i - %x, class - %x",