From f6aedfc36ba7388079ac9cd99deeb36eed2f07e0 Mon Sep 17 00:00:00 2001 From: Divya Date: Tue, 4 Oct 2022 12:17:05 +0000 Subject: [PATCH] gpu: nvgpu: adjust the max idle filter for AELPG - When we enable AELPG, we send maximum idle threshold value as one of the parameters. - This was set to 70 msec whereas the ELPG IDLE threshold was set to 15 msec. - Thus, when AELPG is enabled, the threshold is getting modified to a much higher value. So sometimes ELPG is not getting engaged and this is leading to timeout in ELPG MODS 101 test on GVS. Bug 3737783 Change-Id: Iac94f053e19cea5898b962c3d02369d556b8518f Signed-off-by: Divya Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2786749 (cherry picked from commit 5010eaffda2ecaf6c9cc5f0fed68498cb2947071) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2809154 Reviewed-by: svcacv Reviewed-by: Mahantesh Kumbar GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/ap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/ap.h b/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/ap.h index 443b02557..f2d523b6d 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/ap.h +++ b/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/ap.h @@ -52,7 +52,7 @@ * CYCLES_PER_SAMPLE_MAX_DEFAULT : Maximum power feature cycles per AP sample */ #define NV_PMU_PG_AP_IDLE_FILTER_MIN_DEFAULT_US (100) -#define NV_PMU_PG_AP_IDLE_FILTER_MAX_DEFAULT_US (70000) +#define NV_PMU_PG_AP_IDLE_FILTER_MAX_DEFAULT_US (15000) #define NV_PMU_PG_AP_MIN_RESIDENCY_DEFAULT (1) #define NV_PMU_PG_AP_BREAK_EVEN_RESIDENT_TIME_DEFAULT_US (1300) #define NV_PMU_PG_AP_CYCLES_PER_SAMPLE_MAX_DEFAULT (100)