From: Tejas Upadhyay <tejas.upadhyay@intel.com>
To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: matthew.auld@intel.com, arunpravin.paneerselvam@amd.com,
Tejas Upadhyay <tejas.upadhyay@intel.com>
Subject: [PATCH V2 0/2] Add gpu_buddy_allocated_addr_to_block helper and its Kunit tests
Date: Tue, 28 Jul 2026 17:19:24 +0530 [thread overview]
Message-ID: <20260728114923.2675866-4-tejas.upadhyay@intel.com> (raw)
Add helper with primary purpose is to efficiently trace a specific
memory address back to its corresponding TTM buffer object.
Also Add KUnit tests for testing it.
v2
- Drop the mutex and lockdep annotation; standalone KUnit tests do not
register a driver lock.
Tejas Upadhyay (2):
drm/gpu: Add gpu_buddy_allocated_addr_to_block helper
gpu/tests/gpu_buddy: Add KUnit test for
gpu_buddy_allocated_addr_to_block
drivers/gpu/buddy.c | 53 ++++++++++++++++++++++++++++++
drivers/gpu/tests/gpu_buddy_test.c | 43 ++++++++++++++++++++++++
include/linux/gpu_buddy.h | 2 ++
3 files changed, 98 insertions(+)
--
2.52.0
next reply other threads:[~2026-07-28 11:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 11:49 Tejas Upadhyay [this message]
2026-07-28 11:49 ` [PATCH V2 1/2] drm/gpu: Add gpu_buddy_allocated_addr_to_block helper Tejas Upadhyay
2026-07-28 11:49 ` [PATCH V2 2/2] gpu/tests/gpu_buddy: Add KUnit test for gpu_buddy_allocated_addr_to_block Tejas Upadhyay
2026-07-28 11:56 ` ✓ CI.KUnit: success for Add gpu_buddy_allocated_addr_to_block helper and its Kunit tests (rev2) Patchwork
2026-07-28 12:36 ` ✓ Xe.CI.BAT: " Patchwork
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=20260728114923.2675866-4-tejas.upadhyay@intel.com \
--to=tejas.upadhyay@intel.com \
--cc=arunpravin.paneerselvam@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.auld@intel.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