Lines Matching defs:wa_ctx
867 const struct i915_ctx_workarounds * const wa_ctx = &engine->wa_ctx;
869 if (wa_ctx->per_ctx.size) {
870 const u32 ggtt_offset = i915_ggtt_offset(wa_ctx->vma);
874 (ggtt_offset + wa_ctx->per_ctx.offset) | 0x01;
877 if (wa_ctx->indirect_ctx.size) {
879 i915_ggtt_offset(wa_ctx->vma) +
880 wa_ctx->indirect_ctx.offset,
881 wa_ctx->indirect_ctx.size);
1562 GEM_BUG_ON(engine->wa_ctx.indirect_ctx.size);
1665 * and at this point we don't have multiple wa_ctx batch buffers.
1817 engine->wa_ctx.vma = vma;
1827 i915_vma_unpin_and_release(&engine->wa_ctx.vma, 0);
1834 struct i915_ctx_workarounds *wa_ctx = &engine->wa_ctx;
1836 &wa_ctx->indirect_ctx, &wa_ctx->per_ctx
1869 if (!engine->wa_ctx.vma)
1874 err = i915_gem_object_lock(wa_ctx->vma->obj, &ww);
1876 err = i915_ggtt_pin(wa_ctx->vma, &ww, 0, PIN_HIGH);
1880 batch = i915_gem_object_pin_map(wa_ctx->vma->obj, I915_MAP_WB);
1905 __i915_gem_object_flush_map(wa_ctx->vma->obj, 0, batch_ptr - batch);
1906 __i915_gem_object_release_map(wa_ctx->vma->obj);
1908 /* Verify that we can handle failure to setup the wa_ctx */
1914 i915_vma_unpin(wa_ctx->vma);
1924 i915_vma_put(engine->wa_ctx.vma);
1927 memset(wa_ctx, 0, sizeof(*wa_ctx));