AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jesse Zhang" <Jesse.Zhang@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 1/3] drm/amdkfd: don't flush the TLB of a device the process has no VM on
Date: Mon, 23 Nov 2026 03:12:45 +0000	[thread overview]
Message-ID: <sashiko-outbox-228583@kernel.org> (raw)
In-Reply-To: <20261123024737.1475714-1-Jesse.Zhang@amd.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/amdkfd: commit message cites missing patch and omits Fixes
  trailer
--

commit 49a7c752d976cee4f89634bba3990ab398ece2e3
Author: Jesse Zhang <Jesse.Zhang@amd.com>

> drm/amdkfd: don't flush the TLB of a device the process has no VM on
>
> A process has a PDD for every device, also the ones it never acquired a
> VM on, and pdd->drm_priv of those is NULL. kfd_flush_tlb() dereferences
> it unconditionally, which is how suspend_queues() oopsed before the
> previous patch.
>
> Return early from kfd_flush_tlb() when there is no VM to flush, so no
> caller can oops on such a PDD.
>
> Suggested-by: Jonathan Kim <jonathan.kim@amd.com>
> Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>

[Severity: Low]
There is no preceding patch in the tree modifying suspend_queues(), which
still calls kfd_flush_tlb(pdd) on PDDs without a VM when total_suspended >
0.  Because this commit directly fixes that NULL pointer dereference,
should the reference to a previous patch be updated and a Fixes tag added?

  Fixes: f5c4f88e0f9c ("drm/amdkfd: Add TLB flush after MES queue eviction/suspension")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123024737.1475714-1-Jesse.Zhang@amd.com?part=1

      parent reply	other threads:[~2026-11-23  3:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  2:47 [PATCH v3 1/3] drm/amdkfd: don't flush the TLB of a device the process has no VM on Jesse Zhang
2026-11-23  2:47 ` [PATCH v3 2/3] drm/amdkfd: return the memory violation data to the debugger Jesse Zhang
2026-11-23  2:47 ` [PATCH v3 3/3] drm/amdkfd: don't keep the debugger pointer when DBG_TRAP_ENABLE fails Jesse Zhang
2026-11-23  3:11   ` sashiko-bot
2026-11-23 15:08   ` Kim, Jonathan
2026-11-23  3:12 ` sashiko-bot [this message]

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=sashiko-outbox-228583@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Jesse.Zhang@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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