]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm: Use fault-injection to test error paths
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 5 Mar 2025 09:22:16 +0000 (10:22 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 5 Mar 2025 16:08:59 +0000 (17:08 +0100)
commit8ae875f641188be338126cc76c76c82d256364dd
tree2c5d06b3ce9c47b7b8aa1c7ba2cf5bede70e6a67
parentb63d715b8090aed48bdef5930625946fa4c0d324
drm/ttm: Use fault-injection to test error paths

Use fault-injection to test partial TTM swapout and interrupted swapin.
Return -EINTR for swapin to test the callers ability to handle and
restart the swapin, and on swapout perform a partial swapout to test that
the swapin and release_shrunken functionality.

v8:
- Use the core fault-injection system.
v9:
- Fix compliation failure for !CONFIG_FAULT_INJECTION

Cc: Christian König <christian.koenig@amd.com>
Cc: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: <dri-devel@lists.freedesktop.org>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/intel-xe/20250305092220.123405-4-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/ttm/ttm_pool.c