]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe: Delete unused GuC submission_state.suspend
authorMatthew Brost <matthew.brost@intel.com>
Thu, 25 Apr 2024 05:47:47 +0000 (22:47 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 25 Apr 2024 21:27:19 +0000 (14:27 -0700)
GuC submission_state.suspend is unused, delete it.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425054747.1918811-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_guc_types.h

index 93e1ee183e4aee41fcf650c9154f4e40a113d77b..8f409c9e0f3c69810d5eca0bcb2b769f3f7454d9 100644 (file)
@@ -273,7 +273,6 @@ static void primelockdep(struct xe_guc *guc)
        fs_reclaim_acquire(GFP_KERNEL);
 
        mutex_lock(&guc->submission_state.lock);
-       might_lock(&guc->submission_state.suspend.lock);
        mutex_unlock(&guc->submission_state.lock);
 
        fs_reclaim_release(GFP_KERNEL);
@@ -301,9 +300,6 @@ int xe_guc_submit_init(struct xe_guc *guc)
 
        xa_init(&guc->submission_state.exec_queue_lookup);
 
-       spin_lock_init(&guc->submission_state.suspend.lock);
-       guc->submission_state.suspend.context = dma_fence_context_alloc(1);
-
        primelockdep(guc);
 
        return drmm_add_action_or_reset(&xe->drm, guc_submit_fini, guc);
index 82bd93f7867d1344ff477571e9192bba921207bb..546ac6350a31ffce73680cd217b9b8500aebeeb0 100644 (file)
@@ -72,15 +72,6 @@ struct xe_guc {
                atomic_t stopped;
                /** @submission_state.lock: protects submission state */
                struct mutex lock;
-               /** @submission_state.suspend: suspend fence state */
-               struct {
-                       /** @submission_state.suspend.lock: suspend fences lock */
-                       spinlock_t lock;
-                       /** @submission_state.suspend.context: suspend fences context */
-                       u64 context;
-                       /** @submission_state.suspend.seqno: suspend fences seqno */
-                       u32 seqno;
-               } suspend;
 #ifdef CONFIG_PROVE_LOCKING
 #define NUM_SUBMIT_WQ  256
                /** @submission_state.submit_wq_pool: submission ordered workqueues pool */