Lines Matching full:big
77 bool big = bo->size >= SZ_2M; in test_copy() local
79 const char *str = big ? "Copying big bo" : "Copying small bo"; in test_copy()
111 if (!sanity_fence_failed(xe, fence, big ? "Clearing remote big bo" : in test_copy()
129 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo remote -> vram" : in test_copy()
146 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo vram -> remote" : in test_copy()
188 struct xe_bo *pt, *bo = m->pt_bo, *big, *tiny; in xe_migrate_sanity_test() local
203 big = xe_bo_create_pin_map(xe, tile, m->q->vm, SZ_4M, in xe_migrate_sanity_test()
207 if (IS_ERR(big)) { in xe_migrate_sanity_test()
208 KUNIT_FAIL(test, "Failed to allocate bo: %li\n", PTR_ERR(big)); in xe_migrate_sanity_test()
302 /* Clear a big bo */ in xe_migrate_sanity_test()
303 kunit_info(test, "Clearing big buffer object\n"); in xe_migrate_sanity_test()
304 xe_map_memset(xe, &big->vmap, 0, 0x11, big->size); in xe_migrate_sanity_test()
306 fence = xe_migrate_clear(m, big, big->ttm.resource, in xe_migrate_sanity_test()
308 if (sanity_fence_failed(xe, fence, "Clearing big bo", test)) in xe_migrate_sanity_test()
312 retval = xe_map_rd(xe, &big->vmap, 0, u32); in xe_migrate_sanity_test()
313 check(retval, expected, "Command clear big first value", test); in xe_migrate_sanity_test()
314 retval = xe_map_rd(xe, &big->vmap, big->size - 4, u32); in xe_migrate_sanity_test()
315 check(retval, expected, "Command clear big last value", test); in xe_migrate_sanity_test()
317 kunit_info(test, "Copying big buffer object to system\n"); in xe_migrate_sanity_test()
318 test_copy_sysmem(m, big, test); in xe_migrate_sanity_test()
320 kunit_info(test, "Copying big buffer object to other vram\n"); in xe_migrate_sanity_test()
321 test_copy_vram(m, big, test); in xe_migrate_sanity_test()
333 xe_bo_unpin(big); in xe_migrate_sanity_test()
334 xe_bo_put(big); in xe_migrate_sanity_test()