drm/xe: Remove xe_vma_op_unmap
authorMatthew Brost <matthew.brost@intel.com>
Wed, 19 Jul 2023 21:31:21 +0000 (14:31 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:52 +0000 (11:37 -0500)
xe_vma_op_unmap isn't used, remove it.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h

index 8f1ad906d4b0afed3374ec0fb17f63c055c2d936..c2e8d231b9eb058265e2adbcab0f417168900598 100644 (file)
@@ -2520,11 +2520,6 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_engine *e,
                                        xe_vma_size(gpuva_to_vma(op->base.remap.unmap->va));
                                break;
                        case DRM_GPUVA_OP_UNMAP:
-                               op->unmap.start =
-                                       xe_vma_start(gpuva_to_vma(op->base.unmap.va));
-                               op->unmap.range =
-                                       xe_vma_size(gpuva_to_vma(op->base.unmap.va));
-                               break;
                        case DRM_GPUVA_OP_PREFETCH:
                                /* Nothing to do */
                                break;
index f571571d966ac62043ac558d1e31e31a731d809e..21dd0433a6a078bb8c6e5c477cffb27d7586d83e 100644 (file)
@@ -326,14 +326,6 @@ struct xe_vma_op_map {
        bool is_null;
 };
 
-/** struct xe_vma_op_unmap - VMA unmap operation */
-struct xe_vma_op_unmap {
-       /** @start: start of the VMA unmap */
-       u64 start;
-       /** @range: range of the VMA unmap */
-       u64 range;
-};
-
 /** struct xe_vma_op_remap - VMA remap operation */
 struct xe_vma_op_remap {
        /** @prev: VMA preceding part of a split mapping */
@@ -401,8 +393,6 @@ struct xe_vma_op {
        union {
                /** @map: VMA map operation specific data */
                struct xe_vma_op_map map;
-               /** @unmap: VMA unmap operation specific data */
-               struct xe_vma_op_unmap unmap;
                /** @remap: VMA remap operation specific data */
                struct xe_vma_op_remap remap;
                /** @prefetch: VMA prefetch operation specific data */