]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ttm: remove ttm_bo_validate_swapout test
authorChristian König <christian.koenig@amd.com>
Thu, 10 Jul 2025 14:25:21 +0000 (16:25 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 16 Jul 2025 09:19:20 +0000 (11:19 +0200)
commit76689eb526673d2dfab82d49c41e03caaff838fe
treef1d3930173567bb794c6385776a68083eeee2bba
parent8b824e9d2d0acf9f8c7f33fa8afd6016e8bb9ab4
drm/ttm: remove ttm_bo_validate_swapout test

The test is quite fragile since it tries to allocate halve available system
memory + 1 page.

If the system has either not enough memory to make the allocation work
with other things running in parallel or to much memory so the allocation
fails as to large/invalid the test will fail.

Completely remove the test. We already validate swapout on the device
level and that test seems to be stable.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250710144129.1803-2-christian.koenig@amd.com
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c