Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe: Drop force_alloc from xe_bo_evict in selftests

The force_alloc flag was removed from TTM / Xe but updating the
selftests to new function interfaces was missed. Remove argument from
xe_bo_evict in selftests.

v2:
- Fix dma-buf, migrate selftests (CI)

Fixes: 55df7c0c62c1 ("drm/ttm/xe: drop unused force_alloc flag")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Link: https://lore.kernel.org/r/20250428022318.877860-1-matthew.brost@intel.com

+3 -3
+1 -1
drivers/gpu/drm/xe/tests/xe_bo.c
··· 60 60 } 61 61 62 62 /* Evict to system. CCS data should be copied. */ 63 - ret = xe_bo_evict(bo, true); 63 + ret = xe_bo_evict(bo); 64 64 if (ret) { 65 65 KUNIT_FAIL(test, "Failed to evict bo.\n"); 66 66 return ret;
+1 -1
drivers/gpu/drm/xe/tests/xe_dma_buf.c
··· 65 65 * the exporter and the importer should be the same bo. 66 66 */ 67 67 swap(exported->ttm.base.dma_buf, dmabuf); 68 - ret = xe_bo_evict(exported, true); 68 + ret = xe_bo_evict(exported); 69 69 swap(exported->ttm.base.dma_buf, dmabuf); 70 70 if (ret) { 71 71 if (ret != -EINTR && ret != -ERESTARTSYS)
+1 -1
drivers/gpu/drm/xe/tests/xe_migrate.c
··· 509 509 dma_fence_put(fence); 510 510 511 511 kunit_info(test, "Evict vram buffer object\n"); 512 - ret = xe_bo_evict(vram_bo, true); 512 + ret = xe_bo_evict(vram_bo); 513 513 if (ret) { 514 514 KUNIT_FAIL(test, "Failed to evict bo.\n"); 515 515 return;