summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/include/amdgpu_ptl.h
diff options
context:
space:
mode:
authorPerry Yuan <perry.yuan@amd.com>2026-02-09 00:42:07 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-05-11 15:55:56 -0400
commitdd61e27535a6f5cfb32a847b282d2e3d5aebf46f (patch)
tree2014c59f8faf39adde7a8c99a53e98d333b6b2eb /drivers/gpu/drm/amd/include/amdgpu_ptl.h
parentd51a0439358d4eacd8beb39df619998d8340d232 (diff)
downloadlwn-dd61e27535a6f5cfb32a847b282d2e3d5aebf46f.tar.gz
lwn-dd61e27535a6f5cfb32a847b282d2e3d5aebf46f.zip
drm/amdkfd: Add PTL control IOCTL Option and unify refcount logic
Introduce a new IOCTL option to allow userspace explicit control over the Peak Tops Limiter (PTL) state for profiling Link: https://github.com/ROCm/rocm-systems/tree/develop/projects/rocprofiler-sdk 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>
Diffstat (limited to 'drivers/gpu/drm/amd/include/amdgpu_ptl.h')
-rw-r--r--drivers/gpu/drm/amd/include/amdgpu_ptl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amdgpu_ptl.h b/drivers/gpu/drm/amd/include/amdgpu_ptl.h
index ffed443a14ae..9e63a9a9680a 100644
--- a/drivers/gpu/drm/amd/include/amdgpu_ptl.h
+++ b/drivers/gpu/drm/amd/include/amdgpu_ptl.h
@@ -39,6 +39,8 @@ struct amdgpu_ptl {
enum amdgpu_ptl_fmt fmt2;
bool enabled;
bool hw_supported;
+ /* PTL disable reference counting */
+ atomic_t disable_ref;
struct mutex mutex;
};