All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/2] Add gpu_buddy_allocated_addr_to_block helper and its Kunit tests
@ 2026-07-28 12:44 Tejas Upadhyay
  2026-07-28 12:44 ` [PATCH V3 1/2] drm/gpu: Add gpu_buddy_allocated_addr_to_block helper Tejas Upadhyay
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Tejas Upadhyay @ 2026-07-28 12:44 UTC (permalink / raw)
  To: intel-xe, dri-devel; +Cc: matthew.auld, arunpravin.paneerselvam, Tejas Upadhyay

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.

v3
- Drop unused target_addr variable
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 | 41 +++++++++++++++++++++++
 include/linux/gpu_buddy.h          |  2 ++
 3 files changed, 96 insertions(+)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-29 16:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 12:44 [PATCH V3 0/2] Add gpu_buddy_allocated_addr_to_block helper and its Kunit tests Tejas Upadhyay
2026-07-28 12:44 ` [PATCH V3 1/2] drm/gpu: Add gpu_buddy_allocated_addr_to_block helper Tejas Upadhyay
2026-07-28 12:44 ` [PATCH V3 2/2] gpu/tests/gpu_buddy: Add KUnit test for gpu_buddy_allocated_addr_to_block Tejas Upadhyay
2026-07-29 15:38   ` Matthew Auld
2026-07-29 16:07     ` Matthew Auld
2026-07-28 12:52 ` ✓ CI.KUnit: success for Add gpu_buddy_allocated_addr_to_block helper and its Kunit tests (rev3) Patchwork
2026-07-28 13:29 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-28 16:44 ` ✓ Xe.CI.FULL: " Patchwork

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.