From: "Timur Kristóf" <timur.kristof@gmail.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
"Huang Yu" <yhuang13@amd.com>
Cc: Yu Huang <Yu.Huang@amd.com>, Honglei Huang <honghuan@amd.com>,
Ray Huang <ray.huang@amd.com>, Shen Junhua <junhshen@amd.com>,
Lingshan Zhu <lingszhu@amd.com>,
Natalie Vock <natalie.vock@gmx.de>,
AMD-GFX <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 02/13] drm/amdgpu: remove unecessary parameters from trace_amdgpu_vm_update_ptes
Date: Mon, 21 Sep 2026 13:37:22 +0200 [thread overview]
Message-ID: <bwgzFsejRxCUtPds6WwEnw@gmail.com> (raw)
In-Reply-To: <20260917110158.296198-3-yhuang13@amd.com>
On Thursday, September 17, 2026 1:01:47 PM Central European Summer Time Huang
Yu wrote:
> From: Christian König <ckoenig.leichtzumerken@gmail.com>
>
> Those can be determined by the parameter structure as well.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
Nice cleanup!
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 10 +++++-----
> drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 5 +----
> 2 files changed, 6 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h index
> 784adf975b04..599c1d0e512b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> @@ -331,9 +331,8 @@ TRACE_EVENT(amdgpu_vm_update_ptes,
> TP_PROTO(struct amdgpu_vm_update_params *p,
> uint64_t start, uint64_t end,
> unsigned int nptes, uint64_t dst,
> - uint64_t incr, uint64_t flags,
> - pid_t pid, uint64_t vm_ctx),
> - TP_ARGS(p, start, end, nptes, dst, incr, flags, pid, vm_ctx),
> + uint64_t incr, uint64_t flags),
> + TP_ARGS(p, start, end, nptes, dst, incr, flags),
> TP_STRUCT__entry(
> __field(u64, start)
> __field(u64, end)
> @@ -353,8 +352,9 @@ TRACE_EVENT(amdgpu_vm_update_ptes,
> __entry->flags = flags;
> __entry->incr = incr;
> __entry->nptes = nptes;
> - __entry->pid = pid;
> - __entry->vm_ctx = vm_ctx;
> + __entry->pid = p->vm->task_info ?
> + p->vm->task_info->tgid : 0;
> + __entry->vm_ctx = p->vm-
>immediate.fence_context;
> for (i = 0; i < nptes; ++i) {
> u64 addr = p->pages_addr ?
amdgpu_vm_map_gart(
> p->pages_addr, dst) :
dst;
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c index
> 0d7fe32d0c7d..b85b70a1a428 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
> @@ -882,7 +882,6 @@ int amdgpu_vm_ptes_update(struct amdgpu_vm_update_params
> *params, entry_end = min(entry_end, end);
>
> do {
> - struct amdgpu_vm *vm = params->vm;
> uint64_t upd_end = min(entry_end, frag_end);
> unsigned int nptes = (upd_end - frag_start)
>> shift;
> uint64_t upd_flags = flags |
AMDGPU_PTE_FRAG(frag);
> @@ -894,9 +893,7 @@ int amdgpu_vm_ptes_update(struct amdgpu_vm_update_params
> *params,
>
> trace_amdgpu_vm_update_ptes(params,
frag_start, upd_end,
>
min(nptes, 32u), dst, incr,
> -
upd_flags,
> - vm-
>task_info ? vm->task_info->tgid : 0,
> - vm-
>immediate.fence_context);
> +
upd_flags);
> amdgpu_vm_pte_update_flags(params,
to_amdgpu_bo_vm(pt),
>
cursor.level, pe_start, dst,
> nptes,
incr, upd_flags);
next prev parent reply other threads:[~2026-09-21 11:37 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 11:01 [PATCH 00/13] drm/amdgpu: fixes for the VM critical section and page fault rework Huang Yu
2026-09-17 11:01 ` [PATCH 01/13] drm/amdgpu: start to move VM internals into amdgpu_vm_internal.h Huang Yu
2026-09-21 11:36 ` Timur Kristóf
2026-09-17 11:01 ` [PATCH 02/13] drm/amdgpu: remove unecessary parameters from trace_amdgpu_vm_update_ptes Huang Yu
2026-09-21 11:37 ` Timur Kristóf [this message]
2026-09-17 11:01 ` [PATCH 03/13] drm/amdgpu: allocate and fill dummy PDs/PTs Huang Yu
2026-09-21 11:37 ` Timur Kristóf
2026-09-17 11:01 ` [PATCH 04/13] drm/amdgpu: add amdgpu_vm_pt_leaves() Huang Yu
2026-09-21 11:39 ` Timur Kristóf
2026-09-17 11:01 ` [PATCH 05/13] drm/amdgpu: drop immediate updates from amdgpu_vm_update_range Huang Yu
2026-09-17 11:01 ` [PATCH 06/13] drm/amdgpu: split amdgpu_vm_update_range Huang Yu
2026-09-17 11:01 ` [PATCH 07/13] drm/amdgpu: nuke most amdgpu_vm_eviction_(try)lock uses Huang Yu
2026-09-17 11:01 ` [PATCH 08/13] drm/amdgpu: rework eviction lock handling into critical section v2 Huang Yu
2026-09-17 11:01 ` [PATCH 09/13] drm/amdgpu: free PT when VM critical section cannot resume Huang Yu
2026-09-17 11:01 ` [PATCH 10/13] drm/amdgpu: fix the HMM range handling for KFD SVM Huang Yu
2026-09-17 11:01 ` [PATCH 11/13] drm/amdgpu: update the PTB itself in amdgpu_vm_pt_leaves() Huang Yu
2026-09-17 11:01 ` [PATCH 12/13] drm/amdgpu: pass an exclusive end to amdgpu_vm_pt_leaves() Huang Yu
2026-09-17 11:01 ` [PATCH 13/13] drm/amdgpu: use directory flags for dummy PDEs Huang Yu
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=bwgzFsejRxCUtPds6WwEnw@gmail.com \
--to=timur.kristof@gmail.com \
--cc=Yu.Huang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=honghuan@amd.com \
--cc=junhshen@amd.com \
--cc=lingszhu@amd.com \
--cc=natalie.vock@gmx.de \
--cc=ray.huang@amd.com \
--cc=yhuang13@amd.com \
/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