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()
110 if (!sanity_fence_failed(xe, fence, big ? "Clearing remote big bo" : in test_copy()
128 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo remote -> vram" : in test_copy()
145 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo vram -> remote" : in test_copy()
187 struct xe_bo *pt, *bo = m->pt_bo, *big, *tiny; in xe_migrate_sanity_test() local
202 big = xe_bo_create_pin_map(xe, tile, m->q->vm, SZ_4M, in xe_migrate_sanity_test()
206 if (IS_ERR(big)) { in xe_migrate_sanity_test()
207 KUNIT_FAIL(test, "Failed to allocate bo: %li\n", PTR_ERR(big)); in xe_migrate_sanity_test()
301 /* Clear a big bo */ in xe_migrate_sanity_test()
302 kunit_info(test, "Clearing big buffer object\n"); in xe_migrate_sanity_test()
303 xe_map_memset(xe, &big->vmap, 0, 0x11, big->size); in xe_migrate_sanity_test()
305 fence = xe_migrate_clear(m, big, big->ttm.resource, in xe_migrate_sanity_test()
307 if (sanity_fence_failed(xe, fence, "Clearing big bo", test)) in xe_migrate_sanity_test()
311 retval = xe_map_rd(xe, &big->vmap, 0, u32); in xe_migrate_sanity_test()
312 check(retval, expected, "Command clear big first value", test); in xe_migrate_sanity_test()
313 retval = xe_map_rd(xe, &big->vmap, big->size - 4, u32); in xe_migrate_sanity_test()
314 check(retval, expected, "Command clear big last value", test); in xe_migrate_sanity_test()
316 kunit_info(test, "Copying big buffer object to system\n"); in xe_migrate_sanity_test()
317 test_copy_sysmem(m, big, test); in xe_migrate_sanity_test()
319 kunit_info(test, "Copying big buffer object to other vram\n"); in xe_migrate_sanity_test()
320 test_copy_vram(m, big, test); in xe_migrate_sanity_test()
332 xe_bo_unpin(big); in xe_migrate_sanity_test()
333 xe_bo_put(big); in xe_migrate_sanity_test()