gpu: nvgpu: disable DGPU_THERMAL_ALERT for k5.9 temporarily

GPIOs are not working currently in k5.9.

Bug 200669739

Change-Id: Ia7848d55d95f7986cf0fa73a34b15b7546d62e0f
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2437640
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sagar Kamble
2020-10-28 17:17:51 +05:30
committed by Alex Waterman
parent e8a356548e
commit d3f5905a0c

View File

@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <linux/version.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -456,6 +457,10 @@ 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);