]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/devcoredump: Drop a FIXME in devcoredump
authorShekhar Chauhan <shekhar.chauhan@intel.com>
Tue, 12 May 2026 05:55:08 +0000 (11:25 +0530)
committerBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Wed, 13 May 2026 06:32:53 +0000 (12:02 +0530)
The FIXME says that xe_engine_snapshot_print.. is accessing persistent
driver data, unlike what the FIXME says that it does. Drop the FIXME
since the current code is not going to access the hardware while
dumping.
More details about this patch:
https://patchwork.freedesktop.org/patch/703884/?series=161407&rev=1
The starting two feedbacks make sense and the original patch is wrong
in adding those changes, but the last feedback is the one which
highlights the point.

Signed-off-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Link: https://patch.msgid.link/20260512055508.1380191-1-shekhar.chauhan@intel.com
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
drivers/gpu/drm/xe/xe_guc_capture.c

index bc49e40165a357901066bad635479ec5d378bc5d..21f7caf9ea08499c2d100d4657e0c6668ade04c0 100644 (file)
@@ -1841,12 +1841,6 @@ void xe_engine_snapshot_print(struct xe_hw_engine_snapshot *snapshot, struct drm
                   str_yes_no(snapshot->kernel_reserved));
 
        for (type = GUC_STATE_CAPTURE_TYPE_GLOBAL; type < GUC_STATE_CAPTURE_TYPE_MAX; type++) {
-               /*
-                * FIXME: During devcoredump print we should avoid accessing the
-                * driver pointers for gt or engine. Printing should be done only
-                * using the snapshot captured. Here we are accessing the gt
-                * pointer. It should be fixed.
-                */
                list = xe_guc_capture_get_reg_desc_list(gt, GUC_CAPTURE_LIST_INDEX_PF, type,
                                                        capture_class, false);
                snapshot_print_by_list_order(snapshot, p, type, list);