Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ttm/tests: Add TODO file

List improvements for the test suite with some notes.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.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/3856fbbeaf40078d59b45971002b8f9d0d85f8f0.1718192625.git.karolina.stolarek@intel.com

authored by

Karolina Stolarek and committed by
Arunpravin Paneer Selvam
99eec733 d6a82a15

+27
+27
drivers/gpu/drm/ttm/tests/TODO
··· 1 + TODO 2 + ===== 3 + 4 + - Add a test case where the only evictable BO is busy 5 + - Update eviction tests so they use parametrized "from" memory type 6 + - Improve mock manager's implementation, e.g. allocate a block of 7 + dummy memory that can be used when testing page mapping functions 8 + - Suggestion: Add test cases with external BOs 9 + - Suggestion: randomize the number and size of tested buffers in 10 + ttm_bo_validate() 11 + - Agree on the naming convention 12 + - Rewrite the mock manager: drop use_tt and manage mock memory using 13 + drm_mm manager 14 + 15 + Notes and gotchas 16 + ================= 17 + 18 + - These tests are built and run with a UML kernel, because 19 + 1) We are interested in hardware-independent testing 20 + 2) We don't want to have actual DRM devices interacting with TTM 21 + at the same time as the test one. Getting these to work in 22 + parallel would require some time (...and that's a "todo" in itself!) 23 + - Triggering ttm_bo_vm_ops callbacks from KUnit (i.e. kernel) might be 24 + a challenge, but is worth trying. Look at selftests like 25 + i915/gem/selftests/i915_gem_mman.c for inspiration 26 + - The test suite uses UML where ioremap() call returns NULL, meaning that 27 + ttm_bo_ioremap() can't be tested, unless we find a way to stub it