From ff8fbf10049ed597706518a2549611df3af681dd Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Fri, 19 Mar 2021 13:59:29 +0530 Subject: [PATCH] Revert "gpu: nvgpu: disable DGPU_THERMAL_ALERT for k5.9 temporarily" Bug 200669739 This reverts commit d3f5905a0cee3646342ac396ca67762a55471517. Change-Id: I76a4ca4ec5be316c24410860a722a13383a3cea3 Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2501427 Reviewed-by: Alex Waterman Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/module.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index 846f3dbf1..fe4d4a932 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -#include #include #include #include @@ -463,10 +462,6 @@ int gk20a_pm_finalize_poweron(struct device *dev) g->ops.xve.devinit_deferred_settings(g); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0) - nvgpu_set_enabled(g, NVGPU_SUPPORT_DGPU_THERMAL_ALERT, false); -#endif - if (nvgpu_is_enabled(g, NVGPU_SUPPORT_DGPU_THERMAL_ALERT) && nvgpu_platform_is_silicon(g)) { err = nvgpu_request_therm_irq(l);