]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: add psp interfaces for peak tops limiter driver
authorPerry Yuan <perry.yuan@amd.com>
Sun, 8 Feb 2026 16:42:02 +0000 (00:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 19:55:55 +0000 (15:55 -0400)
commit8ce9c73104e34f1fbb8d7f50468e4a62905331f2
treec9b4fb1dd5b9851e9f731239529502b75bacebe7
parente486360db8df9d032bfff44b629d25a803a1d21c
drm/amdgpu: add psp interfaces for peak tops limiter driver

Introduce a Peak Tops Limiter (PTL) driver that dynamically caps
engine frequency to ensure delivered TOPS never exceeds a defined
TOPS_limit. This initial implementation provides core data structures
and kernel-space interfaces (set/get, enable/disable) to manage PTL state.

PTL performs a firmware handshake to initialize its state and update
predefined format types. It supports updating these format types at
runtime while user-space tools automatically switch PTL state, and
also allows explicitly switching PTL state via newly added commands.

Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@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_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
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 [new file with mode: 0644]
drivers/gpu/drm/amd/include/kgd_kfd_interface.h