]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/ttm/tests: Test simple BO creation and validation
authorKarolina Stolarek <karolina.stolarek@intel.com>
Wed, 12 Jun 2024 12:02:59 +0000 (14:02 +0200)
committerArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Mon, 24 Jun 2024 10:31:16 +0000 (16:01 +0530)
commit8bd1ff5ddc7bccabf5be7cf540b9af8d5f968866
treea692b656cd5adeeb9a819af5738429c7f5fcd3ca
parentf7ed0a7e42c10cc0b6415203dcc3be7edbbbbdd1
drm/ttm/tests: Test simple BO creation and validation

Add tests for ttm_bo_init_reserved() and ttm_bo_validate() that use
sys manager. Define a simple move function in ttm_device_funcs. Expose
destroy callback of the buffer object to make testing of
ttm_bo_init_reserved() behaviour easier.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Somalapuram, Amaranath <asomalap@amd.com>
Tested-by: Somalapuram, Amaranath <asomalap@amd.com>
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ffba0d62eb98b2cbc61ae7ca90fee7dc0855719c.1718192625.git.karolina.stolarek@intel.com
drivers/gpu/drm/ttm/tests/Makefile
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c [new file with mode: 0644]
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.h