Lines Matching refs:ppgtt
154 struct i915_ppgtt *ppgtt; in igt_ppgtt_alloc() local
164 ppgtt = i915_ppgtt_create(to_gt(dev_priv), 0); in igt_ppgtt_alloc()
165 if (IS_ERR(ppgtt)) in igt_ppgtt_alloc()
166 return PTR_ERR(ppgtt); in igt_ppgtt_alloc()
168 if (!ppgtt->vm.allocate_va_range) in igt_ppgtt_alloc()
179 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc()
183 err = i915_vm_lock_objects(&ppgtt->vm, &ww); in igt_ppgtt_alloc()
191 err = i915_vm_alloc_pt_stash(&ppgtt->vm, &stash, size); in igt_ppgtt_alloc()
195 err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
197 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
201 ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, 0, size); in igt_ppgtt_alloc()
204 ppgtt->vm.clear_range(&ppgtt->vm, 0, size); in igt_ppgtt_alloc()
206 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
213 err = i915_vm_alloc_pt_stash(&ppgtt->vm, &stash, size - last); in igt_ppgtt_alloc()
217 err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
219 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
223 ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, in igt_ppgtt_alloc()
227 i915_vm_free_pt_stash(&ppgtt->vm, &stash); in igt_ppgtt_alloc()
238 i915_vm_put(&ppgtt->vm); in igt_ppgtt_alloc()
1191 struct i915_ppgtt *ppgtt; in exercise_ppgtt() local
1203 ppgtt = i915_ppgtt_create(to_gt(dev_priv), 0); in exercise_ppgtt()
1204 if (IS_ERR(ppgtt)) { in exercise_ppgtt()
1205 err = PTR_ERR(ppgtt); in exercise_ppgtt()
1208 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt()
1209 assert_vm_alive(&ppgtt->vm); in exercise_ppgtt()
1211 err = func(&ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt()
1213 i915_vm_put(&ppgtt->vm); in exercise_ppgtt()