Lines Matching full:scratch
26 * Note that we also hit this path for the scratch page, and for this in alloc_pt_lmem()
123 if (vm->scratch[0]->base.resv == &vm->_resv) { in i915_vm_lock_objects()
124 return i915_gem_object_lock(vm->scratch[0], ww); in i915_vm_lock_objects()
128 /* We borrowed the scratch page from ggtt, take the top level object */ in i915_vm_lock_objects()
265 static void poison_scratch_page(struct drm_i915_gem_object *scratch) in poison_scratch_page() argument
267 void *vaddr = __px_vaddr(scratch); in poison_scratch_page()
274 memset(vaddr, val, scratch->base.size); in poison_scratch_page()
283 * need to support a 64K scratch page, given that every 16th entry for a in setup_scratch_page()
285 * region, including any PTEs which happen to point to scratch. in setup_scratch_page()
289 * scratch (read-only) between all vm, we create one 64k scratch page in setup_scratch_page()
307 /* We need a single contiguous page for our scratch */ in setup_scratch_page()
316 * Use a non-zero scratch page for debugging. in setup_scratch_page()
326 vm->scratch[0] = obj; in setup_scratch_page()
345 i915_gem_object_put(vm->scratch[i]); in free_scratch()