drm/ttm/tests: Add tests for ttm_tt
authorKarolina Stolarek <karolina.stolarek@intel.com>
Wed, 29 Nov 2023 12:02:28 +0000 (13:02 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 14 Dec 2023 10:12:29 +0000 (11:12 +0100)
commite6f7c641fae339cd5df28186677de1741e0c40c7
tree01a58ab9cd93998a9e6674e1393d4334615657f1
parent9afc1e0aa4851ef48482b03f6304047cf9b550ca
drm/ttm/tests: Add tests for ttm_tt

Test initialization, creation and destruction of ttm_tt instances.
Export ttm_tt_destroy and ttm_tt_create symbols for testing purposes.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Amaranath Somalapuram <Amaranath.Somalapuram@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4459cb89c666bfa377753ae18d0c8917131638e8.1701257386.git.karolina.stolarek@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/tests/Makefile
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
drivers/gpu/drm/ttm/tests/ttm_tt_test.c [new file with mode: 0644]
drivers/gpu/drm/ttm/ttm_tt.c