From: Rex Zhu Date: Mon, 6 Aug 2018 11:45:04 +0000 (+0800) Subject: drm/amdgpu: Delay 100ms to enable gfx off feature X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~4243^2~24^2~368 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bf9b1d9dc7e99bb1395deb0ed0df3999ea527de3;p=mirror_ubuntu-focal-kernel.git drm/amdgpu: Delay 100ms to enable gfx off feature Original 500ms delay seems a bit large. Change to 100 ms suggested by Christian. Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index bbb81e23020e..790fd5408ddf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c @@ -26,8 +26,8 @@ #include "amdgpu.h" #include "amdgpu_gfx.h" -/* 0.5 second timeout */ -#define GFX_OFF_DELAY_ENABLE msecs_to_jiffies(500) +/* delay 0.1 second to enable gfx off feature */ +#define GFX_OFF_DELAY_ENABLE msecs_to_jiffies(100) /* * GPU GFX IP block helpers function.