xref: /linux/drivers/gpu/drm/ttm/tests/TODO (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1TODO
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
15Notes 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
28