]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/amdgpu: shorten the gfx idle worker timeout
authorKenneth Feng <kenneth.feng@amd.com>
Tue, 11 Mar 2025 08:46:39 +0000 (16:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Mar 2025 18:03:38 +0000 (14:03 -0400)
Shorten the gfx idle worker timeout. This is to sync with
DAL when there is no activity on the screen. Original 1
second can not sync with DAL, so DAL can not apply MALL
when the workload type is not bootup default.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h

index 4b1675f79caa5a4bb8824bb7dcad0e7f02840f8b..3c030d3f39d459a1562753c28167f48ab6a149b6 100644 (file)
@@ -57,8 +57,8 @@ enum amdgpu_gfx_pipe_priority {
 #define AMDGPU_GFX_QUEUE_PRIORITY_MINIMUM  0
 #define AMDGPU_GFX_QUEUE_PRIORITY_MAXIMUM  15
 
-/* 1 second timeout */
-#define GFX_PROFILE_IDLE_TIMEOUT       msecs_to_jiffies(1000)
+/* 10 millisecond timeout */
+#define GFX_PROFILE_IDLE_TIMEOUT       msecs_to_jiffies(10)
 
 enum amdgpu_gfx_partition {
        AMDGPU_SPX_PARTITION_MODE = 0,