Lines Matching defs:scratch
52 * Note that we also hit this path for the scratch page, and for this
175 if (vm->scratch[0]->base.resv == &vm->_resv) {
176 return i915_gem_object_lock(vm->scratch[0], ww);
180 /* We borrowed the scratch page from ggtt, take the top level object */
321 static void poison_scratch_page(struct drm_i915_gem_object *scratch)
323 void *vaddr = __px_vaddr(scratch);
330 memset(vaddr, val, scratch->base.size);
331 drm_clflush_virt_range(vaddr, scratch->base.size);
340 * need to support a 64K scratch page, given that every 16th entry for a
342 * region, including any PTEs which happen to point to scratch.
346 * scratch (read-only) between all vm, we create one 64k scratch page
365 /* We need a single contiguous page for our scratch */
374 * Use a non-zero scratch page for debugging.
384 vm->scratch[0] = obj;
402 if (!vm->scratch[0])
406 i915_gem_object_put(vm->scratch[i]);