drm/xe: Remove ct->fence_context
authorMatthew Brost <matthew.brost@intel.com>
Fri, 28 Jul 2023 02:10:51 +0000 (19:10 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:39:16 +0000 (11:39 -0500)
This is unused, remove it.

Suggested-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c
drivers/gpu/drm/xe/xe_guc_ct_types.h

index 3f5084c6ffc86c7bf59d10d5a27e849063e29846..d322eadbe75a56a0ee354111916e10b17b51d8f7 100644 (file)
@@ -140,7 +140,6 @@ int xe_guc_ct_init(struct xe_guc_ct *ct)
        mutex_init(&ct->lock);
        spin_lock_init(&ct->fast_lock);
        xa_init(&ct->fence_lookup);
-       ct->fence_context = dma_fence_context_alloc(1);
        INIT_WORK(&ct->g2h_worker, g2h_worker_func);
        init_waitqueue_head(&ct->wq);
        init_waitqueue_head(&ct->g2h_fence_wq);
index dedbd686428ba0f8e28a014897a7faaf189ad8f7..d814d4ee3fc65383406201ecdfc54621b99c281d 100644 (file)
@@ -100,8 +100,6 @@ struct xe_guc_ct {
        bool enabled;
        /** @fence_seqno: G2H fence seqno - 16 bits used by CT */
        u32 fence_seqno;
-       /** @fence_context: context for G2H fence */
-       u64 fence_context;
        /** @fence_lookup: G2H fence lookup */
        struct xarray fence_lookup;
        /** @wq: wait queue used for reliable CT sends and freeing G2H credits */