]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/xe: Remove obsolete async_ops from struct xe_vm
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 17 Jan 2024 11:09:08 +0000 (13:09 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 29 Feb 2024 14:54:05 +0000 (09:54 -0500)
When sync binds were reworked and worker removed, async_ops became
obsolete. Remove it.

Fixes: f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds")
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240117110908.2362615-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/xe/xe_vm_types.h

index 4c4a569bde3dc2f3ab557a15e8d856224f3d4b8c..79b5cab57711995a6dc3938f5269d73efddee95e 100644 (file)
@@ -196,30 +196,6 @@ struct xe_vm {
         */
        struct xe_range_fence_tree rftree[XE_MAX_TILES_PER_DEVICE];
 
-       /** @async_ops: async VM operations (bind / unbinds) */
-       struct {
-               /** @list: list of pending async VM ops */
-               struct list_head pending;
-               /** @work: worker to execute async VM ops */
-               struct work_struct work;
-               /** @lock: protects list of pending async VM ops and fences */
-               spinlock_t lock;
-               /** @fence: fence state */
-               struct {
-                       /** @context: context of async fence */
-                       u64 context;
-                       /** @seqno: seqno of async fence */
-                       u32 seqno;
-               } fence;
-               /** @error: error state for async VM ops */
-               int error;
-               /**
-                * @munmap_rebind_inflight: an munmap style VM bind is in the
-                * middle of a set of ops which requires a rebind at the end.
-                */
-               bool munmap_rebind_inflight;
-       } async_ops;
-
        const struct xe_pt_ops *pt_ops;
 
        /** @userptr: user pointer state */