drm/xe: Drop force_alloc from xe_bo_evict in selftests
authorMatthew Brost <matthew.brost@intel.com>
Mon, 28 Apr 2025 02:23:18 +0000 (19:23 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 28 Apr 2025 02:39:06 +0000 (19:39 -0700)
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
drivers/gpu/drm/xe/tests/xe_bo.c
drivers/gpu/drm/xe/tests/xe_dma_buf.c
drivers/gpu/drm/xe/tests/xe_migrate.c

index 230eb824550ffc82c3dc544fde617989f3317d33..378dcd0fb414938c8f064d718e34a6fa6d96a1c2 100644 (file)
@@ -60,7 +60,7 @@ static int ccs_test_migrate(struct xe_tile *tile, struct xe_bo *bo,
        }
 
        /* Evict to system. CCS data should be copied. */
-       ret = xe_bo_evict(bo, true);
+       ret = xe_bo_evict(bo);
        if (ret) {
                KUNIT_FAIL(test, "Failed to evict bo.\n");
                return ret;
index cedd3e88a6fb2cce4fead957d0e011d153e9cbee..c53f67ce4b0aa26b9e728bcaa518a92229e3c304 100644 (file)
@@ -65,7 +65,7 @@ static void check_residency(struct kunit *test, struct xe_bo *exported,
         * the exporter and the importer should be the same bo.
         */
        swap(exported->ttm.base.dma_buf, dmabuf);
-       ret = xe_bo_evict(exported, true);
+       ret = xe_bo_evict(exported);
        swap(exported->ttm.base.dma_buf, dmabuf);
        if (ret) {
                if (ret != -EINTR && ret != -ERESTARTSYS)
index 52f89476bf62529274769ecd1e15085ee7f1f242..4a65e3103f77b8ff5c0f58c506849a38b5799f31 100644 (file)
@@ -509,7 +509,7 @@ static void test_migrate(struct xe_device *xe, struct xe_tile *tile,
        dma_fence_put(fence);
 
        kunit_info(test, "Evict vram buffer object\n");
-       ret = xe_bo_evict(vram_bo, true);
+       ret = xe_bo_evict(vram_bo);
        if (ret) {
                KUNIT_FAIL(test, "Failed to evict bo.\n");
                return;