amdgpu: implement Performance Monitor Counter support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/213 patches 1 replyIn review
- v2 posting 1/213 patches 0 repliesSuperseded
- v112 patches 2 repliesSuperseded
Changes in v2 from the cover letter
1) remove per-IP set_mqd_perfcount, use init_mqd with modify == true instead
2) squash amdgpu_userq_xa_find into the caller patch
3) keep CWSR registers when modify mqd for GFX12
4) minor improvements
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | drm/amdgpu: implement PMC ioctl frameworkdrivers/ drivers/ drivers/ +2 more | +116 | 0 replies | |
| 2/13 | drm/amdgpu: add device-wide PMC configdrivers/ drivers/ | +12 | 0 replies | |
| 3/13 | drm/amdgpu: introduce PMC ioctl handlerdrivers/ | +34 | 0 replies | |
| 4/13 | drm/amdgpu: implement reservation mechanism for PMCdrivers/ drivers/ drivers/ | +78 | 0 replies | |
| 5/13 | drm/amdgpu: set device-wide PMC enablement indicatordrivers/ drivers/ drivers/ | +34 | 0 replies | |
| 6/13 | drm/amdgpu/gfx11: set mqd->perfcount from mqd_propdrivers/ drivers/ | +3 | 0 replies | |
| 7/13 | drm/amdgpu/gfx12: set mqd->perfcount from mqd_propdrivers/ | +1 | 0 replies | |
| 8/13 | drm/amdgpu/gfx12.1: set mqd->perfcount from mqd_propdrivers/ | +1 | 0 replies | |
| 9/13 | drm/amdgpu/gfx11: set pmc_supported for GFX11 familydrivers/ | +2 | 0 replies | |
| 10/13 | drm/amdgpu/gfx12: set pmc_supported for GFX12 familydrivers/ | +1 | 0 replies | |
| 11/13 | drm/amdgpu/gfx12: keep CWSR registers when modify mqddrivers/ | +5 | 0 replies | |
| 12/13 | drm/amdgpu: implement device PMC handlerdrivers/ drivers/ drivers/ | +140 | 0 replies | |
| 13/13 | drm/amdgpu: set userq perf state before publish itdrivers/ | +28 | 0 replies |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Benjamin Welton | Alex Deucher |
|---|---|---|
| Series | R-b | |
| 1/13 | R-b | |
| 2/13 | R-b | |
| 3/13 | R-b | |
| 4/13 | R-b | |
| 5/13 | R-b | |
| 6/13 | R-b | |
| 7/13 | R-b | |
| 8/13 | R-b | |
| 9/13 | R-b | |
| 10/13 | R-b | |
| 11/13 | R-b | |
| 12/13 | R-b | |
| 13/13 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V2 RESEND 00/13] amdgpu: implement Performance Monitor Counter support
(Add Benjamin's Reviewed-by tag and resend)
This series implements PMC support for amdgpu. Including two parts:
1) PMC Enablement
2) Profiler Reservation
The user space should take the reservation, then set PMC.
Changes from v1:
1) remove per-IP set_mqd_perfcount, use init_mqd with modify == true instead
2) squash amdgpu_userq_xa_find into the caller patch
3) keep CWSR registers when modify mqd for GFX12
4) minor improvements
Zhu Lingshan (13):
drm/amdgpu: implement PMC ioctl framework drm/amdgpu: add device-wide PMC config drm/amdgpu: introduce PMC ioctl handler drm/amdgpu: implement reservation mechanism for PMC drm/amdgpu: set device-wide PMC enablement indicator drm/amdgpu/gfx11: set mqd->perfcount from mqd_prop drm/amdgpu/gfx12: set mqd->perfcount from mqd_prop drm/amdgpu/gfx12.1: set mqd->perfcount from mqd_prop drm/amdgpu/gfx11: set pmc_supported for GFX11 family drm/amdgpu/gfx12: set pmc_supported for GFX12 family drm/amdgpu/gfx12: keep CWSR registers when modify mqd drm/amdgpu: implement device PMC handler drm/amdgpu: set userq perf state before publish it
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 9 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.c | 183 +++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.h | 38 ++++ drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 164 ++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h | 2 + drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 3 + drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 9 +- drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 1 + include/uapi/drm/amdgpu_drm.h | 36 ++++ 13 files changed, 451 insertions(+), 5 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.c create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.h
Signature · 1 line
2.53.0