From: Perry Yuan <perry.yuan@amd.com>
To: <amd-gfx@lists.freedesktop.org>, <Alexander.Deucher@amd.com>
Cc: <Yifan1.Zhang@amd.com>
Subject: [PATCH v2 00/13] drm/amdgpu: Add Peak Tops Limiter (PTL)
Date: Mon, 9 Feb 2026 00:41:59 +0800 [thread overview]
Message-ID: <cover.1770568163.git.perry.yuan@amd.com> (raw)
This series adds support for Peak Tops Limiter (PTL) on AMD GFX 9.4.4
GPUs. PTL is a hardware feature that limits peak
computational throughput to stay within power and thermal constraints.
v1->v2:
- Rework patch set based on review feedback (Alex)
- Consolidate PTL structure and interface definitions
- Drop patches that have been merged into earlier patches
- Add explicit PSP response status check in psp_ptl_invoke()
- Add GFX idle wait before PTL state transition to prevent CP hang
- Unify refcount logic for PTL disable/enable
- Rework profiler IOCTL interface based on review feedback (James)
Benjamin Welton (1):
Add kfd_ioctl_profiler to contain profiler kernel driver changes
Perry Yuan (12):
drm/amdgpu: add new performance monitor PSP interfaces
drm/amdgpu: add psp interfaces for peak tops limiter driver
drm/amdgpu: add PTL enable/query gfx control support for GC 9.4.4
drm/amdkfd: add kgd control interface for ptl
Documentation/amdgpu: Add documentation for Peak Tops Limiter (PTL)
sysfs interface
drm/amdgpu: add sysfs for Peak Tops Limiter (PTL)
drm/amdkfd: Add PTL control IOCTL Option and unify refcount logic
drm/amdkfd: suspend scheduler during PTL re-enabling
drm/amdgpu: Track PTL disable requests by source
drm/amdgpu: add amdgpu.ptl module parameter for PTL control
drm/amdgpu: add new data types F8 and Vector for PTL
drm/amdgpu: Wait for GFX idle before PTL state transition
Documentation/gpu/amdgpu/index.rst | 1 +
Documentation/gpu/amdgpu/ptl.rst | 94 +++++
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 2 +
.../drm/amd/amdgpu/amdgpu_amdkfd_gc_9_4_3.c | 13 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 13 +
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 349 ++++++++++++++++++
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 27 +-
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 62 ++++
drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h | 17 +
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 219 +++++++++++
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 4 +
.../drm/amd/amdkfd/kfd_device_queue_manager.c | 25 ++
.../drm/amd/amdkfd/kfd_device_queue_manager.h | 2 +
.../gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c | 16 +-
.../gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c | 14 +-
.../gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c | 8 +-
.../gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 15 +-
.../gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | 11 +
drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 16 +
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 15 +
drivers/gpu/drm/amd/include/amdgpu_ptl.h | 61 +++
.../gpu/drm/amd/include/kgd_kfd_interface.h | 6 +
include/uapi/linux/kfd_ioctl.h | 36 ++
25 files changed, 1020 insertions(+), 10 deletions(-)
create mode 100644 Documentation/gpu/amdgpu/ptl.rst
create mode 100644 drivers/gpu/drm/amd/include/amdgpu_ptl.h
--
2.34.1
next reply other threads:[~2026-02-08 16:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-08 16:41 Perry Yuan [this message]
2026-02-08 16:42 ` [PATCH v2 01/13] Add kfd_ioctl_profiler to contain profiler kernel driver changes Perry Yuan
2026-02-09 14:47 ` Alex Deucher
2026-02-09 15:56 ` Alex Deucher
2026-02-09 16:14 ` Yuan, Perry
2026-02-08 16:42 ` [PATCH v2 02/13] drm/amdgpu: add new performance monitor PSP interfaces Perry Yuan
2026-02-08 16:42 ` [PATCH v2 03/13] drm/amdgpu: add psp interfaces for peak tops limiter driver Perry Yuan
2026-02-08 16:42 ` [PATCH v2 04/13] drm/amdgpu: add PTL enable/query gfx control support for GC 9.4.4 Perry Yuan
2026-02-08 16:42 ` [PATCH v2 05/13] drm/amdkfd: add kgd control interface for ptl Perry Yuan
2026-02-08 16:42 ` [PATCH v2 06/13] Documentation/amdgpu: Add documentation for Peak Tops Limiter (PTL) sysfs interface Perry Yuan
2026-02-08 16:42 ` [PATCH v2 07/13] drm/amdgpu: add sysfs for Peak Tops Limiter (PTL) Perry Yuan
2026-02-08 16:42 ` [PATCH v2 08/13] drm/amdkfd: Add PTL control IOCTL Option and unify refcount logic Perry Yuan
2026-02-08 16:42 ` [PATCH v2 09/13] drm/amdkfd: suspend scheduler during PTL re-enabling Perry Yuan
2026-02-08 16:42 ` [PATCH v2 10/13] drm/amdgpu: Track PTL disable requests by source Perry Yuan
2026-02-08 16:42 ` [PATCH v2 11/13] drm/amdgpu: add amdgpu.ptl module parameter for PTL control Perry Yuan
2026-02-08 16:42 ` [PATCH v2 12/13] drm/amdgpu: add new data types F8 and Vector for PTL Perry Yuan
2026-02-08 16:42 ` [PATCH v2 13/13] drm/amdgpu: Wait for GFX idle before PTL state transition Perry Yuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1770568163.git.perry.yuan@amd.com \
--to=perry.yuan@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Yifan1.Zhang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox