From 53708f15bf883c02847b0ab517c356f4b1ee2d8f Mon Sep 17 00:00:00 2001 From: Divya Date: Thu, 2 Nov 2023 07:47:38 +0000 Subject: [PATCH] gpu: nvgpu: header update for ENGINE_DELAY_BEFORE - Update HW header to increase ENGINE_DELAY_BEFORE field from 4 clk utils to 10 clk utils. - The increase from 4 to 10 means the ELCG will wait 2^10 utilsclk after all engine/priv reports idle. - With clk utils set to 4, when performance_cudaGraphs is run target hangs. - This change is needed for cuda tests to run and pass on qnx. Bug 3821730 Bug 4475968 Change-Id: Iec579021d16eef03b481e5e45bc9362734cb0f3d Signed-off-by: Divya (cherry picked from commit 2b1df1cef738def5e41a884d442698bb226cbb57) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3009686 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3108175 Tested-by: Viresh Kumar Reviewed-by: Mahantesh Kumbar GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_therm_ga10b.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_therm_ga10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_therm_ga10b.h index cf5f78555..90cc3957e 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_therm_ga10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_therm_ga10b.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -90,7 +90,7 @@ #define therm_gate_ctrl_eng_idle_filt_mant_m() (U32(0x7U) << 13U) #define therm_gate_ctrl_eng_idle_filt_mant__prod_f() (0x2000U) #define therm_gate_ctrl_eng_delay_before_m() (U32(0xfU) << 16U) -#define therm_gate_ctrl_eng_delay_before__prod_f() (0x40000U) +#define therm_gate_ctrl_eng_delay_before__prod_f() (0xa0000U) #define therm_gate_ctrl_eng_delay_after_m() (U32(0xfU) << 20U) #define therm_gate_ctrl_eng_delay_after__prod_f() (0x0U) #define therm_fecs_idle_filter_r() (0x00020288U)