Displaying 9 results from an estimated 9 matches for "drm_gpuva_op_map".
2023 Jun 29
3
[PATCH drm-next v6 02/13] drm: manager to keep track of GPUs VA mappings
...struct drm_gpuva_op *op
+ *
+ * driver_lock_va_space();
+ * ops = drm_gpuva_sm_map_ops_create(mgr, addr, range,
+ * obj, offset);
+ * if (IS_ERR(ops))
+ * return PTR_ERR(ops);
+ *
+ * drm_gpuva_for_each_op(op, ops) {
+ * struct drm_gpuva *va;
+ *
+ * switch (op->op) {
+ * case DRM_GPUVA_OP_MAP:
+ * va = driver_gpuva_alloc();
+ * if (!va)
+ * ; // unwind previous VA space updates,
+ * // free memory and unlock
+ *
+ * driver_vm_map();
+ * drm_gpuva_map(mgr, va, &op->map);
+ * drm_gpuva_link(va);
+ *
+ * break;
+ * case DRM_GPUVA_OP_REMAP: {
+ * s...
2023 Jul 13
1
[PATCH drm-next v7 02/13] drm: manager to keep track of GPUs VA mappings
...struct drm_gpuva_op *op
+ *
+ * driver_lock_va_space();
+ * ops = drm_gpuva_sm_map_ops_create(mgr, addr, range,
+ * obj, offset);
+ * if (IS_ERR(ops))
+ * return PTR_ERR(ops);
+ *
+ * drm_gpuva_for_each_op(op, ops) {
+ * struct drm_gpuva *va;
+ *
+ * switch (op->op) {
+ * case DRM_GPUVA_OP_MAP:
+ * va = driver_gpuva_alloc();
+ * if (!va)
+ * ; // unwind previous VA space updates,
+ * // free memory and unlock
+ *
+ * driver_vm_map();
+ * drm_gpuva_map(mgr, va, &op->map);
+ * drm_gpuva_link(va);
+ *
+ * break;
+ * case DRM_GPUVA_OP_REMAP: {
+ * s...
2025 Feb 03
1
[PATCH 0/4] drm/gpuvm: Add support for single-page-filled mappings
...jects),
> > but I'll leave that to the Xe folks.
> >
> > Signed-off-by: Asahi Lina <lina at asahilina.net>
> > ---
> > Asahi Lina (4):
> > drm/gpuvm: Add a flags argument to drm_gpuvm_sm_map[_*]
> > drm/gpuvm: Plumb through flags into drm_gpuva_op_map
> > drm/gpuvm: Add DRM_GPUVA_SINGLE_PAGE flag and logic
> > drm/gpuvm: Plumb through flags into drm_gpuva_init
>
> Without looking into any details yet:
>
> This is a bit of tricky one, since we're not even close to having a user for
> this new feature...
2023 Jul 20
2
[PATCH drm-misc-next v8 01/12] drm: manager to keep track of GPUs VA mappings
...struct drm_gpuva_op *op
+ *
+ * driver_lock_va_space();
+ * ops = drm_gpuva_sm_map_ops_create(mgr, addr, range,
+ * obj, offset);
+ * if (IS_ERR(ops))
+ * return PTR_ERR(ops);
+ *
+ * drm_gpuva_for_each_op(op, ops) {
+ * struct drm_gpuva *va;
+ *
+ * switch (op->op) {
+ * case DRM_GPUVA_OP_MAP:
+ * va = driver_gpuva_alloc();
+ * if (!va)
+ * ; // unwind previous VA space updates,
+ * // free memory and unlock
+ *
+ * driver_vm_map();
+ * drm_gpuva_map(mgr, va, &op->map);
+ * drm_gpuva_link(va);
+ *
+ * break;
+ * case DRM_GPUVA_OP_REMAP: {
+ * stru...
2025 Feb 02
1
[PATCH 0/4] drm/gpuvm: Add support for single-page-filled mappings
...he map step through to drm_gpuva objects),
> but I'll leave that to the Xe folks.
>
> Signed-off-by: Asahi Lina <lina at asahilina.net>
> ---
> Asahi Lina (4):
> drm/gpuvm: Add a flags argument to drm_gpuvm_sm_map[_*]
> drm/gpuvm: Plumb through flags into drm_gpuva_op_map
> drm/gpuvm: Add DRM_GPUVA_SINGLE_PAGE flag and logic
> drm/gpuvm: Plumb through flags into drm_gpuva_init
Without looking into any details yet:
This is a bit of tricky one, since we're not even close to having a user for
this new feature upstream yet, are we?
I wonder if w...
2025 Feb 03
1
[PATCH 0/4] drm/gpuvm: Add support for single-page-filled mappings
...leave that to the Xe folks.
> > >
> > > Signed-off-by: Asahi Lina <lina at asahilina.net>
> > > ---
> > > Asahi Lina (4):
> > > drm/gpuvm: Add a flags argument to drm_gpuvm_sm_map[_*]
> > > drm/gpuvm: Plumb through flags into drm_gpuva_op_map
> > > drm/gpuvm: Add DRM_GPUVA_SINGLE_PAGE flag and logic
> > > drm/gpuvm: Plumb through flags into drm_gpuva_init
> >
> > Without looking into any details yet:
> >
> > This is a bit of tricky one, since we're not even close to having a...
2025 Feb 03
1
[PATCH 0/4] drm/gpuvm: Add support for single-page-filled mappings
...gt; > > >
> > > > Signed-off-by: Asahi Lina <lina at asahilina.net>
> > > > ---
> > > > Asahi Lina (4):
> > > > drm/gpuvm: Add a flags argument to drm_gpuvm_sm_map[_*]
> > > > drm/gpuvm: Plumb through flags into drm_gpuva_op_map
> > > > drm/gpuvm: Add DRM_GPUVA_SINGLE_PAGE flag and logic
> > > > drm/gpuvm: Plumb through flags into drm_gpuva_init
> > >
> > > Without looking into any details yet:
> > >
> > > This is a bit of tricky one, since we...
2023 Aug 20
3
[PATCH drm-misc-next 0/3] [RFC] DRM GPUVA Manager GPU-VM features
So far the DRM GPUVA manager offers common infrastructure to track GPU VA
allocations and mappings, generically connect GPU VA mappings to their
backing buffers and perform more complex mapping operations on the GPU VA
space.
However, there are more design patterns commonly used by drivers, which
can potentially be generalized in order to make the DRM GPUVA manager
represent a basic GPU-VM
2025 Feb 03
0
[PATCH 0/4] drm/gpuvm: Add support for single-page-filled mappings
...e Xe folks.
> >>>
> >>> Signed-off-by: Asahi Lina <lina at asahilina.net>
> >>> ---
> >>> Asahi Lina (4):
> >>> drm/gpuvm: Add a flags argument to drm_gpuvm_sm_map[_*]
> >>> drm/gpuvm: Plumb through flags into drm_gpuva_op_map
> >>> drm/gpuvm: Add DRM_GPUVA_SINGLE_PAGE flag and logic
> >>> drm/gpuvm: Plumb through flags into drm_gpuva_init
> >>
> >> Without looking into any details yet:
> >>
> >> This is a bit of tricky one, since we're not e...