drm/ttm/tests: Add tests with mock resource managers
authorKarolina Stolarek <karolina.stolarek@intel.com>
Wed, 12 Jun 2024 12:03:00 +0000 (14:03 +0200)
committerArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Mon, 24 Jun 2024 10:31:17 +0000 (16:01 +0530)
commit32d618e946388809b0fe62ad13f5d67d95dac1c5
tree9c873ab978f3c896809f319a4c306d19f79626c4
parent8bd1ff5ddc7bccabf5be7cf540b9af8d5f968866
drm/ttm/tests: Add tests with mock resource managers

Add mock resource manager to test ttm_bo_validate() with non-system
placements. Update KConfig entry to enable DRM Buddy allocator, used
by the mock manager. Update move function to do more than just assign
a resource.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Tested-by: Somalapuram, Amaranath <asomalap@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/664791dbb7cbada29e705d2fcaf176023f1b8649.1718192625.git.karolina.stolarek@intel.com
drivers/gpu/drm/Kconfig
drivers/gpu/drm/ttm/tests/Makefile
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
drivers/gpu/drm/ttm/tests/ttm_mock_manager.c [new file with mode: 0644]
drivers/gpu/drm/ttm/tests/ttm_mock_manager.h [new file with mode: 0644]