TODO 1.2 KB

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