]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Track PTL disable requests by source
authorPerry Yuan <perry.yuan@amd.com>
Sun, 8 Feb 2026 16:42:09 +0000 (00:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 19:55:56 +0000 (15:55 -0400)
commit950688d2417085f30feb6ec48c85eeda53841ea2
treee7ceecd0e36872b6c0fc59ebc546a8eddeda6e45
parent022f071db5eb4434824e52790542e648c9bcd77d
drm/amdgpu: Track PTL disable requests by source

Use a bitmap to track PTL disable requests from sysfs and profiler.
PTL is only re-enabled once all sources have released their disable
requests, avoiding premature enablement.

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/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/include/amdgpu_ptl.h