[RFC 2/5] drm/xe: Trigger a devcoredump capture on a GT reset
John.C.Harrison at Intel.com
John.C.Harrison at Intel.com
Sat Nov 9 01:59:31 UTC 2024
From: John Harrison <John.C.Harrison at Intel.com>
The GT reset code does not have access to a scheduler job, and is
usually called from some error condition disconnected from the job
submisson flow. Hence it did not generate a devcoredump. However,
devcoredumps can now be triggered without a job, so do so.
Signed-off-by: John Harrison <John.C.Harrison at Intel.com>
---
drivers/gpu/drm/xe/xe_gt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index d6744be01a68..2fa1d0f07850 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -19,6 +19,7 @@
#include "xe_bb.h"
#include "xe_bo.h"
#include "xe_device.h"
+#include "xe_devcoredump.h"
#include "xe_exec_queue.h"
#include "xe_execlist.h"
#include "xe_force_wake.h"
@@ -846,6 +847,9 @@ void xe_gt_reset_async(struct xe_gt *gt)
xe_gt_info(gt, "reset queued\n");
queue_work(gt->ordered_wq, >->reset.worker);
+
+ /* Capture system state for the user to include in a bug report */
+ xe_devcoredump_for_gt(gt);
}
void xe_gt_suspend_prepare(struct xe_gt *gt)
--
2.47.0
More information about the Intel-xe
mailing list