Skip to content

Commit 84a11c5

Browse files
committed
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: 55df7c0 ("drm/ttm/xe: drop unused force_alloc flag") Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Clint Taylor <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6ed2062 commit 84a11c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/gpu/drm/xe/tests/xe_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int ccs_test_migrate(struct xe_tile *tile, struct xe_bo *bo,
6060
}
6161

6262
/* Evict to system. CCS data should be copied. */
63-
ret = xe_bo_evict(bo, true);
63+
ret = xe_bo_evict(bo);
6464
if (ret) {
6565
KUNIT_FAIL(test, "Failed to evict bo.\n");
6666
return ret;

drivers/gpu/drm/xe/tests/xe_dma_buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void check_residency(struct kunit *test, struct xe_bo *exported,
6565
* the exporter and the importer should be the same bo.
6666
*/
6767
swap(exported->ttm.base.dma_buf, dmabuf);
68-
ret = xe_bo_evict(exported, true);
68+
ret = xe_bo_evict(exported);
6969
swap(exported->ttm.base.dma_buf, dmabuf);
7070
if (ret) {
7171
if (ret != -EINTR && ret != -ERESTARTSYS)

drivers/gpu/drm/xe/tests/xe_migrate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static void test_migrate(struct xe_device *xe, struct xe_tile *tile,
509509
dma_fence_put(fence);
510510

511511
kunit_info(test, "Evict vram buffer object\n");
512-
ret = xe_bo_evict(vram_bo, true);
512+
ret = xe_bo_evict(vram_bo);
513513
if (ret) {
514514
KUNIT_FAIL(test, "Failed to evict bo.\n");
515515
return;

0 commit comments

Comments
 (0)