]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix ptl state isssue after GPU reset or suspend
authorPerry Yuan <perry.yuan@amd.com>
Tue, 10 Mar 2026 02:39:08 +0000 (10:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 19:55:57 +0000 (15:55 -0400)
commit682142124e3848ec03904bf6bf7063e1cac197c4
treeaf7fe21de64c7d952e4a872159a431a5d9aa8aae
parent599c994c28a8d94875d0a5fa8779fbff390db7d8
drm/amdgpu: fix ptl state isssue after GPU reset or suspend

Fix this by skipping the sysfs disable mapping when the GPU is
currently undergoing a reset or suspend flow.
Additionally, add debug logging in psp_ptl_invoke() to better
trace PTL state and format queries/updates cmd.

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