Lines Matching full:big
106 bool big = bo->size >= SZ_2M; in test_copy() local
108 const char *str = big ? "Copying big bo" : "Copying small bo"; in test_copy()
138 if (!sanity_fence_failed(xe, fence, big ? "Clearing remote big bo" : in test_copy()
156 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo remote -> vram" : in test_copy()
173 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo vram -> remote" : in test_copy()
266 struct xe_bo *pt, *bo = m->pt_bo, *big, *tiny; in xe_migrate_sanity_test() local
281 big = xe_bo_create_pin_map(xe, tile, m->q->vm, SZ_4M, in xe_migrate_sanity_test()
285 if (IS_ERR(big)) { in xe_migrate_sanity_test()
286 KUNIT_FAIL(test, "Failed to allocate bo: %li\n", PTR_ERR(big)); in xe_migrate_sanity_test()
379 /* Clear a big bo */ in xe_migrate_sanity_test()
380 kunit_info(test, "Clearing big buffer object\n"); in xe_migrate_sanity_test()
381 xe_map_memset(xe, &big->vmap, 0, 0x11, big->size); in xe_migrate_sanity_test()
383 fence = xe_migrate_clear(m, big, big->ttm.resource); in xe_migrate_sanity_test()
384 if (sanity_fence_failed(xe, fence, "Clearing big bo", test)) in xe_migrate_sanity_test()
388 retval = xe_map_rd(xe, &big->vmap, 0, u32); in xe_migrate_sanity_test()
389 check(retval, expected, "Command clear big first value", test); in xe_migrate_sanity_test()
390 retval = xe_map_rd(xe, &big->vmap, big->size - 4, u32); in xe_migrate_sanity_test()
391 check(retval, expected, "Command clear big last value", test); in xe_migrate_sanity_test()
393 kunit_info(test, "Copying big buffer object to system\n"); in xe_migrate_sanity_test()
394 test_copy_sysmem(m, big, test); in xe_migrate_sanity_test()
396 kunit_info(test, "Copying big buffer object to other vram\n"); in xe_migrate_sanity_test()
397 test_copy_vram(m, big, test); in xe_migrate_sanity_test()
414 xe_bo_unpin(big); in xe_migrate_sanity_test()
415 xe_bo_put(big); in xe_migrate_sanity_test()