]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Remove unused code in devcoredump_snapshot()
authorShuicheng Lin <shuicheng.lin@intel.com>
Mon, 7 Jul 2025 00:49:13 +0000 (00:49 +0000)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 8 Jul 2025 22:11:36 +0000 (15:11 -0700)
The deleted code is no longer needed because patch "drm/xe/guc: Plumb
GuC-capture into dev coredump" has removed the related usage code.
Remove the code to tidy up the function.

v2: s/bacause/because

Reviewed-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250707004911.3502904-5-shuicheng.lin@intel.com
drivers/gpu/drm/xe/xe_devcoredump.c

index 7a8af231131808235d9f7bbc8632169e1f194411..94625010abc46cf23654cd02fd11a5c7e75d2703 100644 (file)
@@ -313,13 +313,9 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump,
 {
        struct xe_devcoredump_snapshot *ss = &coredump->snapshot;
        struct xe_guc *guc = exec_queue_to_guc(q);
-       u32 adj_logical_mask = q->logical_mask;
-       u32 width_mask = (0x1 << q->width) - 1;
        const char *process_name = "no process";
-
        unsigned int fw_ref;
        bool cookie;
-       int i;
 
        ss->snapshot_time = ktime_get_real();
        ss->boot_time = ktime_get_boottime();
@@ -335,14 +331,6 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump,
        INIT_WORK(&ss->work, xe_devcoredump_deferred_snap_work);
 
        cookie = dma_fence_begin_signalling();
-       for (i = 0; q->width > 1 && i < XE_HW_ENGINE_MAX_INSTANCE;) {
-               if (adj_logical_mask & BIT(i)) {
-                       adj_logical_mask |= width_mask << i;
-                       i += q->width;
-               } else {
-                       ++i;
-               }
-       }
 
        /* keep going if fw fails as we still want to save the memory and SW data */
        fw_ref = xe_force_wake_get(gt_to_fw(q->gt), XE_FORCEWAKE_ALL);