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