From: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
To: Karol Wachowski <karol.wachowski@linux.intel.com>,
dri-devel@lists.freedesktop.org
Cc: oded.gabbay@gmail.com, maciej.falkowski@linux.intel.com,
lizhi.hou@amd.com
Subject: Re: [PATCH 2/2] accel/ivpu: Count only resident buffers in memory utilization
Date: Fri, 7 Nov 2025 09:13:45 -0700 [thread overview]
Message-ID: <f1a6e9e0-ee17-4c74-ac40-e43f4279dc4b@oss.qualcomm.com> (raw)
In-Reply-To: <20251106101052.1050348-3-karol.wachowski@linux.intel.com>
On 11/6/2025 3:10 AM, Karol Wachowski wrote:
> Do not count buffer objects that have no backing pages, including imported
> buffers where pages are set by VM faults triggered by userspace or pinned
> by other drivers. Instead, return information about actual memory used by
> the NPU.
>
> Counting imported buffers results in incorrect calculations when
> the same pages are counted multiple times, giving overly high
> results.
>
> Fixes: 7bfc9fa99580 ("accel/ivpu: Expose NPU memory utilization info in sysfs")
> Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
prev parent reply other threads:[~2025-11-07 16:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-06 10:10 [PATCH 0/2] accel/ivpu: Add memory statistics support Karol Wachowski
2025-11-06 10:10 ` [PATCH 1/2] accel/ivpu: Add fdinfo support for memory statistics Karol Wachowski
2025-11-07 16:12 ` Jeff Hugo
2025-11-08 6:05 ` kernel test robot
2025-11-06 10:10 ` [PATCH 2/2] accel/ivpu: Count only resident buffers in memory utilization Karol Wachowski
2025-11-07 16:13 ` Jeff Hugo [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=f1a6e9e0-ee17-4c74-ac40-e43f4279dc4b@oss.qualcomm.com \
--to=jeff.hugo@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=karol.wachowski@linux.intel.com \
--cc=lizhi.hou@amd.com \
--cc=maciej.falkowski@linux.intel.com \
--cc=oded.gabbay@gmail.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