Home
last modified time | relevance | path

Searched refs:vma_res (Results 1 – 18 of 18) sorted by relevance

/linux-6.3-rc2/drivers/gpu/drm/i915/
A Di915_vma_resource.c56 return vma_res ? vma_res : ERR_PTR(-ENOMEM); in i915_vma_resource_alloc()
65 if (vma_res) in i915_vma_resource_free()
112 vm = vma_res->vm; in __i915_vma_resource_unhold()
113 if (vma_res->wakeref) in __i915_vma_resource_unhold()
116 vma_res->vm = NULL; in __i915_vma_resource_unhold()
123 if (vma_res->bi.pages_rsgt) in __i915_vma_resource_unhold()
182 vma_res->ops->unbind_vma(vm, vma_res); in i915_vma_resource_unbind_work()
196 &vma_res->unbind_fence; in i915_vma_resource_fence_notify()
235 vma_res->tlb = tlb; in i915_vma_resource_unbind()
241 if (vma_res->needs_wakeref) in i915_vma_resource_unbind()
[all …]
A Di915_vma_resource.h156 return vma_res; in i915_vma_resource_get()
207 vma_res->vm = vm; in i915_vma_resource_init()
208 vma_res->bi.pages = pages; in i915_vma_resource_init()
213 vma_res->bi.lmem = lmem; in i915_vma_resource_init()
215 vma_res->mr = mr; in i915_vma_resource_init()
217 vma_res->ops = ops; in i915_vma_resource_init()
218 vma_res->private = private; in i915_vma_resource_init()
219 vma_res->start = start; in i915_vma_resource_init()
221 vma_res->vma_size = size; in i915_vma_resource_init()
222 vma_res->guard = guard; in i915_vma_resource_init()
[all …]
A Di915_vma.c325 struct i915_vma_resource *vma_res = vw->vma_res; in __vma_bind() local
336 vma_res->ops->bind_vma(vma_res->vm, &vw->stash, in __vma_bind()
348 if (vw->vma_res) in __vma_release()
456 i915_vma_resource_free(vma_res); in i915_vma_bind()
461 i915_vma_resource_free(vma_res); in i915_vma_bind()
497 if (vma->resource || !vma_res) { in i915_vma_bind()
503 vma->resource = vma_res; in i915_vma_bind()
1454 if (IS_ERR(vma_res)) { in i915_vma_pin_ww()
1455 err = PTR_ERR(vma_res); in i915_vma_pin_ww()
1521 flags, work, vma_res); in i915_vma_pin_ww()
[all …]
A Di915_gpu_error.c1089 if (!vma_res || !vma_res->bi.pages || !compress) in i915_vma_coredump_create()
1105 dst->gtt_offset = vma_res->start; in i915_vma_coredump_create()
1106 dst->gtt_size = vma_res->node_size; in i915_vma_coredump_create()
1137 } else if (vma_res->bi.lmem) { in i915_vma_coredump_create()
1410 struct i915_vma_resource *vma_res; member
1422 if (!vma_res) in capture_vma_snapshot()
1435 c->vma_res = i915_vma_resource_get(vma_res); in capture_vma_snapshot()
1491 struct i915_vma_resource *vma_res; in create_vma_coredump() local
1497 vma_res = vma->resource; in create_vma_coredump()
1592 struct i915_vma_resource *vma_res = this->vma_res; in intel_engine_coredump_add_vma() local
[all …]
A Di915_vma.h256 struct i915_vma_resource *vma_res);
481 void i915_vma_resource_init_from_vma(struct i915_vma_resource *vma_res,
A Di915_request.h55 struct i915_vma_resource *vma_res; member
A Di915_request.c341 i915_vma_resource_put(capture->vma_res); in i915_request_free_capture_list()
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/
A Dintel_ppgtt.c183 struct i915_vma_resource *vma_res, in ppgtt_bind_vma() argument
189 if (!vma_res->allocated) { in ppgtt_bind_vma()
191 vma_res->vma_size); in ppgtt_bind_vma()
192 vma_res->allocated = true; in ppgtt_bind_vma()
197 if (vma_res->bi.readonly) in ppgtt_bind_vma()
199 if (vma_res->bi.lmem) in ppgtt_bind_vma()
207 struct i915_vma_resource *vma_res) in ppgtt_unbind_vma() argument
209 if (!vma_res->allocated) in ppgtt_unbind_vma()
212 vm->clear_range(vm, vma_res->start, vma_res->vma_size); in ppgtt_unbind_vma()
213 if (vma_res->tlb) in ppgtt_unbind_vma()
[all …]
A Dintel_ggtt.c273 gte += (vma_res->start - vma_res->guard) / I915_GTT_PAGE_SIZE; in gen8_ggtt_insert_entries()
277 end += (vma_res->node_size + vma_res->guard) / I915_GTT_PAGE_SIZE; in gen8_ggtt_insert_entries()
327 gte += (vma_res->start - vma_res->guard) / I915_GTT_PAGE_SIZE; in gen6_ggtt_insert_entries()
332 end += (vma_res->node_size + vma_res->guard) / I915_GTT_PAGE_SIZE; in gen6_ggtt_insert_entries()
452 vma_res->bound_flags |= flags; in intel_ggtt_bind_vma()
456 if (vma_res->bi.readonly) in intel_ggtt_bind_vma()
458 if (vma_res->bi.lmem) in intel_ggtt_bind_vma()
468 vm->clear_range(vm, vma_res->start, vma_res->vma_size); in intel_ggtt_unbind_vma()
609 if (vma_res->bi.readonly) in aliasing_gtt_bind_vma()
619 vma_res->bound_flags |= flags; in aliasing_gtt_bind_vma()
[all …]
A Dgen8_ppgtt.c471 struct i915_vma_resource *vma_res, in xehpsdv_ppgtt_insert_huge() argument
478 u64 start = vma_res->start; in xehpsdv_ppgtt_insert_huge()
479 u64 end = start + vma_res->vma_size; in xehpsdv_ppgtt_insert_huge()
573 vma_res->page_sizes_gtt |= page_size; in xehpsdv_ppgtt_insert_huge()
578 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert_huge() argument
585 u64 start = vma_res->start; in gen8_ppgtt_insert_huge()
668 vma_res->node_size, in gen8_ppgtt_insert_huge()
697 vma_res->page_sizes_gtt |= page_size; in gen8_ppgtt_insert_huge()
702 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert() argument
707 struct sgt_dma iter = sgt_dma(vma_res); in gen8_ppgtt_insert()
[all …]
A Dgen6_ppgtt.c111 struct i915_vma_resource *vma_res, in gen6_ppgtt_insert_entries() argument
117 unsigned int first_entry = vma_res->start / I915_GTT_PAGE_SIZE; in gen6_ppgtt_insert_entries()
121 struct sgt_dma iter = sgt_dma(vma_res); in gen6_ppgtt_insert_entries()
147 vma_res->page_sizes_gtt = I915_GTT_PAGE_SIZE; in gen6_ppgtt_insert_entries()
280 struct i915_vma_resource *vma_res, in pd_vma_bind() argument
285 struct gen6_ppgtt *ppgtt = vma_res->private; in pd_vma_bind()
286 u32 ggtt_offset = vma_res->start / I915_GTT_PAGE_SIZE; in pd_vma_bind()
295 struct i915_vma_resource *vma_res) in pd_vma_unbind() argument
297 struct gen6_ppgtt *ppgtt = vma_res->private; in pd_vma_unbind()
A Dintel_gtt.h218 struct i915_vma_resource *vma_res,
226 struct i915_vma_resource *vma_res);
307 struct i915_vma_resource *vma_res,
316 struct i915_vma_resource *vma_res,
563 struct i915_vma_resource *vma_res,
567 struct i915_vma_resource *vma_res);
641 struct i915_vma_resource *vma_res,
645 struct i915_vma_resource *vma_res);
668 } sgt_dma(struct i915_vma_resource *vma_res) { in sgt_dma() argument
669 struct scatterlist *sg = vma_res->bi.pages->sgl; in sgt_dma()
A Dintel_ggtt_gmch.c31 struct i915_vma_resource *vma_res, in gmch_ggtt_insert_entries() argument
38 intel_gmch_gtt_insert_sg_entries(vma_res->bi.pages, vma_res->start >> PAGE_SHIFT, in gmch_ggtt_insert_entries()
A Dintel_engine_cs.c2082 struct i915_vma_resource *vma_res = rq->batch_res; in print_request_ring() local
2089 vma_res ? upper_32_bits(vma_res->start) : ~0u, in print_request_ring()
2090 vma_res ? lower_32_bits(vma_res->start) : ~0u); in print_request_ring()
/linux-6.3-rc2/drivers/gpu/drm/i915/display/
A Dintel_dpt.c55 struct i915_vma_resource *vma_res, in dpt_insert_entries() argument
71 i = vma_res->start / I915_GTT_PAGE_SIZE; in dpt_insert_entries()
72 for_each_sgt_daddr(addr, sgt_iter, vma_res->bi.pages) in dpt_insert_entries()
83 struct i915_vma_resource *vma_res, in dpt_bind_vma() argument
89 if (vma_res->bound_flags) in dpt_bind_vma()
94 if (vm->has_read_only && vma_res->bi.readonly) in dpt_bind_vma()
96 if (vma_res->bi.lmem) in dpt_bind_vma()
99 vm->insert_entries(vm, vma_res, cache_level, pte_flags); in dpt_bind_vma()
101 vma_res->page_sizes_gtt = I915_GTT_PAGE_SIZE; in dpt_bind_vma()
112 struct i915_vma_resource *vma_res) in dpt_unbind_vma() argument
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/
A Dmock_gtt.c36 struct i915_vma_resource *vma_res, in mock_insert_entries() argument
43 struct i915_vma_resource *vma_res, in mock_bind_ppgtt() argument
48 vma_res->bound_flags |= flags; in mock_bind_ppgtt()
52 struct i915_vma_resource *vma_res) in mock_unbind_ppgtt() argument
96 struct i915_vma_resource *vma_res, in mock_bind_ggtt() argument
103 struct i915_vma_resource *vma_res) in mock_unbind_ggtt() argument
A Di915_gem_gtt.c1505 if (IS_ERR(vma_res)) in reserve_gtt_with_resource()
1517 kfree(vma_res); in reserve_gtt_with_resource()
1686 if (IS_ERR(vma_res)) in insert_gtt_with_resource()
1696 kfree(vma_res); in insert_gtt_with_resource()
2170 kfree(vma_res); in igt_cs_tlb()
2185 kfree(vma_res); in igt_cs_tlb()
2197 kfree(vma_res); in igt_cs_tlb()
2203 kfree(vma_res); in igt_cs_tlb()
2212 kfree(vma_res); in igt_cs_tlb()
2236 kfree(vma_res); in igt_cs_tlb()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/
A Di915_gem_execbuffer.c2019 capture->vma_res = i915_vma_resource_get(vma->resource); in eb_capture_stage()

Completed in 47 milliseconds