Lines Matching full:remote

111 	struct xe_bo *remote = xe_bo_create_locked(xe, m->tile, NULL,  in test_copy()  local
116 if (IS_ERR(remote)) { in test_copy()
117 KUNIT_FAIL(test, "Failed to allocate remote bo for %s: %li\n", in test_copy()
118 str, PTR_ERR(remote)); in test_copy()
122 err = xe_bo_validate(remote, NULL, false); in test_copy()
129 err = xe_bo_vmap(remote); in test_copy()
136 xe_map_memset(xe, &remote->vmap, 0, 0xd0, remote->size); in test_copy()
137 fence = xe_migrate_clear(m, remote, remote->ttm.resource); in test_copy()
138 if (!sanity_fence_failed(xe, fence, big ? "Clearing remote big bo" : in test_copy()
139 "Clearing remote small bo", test)) { in test_copy()
140 retval = xe_map_rd(xe, &remote->vmap, 0, u64); in test_copy()
141 check(retval, expected, "remote first offset should be cleared", in test_copy()
143 retval = xe_map_rd(xe, &remote->vmap, remote->size - 8, u64); in test_copy()
144 check(retval, expected, "remote last offset should be cleared", in test_copy()
149 /* Try to copy 0xc0 from remote to vram with 2MB or 64KiB/4KiB pages */ in test_copy()
150 xe_map_memset(xe, &remote->vmap, 0, 0xc0, remote->size); in test_copy()
154 fence = xe_migrate_copy(m, remote, bo, remote->ttm.resource, in test_copy()
156 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo remote -> vram" : in test_copy()
157 "Copying small bo remote -> vram", test)) { in test_copy()
160 "remote -> vram bo first offset should be copied", test); in test_copy()
163 "remote -> vram bo offset should be copied", test); in test_copy()
168 xe_map_memset(xe, &remote->vmap, 0, 0xd0, remote->size); in test_copy()
171 fence = xe_migrate_copy(m, bo, remote, bo->ttm.resource, in test_copy()
172 remote->ttm.resource, false); in test_copy()
173 if (!sanity_fence_failed(xe, fence, big ? "Copying big bo vram -> remote" : in test_copy()
174 "Copying small bo vram -> remote", test)) { in test_copy()
175 retval = xe_map_rd(xe, &remote->vmap, 0, u64); in test_copy()
177 "vram -> remote bo first offset should be copied", test); in test_copy()
178 retval = xe_map_rd(xe, &remote->vmap, bo->size - 8, u64); in test_copy()
180 "vram -> remote bo last offset should be copied", test); in test_copy()
184 xe_bo_vunmap(remote); in test_copy()
186 xe_bo_unlock(remote); in test_copy()
187 xe_bo_put(remote); in test_copy()