drm/xe: Remove exec queue bind.fence_*
authorMatthew Brost <matthew.brost@intel.com>
Tue, 13 Feb 2024 04:32:51 +0000 (20:32 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 14 Feb 2024 17:42:47 +0000 (09:42 -0800)
struct xe_exec_queue bind.fence_* members are unused. Remove these.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240213043251.3482928-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_exec_queue_types.h

index 2976635be4d3969c48fd6e66efe5a7bde044837c..da84ac93a55931639d4cbaf9d7dc80f7d1e182e1 100644 (file)
@@ -94,10 +94,6 @@ static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe,
                q->parallel.composite_fence_ctx = dma_fence_context_alloc(1);
                q->parallel.composite_fence_seqno = XE_FENCE_INITIAL_SEQNO;
        }
-       if (q->flags & EXEC_QUEUE_FLAG_VM) {
-               q->bind.fence_ctx = dma_fence_context_alloc(1);
-               q->bind.fence_seqno = XE_FENCE_INITIAL_SEQNO;
-       }
 
        return q;
 }
index 648391961fc45e619c745d59f9f5df55d1c4feb7..3df8571e4a0752dde2bf4ac3a45acfaa43672f4c 100644 (file)
@@ -115,26 +115,15 @@ struct xe_exec_queue {
                struct list_head link;
        } persistent;
 
-       union {
-               /**
-                * @parallel: parallel submission state
-                */
-               struct {
-                       /** @parallel.composite_fence_ctx: context composite fence */
-                       u64 composite_fence_ctx;
-                       /** @parallel.composite_fence_seqno: seqno for composite fence */
-                       u32 composite_fence_seqno;
-               } parallel;
-               /**
-                * @bind: bind submission state
-                */
-               struct {
-                       /** @bind.fence_ctx: context bind fence */
-                       u64 fence_ctx;
-                       /** @bind.fence_seqno: seqno for bind fence */
-                       u32 fence_seqno;
-               } bind;
-       };
+       /**
+        * @parallel: parallel submission state
+        */
+       struct {
+               /** @parallel.composite_fence_ctx: context composite fence */
+               u64 composite_fence_ctx;
+               /** @parallel.composite_fence_seqno: seqno for composite fence */
+               u32 composite_fence_seqno;
+       } parallel;
 
        /** @sched_props: scheduling properties */
        struct {