| be487a29 | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Correct modules' licenses
The test files are GPL and MIT, so update the definitions accordingly.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Thomas He
drm/ttm/tests: Correct modules' licenses
The test files are GPL and MIT, so update the definitions accordingly.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/54cd7289db67ec396b67ef48dbb45521d56ec03c.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| d6a82a15 | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Add tests for ttm_tt_populate
Add tests for functions that add and release pages to TTs. Test the swapin operation. Export ttm_tt_unpopulate, ttm_tt_swapin and ttm_tt_swapout symbols
drm/ttm/tests: Add tests for ttm_tt_populate
Add tests for functions that add and release pages to TTs. Test the swapin operation. Export ttm_tt_unpopulate, ttm_tt_swapin and ttm_tt_swapout symbols for testing purposes.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Somalapuram, Amaranath <[email protected]> Tested-by: Somalapuram, Amaranath <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ee42d83a472ba6bca22b4bce58f332f800891186.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| 5fe39433 | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Add eviction testing
Add tests for ttm_bo_validate that focus on BO eviction and swapout. Update device funcs definition with eviction-related callbacks. Add alternative funcs where e
drm/ttm/tests: Add eviction testing
Add tests for ttm_bo_validate that focus on BO eviction and swapout. Update device funcs definition with eviction-related callbacks. Add alternative funcs where evict_flags() routes eviction to a domain that can't allocate resources (dubbed "busy manager" in the tests). Extract the common path of ttm_device init into a function.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Somalapuram, Amaranath <[email protected]> Tested-by: Somalapuram, Amaranath <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ae8e284d6c7e6bd0be259052bd4f42e07ce24641.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| 8eda41df | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Add test cases dependent on fence signaling
Add test cases that check how the state of dma fences in BO's reservation object influence the ttm_bo_validation() flow. Do similar tests f
drm/ttm/tests: Add test cases dependent on fence signaling
Add test cases that check how the state of dma fences in BO's reservation object influence the ttm_bo_validation() flow. Do similar tests for resource manager's move fence.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Somalapuram, Amaranath <[email protected]> Tested-by: Somalapuram, Amaranath <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/068791a27abd05bf2605f23cc31864a22c20b308.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| 32d618e9 | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Add tests with mock resource managers
Add mock resource manager to test ttm_bo_validate() with non-system placements. Update KConfig entry to enable DRM Buddy allocator, used by the m
drm/ttm/tests: Add tests with mock resource managers
Add mock resource manager to test ttm_bo_validate() with non-system placements. Update KConfig entry to enable DRM Buddy allocator, used by the mock manager. Update move function to do more than just assign a resource.
Signed-off-by: Karolina Stolarek <[email protected]> Tested-by: Somalapuram, Amaranath <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/664791dbb7cbada29e705d2fcaf176023f1b8649.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| 8bd1ff5d | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Test simple BO creation and validation
Add tests for ttm_bo_init_reserved() and ttm_bo_validate() that use sys manager. Define a simple move function in ttm_device_funcs. Expose destr
drm/ttm/tests: Test simple BO creation and validation
Add tests for ttm_bo_init_reserved() and ttm_bo_validate() that use sys manager. Define a simple move function in ttm_device_funcs. Expose destroy callback of the buffer object to make testing of ttm_bo_init_reserved() behaviour easier.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Reviewed-by: Somalapuram, Amaranath <[email protected]> Tested-by: Somalapuram, Amaranath <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ffba0d62eb98b2cbc61ae7ca90fee7dc0855719c.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| f7ed0a7e | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Use an init function from the helpers lib
Add a new helper function that also initializes the device. Use it in ttm_tt test suite and delete the local definition.
Signed-off-by: Karo
drm/ttm/tests: Use an init function from the helpers lib
Add a new helper function that also initializes the device. Use it in ttm_tt test suite and delete the local definition.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Reviewed-by: Somalapuram, Amaranath <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/235f110c1bdd2da7fac62ec03d177a5160dba1d5.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| dc501656 | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Set DMA mask in KUnit device
In commit d393acce7b3f ("drm/tests: Switch to kunit devices"), DRM test helpers migrated away from using a dummy platform driver in favour of KUnit device
drm/ttm/tests: Set DMA mask in KUnit device
In commit d393acce7b3f ("drm/tests: Switch to kunit devices"), DRM test helpers migrated away from using a dummy platform driver in favour of KUnit device. This means that DMA masks for the device are not set but are required by ttm_pool_alloc tests.
Set the DMA mask for coherent mappings to unblock testing.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/dbd83b01bc835d922c070ad1c5bd9023e631e6c4.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| d0745846 | 12-Jun-2024 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Delete unnecessary config option
DRM KUnit helpers are selected automatically when TTM tests are enabled, so there's no need to do it directly in the .kunitconfig file.
Signed-off-by
drm/ttm/tests: Delete unnecessary config option
DRM KUnit helpers are selected automatically when TTM tests are enabled, so there's no need to do it directly in the .kunitconfig file.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/1f6f03ac5c6ba7d4b021c2a31638a0ae086486e8.1718192625.git.karolina.stolarek@intel.com
show more ...
|
| e6f7c641 | 29-Nov-2023 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Add tests for ttm_tt
Test initialization, creation and destruction of ttm_tt instances. Export ttm_tt_destroy and ttm_tt_create symbols for testing purposes.
Signed-off-by: Karolina
drm/ttm/tests: Add tests for ttm_tt
Test initialization, creation and destruction of ttm_tt instances. Export ttm_tt_destroy and ttm_tt_create symbols for testing purposes.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Christian König <[email protected]> Tested-by: Amaranath Somalapuram <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/4459cb89c666bfa377753ae18d0c8917131638e8.1701257386.git.karolina.stolarek@intel.com Signed-off-by: Christian König <[email protected]>
show more ...
|
| 20404204 | 08-Aug-2023 |
Karolina Stolarek <[email protected]> |
drm/ttm/tests: Add tests for ttm_pool
Add KUnit tests that exercise page allocation using page pools and freeing pages, either by returning them to the pool or freeing them. Add a basic test for ttm
drm/ttm/tests: Add tests for ttm_pool
Add KUnit tests that exercise page allocation using page pools and freeing pages, either by returning them to the pool or freeing them. Add a basic test for ttm_pool cleanup. Introduce helpers to create a dummy ttm_buffer_object.
Signed-off-by: Karolina Stolarek <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/427ea373357d0b6cb376c9d7ebc33c930bf1d28a.1691487006.git.karolina.stolarek@intel.com Signed-off-by: Christian König <[email protected]>
show more ...
|