drm/ttm/tests: Add tests for ttm_device
authorKarolina Stolarek <karolina.stolarek@intel.com>
Tue, 8 Aug 2023 09:51:13 +0000 (11:51 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 9 Aug 2023 16:04:23 +0000 (18:04 +0200)
commit24ac009ec39751f40dcd84a222ad088e9529b811
treebd9ab31cfbd6f4012de1a2902afbc26e98df6ecb
parente3912d09bf8ddd8e274118d4c9cc550d9665115d
drm/ttm/tests: Add tests for ttm_device

Test initialization and cleanup of the ttm_device struct, including
some error paths. Verify the creation of page pools if use_dma_alloc
param is true.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2abb0e53e7d56b0a24d0255f9075e2123b991278.1691487006.git.karolina.stolarek@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/tests/ttm_device_test.c