AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: James Zhu <jamesz@amd.com>
To: "Welton, Benjamin" <Benjamin.Welton@amd.com>,
	"Zhu, James" <James.Zhu@amd.com>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: Re: [RFC 00/10] amdgpu: implement Performance Monitor Counter support
Date: Wed, 23 Sep 2026 11:11:00 -0400	[thread overview]
Message-ID: <8b7a7bd9-c8ad-40d0-b1a5-a5765cfa5d11@amd.com> (raw)
In-Reply-To: <LV9PR12MB9831867DA9EAA980EA12DFFFF0822@LV9PR12MB9831.namprd12.prod.outlook.com>


On 2026-09-23 11:02, Welton, Benjamin wrote:
> AMD General
>
> For some background on my end, is this the porting over of the existing profiler work to KGD?
[JZ] Yes, for profiler-PMC only. One of the main changes is  from kfd 
device based PMC to render-node based PMC.
>
> Ben
>
> -----Original Message-----
> From: Zhu, James <James.Zhu@amd.com>
> Sent: Wednesday, September 23, 2026 7:02 AM
> To: amd-gfx@lists.freedesktop.org; Welton, Benjamin <Benjamin.Welton@amd.com>
> Subject: Re: [RFC 00/10] amdgpu: implement Performance Monitor Counter support
>
> Hi Ben,
>
> Please review these PMC patches for unified Kernel interface.
>
> Thanks and Best Regards!
>
> James Zhu
>
> On 2026-09-22 05:34, Zhu Lingshan wrote:
>> 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.
>>
>> This series depends on and used new helper introduced in another
>> series:
>> https://lists.freedesktop.org/archives/amd-gfx/2026-August/151692.html
>>
>> Please help Review
>>
>> Thanks!
>>
>> Zhu Lingshan (10):
>>     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: 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          |   8 +
>>    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      |   6 +
>>    drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.c | 166 +++++++++++++++++++
>>    drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.h |  38 +++++
>>    drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c    |  95 ++++++++++-
>>    drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h    |   2 +
>>    drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c       |  11 ++
>>    drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c       |  11 ++
>>    drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c       |  11 ++
>>    include/uapi/drm/amdgpu_drm.h                |  36 ++++
>>    13 files changed, 390 insertions(+), 3 deletions(-)
>>    create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.c
>>    create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_profiler.h
>>

  reply	other threads:[~2026-09-23 15:11 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22  9:34 [RFC 00/10] amdgpu: implement Performance Monitor Counter support Zhu Lingshan
2026-09-22  9:34 ` [RFC 01/10] drm/amdgpu: implement PMC ioctl framework Zhu Lingshan
2026-09-23 14:17   ` James Zhu
2026-09-24  3:38     ` Zhu, Lingshan
2026-09-24 15:49       ` James Zhu
2026-10-08  7:59         ` Zhu, Lingshan
2026-09-22  9:34 ` [RFC 02/10] drm/amdgpu: add device-wide PMC config Zhu Lingshan
2026-09-23 14:13   ` James Zhu
2026-09-24  3:23     ` Zhu, Lingshan
2026-09-24 15:40       ` James Zhu
2026-10-08  7:50         ` Zhu, Lingshan
2026-09-22  9:34 ` [RFC 03/10] drm/amdgpu: introduce PMC ioctl handler Zhu Lingshan
2026-09-22  9:34 ` [RFC 04/10] drm/amdgpu: implement reservation mechanism for PMC Zhu Lingshan
2026-09-22  9:34 ` [RFC 05/10] drm/amdgpu: set device-wide PMC enablement indicator Zhu Lingshan
2026-09-22  9:34 ` [RFC 06/10] drm/amdgpu: GFX11: set mqd->perfcount from mqd_prop Zhu Lingshan
2026-09-22  9:34 ` [RFC 07/10] drm/amdgpu: GFX12: " Zhu Lingshan
2026-09-22  9:34 ` [RFC 08/10] drm/amdgpu: GFX12.1: " Zhu Lingshan
2026-09-22  9:34 ` [RFC 09/10] drm/amdgpu: implement device PMC handler Zhu Lingshan
2026-09-22  9:34 ` [RFC 10/10] drm/amdgpu: set userq perf state before publish it Zhu Lingshan
2026-09-23 14:02 ` [RFC 00/10] amdgpu: implement Performance Monitor Counter support James Zhu
2026-09-23 15:02   ` Welton, Benjamin
2026-09-23 15:11     ` James Zhu [this message]
2026-09-24  3:40     ` Zhu, Lingshan

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=8b7a7bd9-c8ad-40d0-b1a5-a5765cfa5d11@amd.com \
    --to=jamesz@amd.com \
    --cc=Benjamin.Welton@amd.com \
    --cc=James.Zhu@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