Skip to content

Commit 8ce560d

Browse files
ShuichengLinmbrost05
authored andcommitted
drm/xe: Remove unused code in devcoredump_snapshot()
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 <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Cc: Rodrigo Vivi <[email protected]> Signed-off-by: Shuicheng Lin <[email protected]> Signed-off-by: Matthew Brost <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b2c4ac2 commit 8ce560d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/gpu/drm/xe/xe_devcoredump.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,9 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump,
313313
{
314314
struct xe_devcoredump_snapshot *ss = &coredump->snapshot;
315315
struct xe_guc *guc = exec_queue_to_guc(q);
316-
u32 adj_logical_mask = q->logical_mask;
317-
u32 width_mask = (0x1 << q->width) - 1;
318316
const char *process_name = "no process";
319-
320317
unsigned int fw_ref;
321318
bool cookie;
322-
int i;
323319

324320
ss->snapshot_time = ktime_get_real();
325321
ss->boot_time = ktime_get_boottime();
@@ -335,14 +331,6 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump,
335331
INIT_WORK(&ss->work, xe_devcoredump_deferred_snap_work);
336332

337333
cookie = dma_fence_begin_signalling();
338-
for (i = 0; q->width > 1 && i < XE_HW_ENGINE_MAX_INSTANCE;) {
339-
if (adj_logical_mask & BIT(i)) {
340-
adj_logical_mask |= width_mask << i;
341-
i += q->width;
342-
} else {
343-
++i;
344-
}
345-
}
346334

347335
/* keep going if fw fails as we still want to save the memory and SW data */
348336
fw_ref = xe_force_wake_get(gt_to_fw(q->gt), XE_FORCEWAKE_ALL);

0 commit comments

Comments
 (0)