]> git.hungrycats.org Git - linux/commit
drm/amdgpu: Wait for GFX idle before PTL state transition
authorPerry Yuan <perry.yuan@amd.com>
Sun, 8 Feb 2026 16:42:12 +0000 (00:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 19:55:56 +0000 (15:55 -0400)
commit82cfe59ba4679647c776367dd6914c6310c1888e
treea3b72aa49c274064c08adfd3bede11ac6b2bf5b8
parentd31098cb31ef6052ae1ac51e7e78bfcbe7ac90ea
drm/amdgpu: Wait for GFX idle before PTL state transition

Ensure GFX engine is idle before switching PTL state to prevent
register access violations and CP hang. This addresses the race
condition where in-flight GPU commands could conflict with PTL
state changes.

Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c