From: sashiko-bot@kernel.org
To: "Priya Hosur" <Priya.Hosur@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/amdkfd: bound APU available memory by host available memory
Date: Fri, 27 Nov 2026 08:37:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-236887@kernel.org> (raw)
In-Reply-To: <20261127082854.112025-2-Priya.Hosur@amd.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/amdkfd: missing Signed-off-by trailer for Co-developed-by
author
--
commit 420a8aac5bafb2838f8e3671bb8ebf0a0f48b7bc
Author: Priya Hosur <Priya.Hosur@amd.com>
> drm/amdkfd: bound APU available memory by host available memory
>
> On APUs where the VRAM carve-out is smaller than GTT (apu_prefer_gtt),
> KFD serves VRAM allocations from GTT, which is ordinary system memory.
> amdgpu_amdkfd_get_available_memory() then reports the minimum of the
> static KFD system limit, the TTM limit and the XCP size, each reduced
> only by KFD's own allocations. Memory used by the rest of the system is
> never subtracted, so AMDKFD_IOC_AVAILABLE_MEMORY, and hipMemGetInfo() on
> top of it, overstates what can be allocated.
>
> On a Ryzen AI MAX+ 395 (gfx1151, 62 GiB RAM, ttm.pages_limit 80 GiB)
> with 40 GiB held by another process, hipMemGetInfo() reports 59.67 GiB
> free while MemAvailable is 20.39 GiB. Applications that size buffers
> from it (e.g. a KV cache) overcommit and, without swap, trigger the OOM
> killer instead of failing cleanly.
>
> Bound the reported value by si_mem_available() when apu_prefer_gtt is
> set, unless no_system_mem_limit is set, which explicitly allows KFD to
> overcommit system memory. si_mem_available() includes reclaimable page
> cache, so this does not under-report on an idle system.
>
> Apply the bound in amdgpu_amdkfd_get_available_memory() rather than in
> __get_available_memory(), which is also used by the allocation path for
> is_app_apu. Allocation limits are unchanged; only the reported value is
> affected.
>
> Co-developed-by: Strahinja Stamenkovic <strahinja.stamenkovic@amd.com>
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Priya Hosur <Priya.Hosur@amd.com>
[Severity: High]
Per Documentation/process/submitting-patches.rst, every Co-developed-by
trailer must be immediately followed by a matching Signed-off-by trailer
from that co-author. Should a Signed-off-by trailer for Strahinja
Stamenkovic be added right after the Co-developed-by line?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127082854.112025-1-Priya.Hosur@amd.com?part=1
next prev parent reply other threads:[~2026-11-27 8:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 8:28 [PATCH 0/2] drm/amdkfd: report realistic free/total memory on GTT-backed APUs Priya Hosur
2026-11-27 8:28 ` [PATCH 1/2] drm/amdkfd: bound APU available memory by host available memory Priya Hosur
2026-11-27 8:37 ` sashiko-bot [this message]
2026-11-27 8:52 ` Stamenkovic, Strahinja
2026-11-27 8:28 ` [PATCH 2/2] drm/amdkfd: bound the APU GTT pool size by KFD's system memory limit Priya Hosur
2026-11-27 8:43 ` sashiko-bot
2026-11-27 8:52 ` Stamenkovic, Strahinja
2026-11-27 10:19 ` [PATCH v2 0/2] drm/amdkfd: report realistic free/total memory on GTT-backed APUs Priya Hosur
2026-11-27 10:19 ` [PATCH v2 1/2] drm/amdkfd: bound APU available memory by host available memory Priya Hosur
2026-11-27 10:19 ` [PATCH v2 2/2] drm/amdkfd: bound the APU GTT pool size by KFD's system memory limit Priya Hosur
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-236887@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Priya.Hosur@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.