Add helper with primary purpose is to efficiently trace a specific
physical memory address back to its corresponding TTM buffer object.

Also Add KUnit tests for testing it.

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 | 98 ++++++++++++++++++++++++++++++
 include/linux/gpu_buddy.h          |  2 +
 3 files changed, 153 insertions(+)

-- 
2.52.0

Reply via email to