diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-05-16 17:54:13 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:33:52 +0300 |
commit | 3847ec03ddd4b688cd02929356ee979acddfa03f (patch) | |
tree | d68027946cb58d28ea8ef981074b0a230f755b9c /drivers/gpu/drm/xe/xe_devcoredump.c | |
parent | bbdf97c140064975552bedb70b2b4329ab758f0b (diff) | |
download | linux-3847ec03ddd4b688cd02929356ee979acddfa03f.tar.xz |
drm/xe: Add GuC Submit Engine snapshot to xe_devcoredump.
Let's start to move our existent logs to devcoredump one by
one. Any format change should come on follow-up work.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_devcoredump.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_devcoredump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c index b0e3db148ce2..7296c0137b47 100644 --- a/drivers/gpu/drm/xe/xe_devcoredump.c +++ b/drivers/gpu/drm/xe/xe_devcoredump.c @@ -12,6 +12,7 @@ #include "xe_engine.h" #include "xe_gt.h" #include "xe_guc_ct.h" +#include "xe_guc_submit.h" /** * DOC: Xe device coredump @@ -86,6 +87,7 @@ static ssize_t xe_devcoredump_read(char *buffer, loff_t offset, drm_printf(&p, "\n**** GuC CT ****\n"); xe_guc_ct_snapshot_print(coredump->snapshot.ct, &p); + xe_guc_engine_snapshot_print(coredump->snapshot.ge, &p); return count - iter.remain; } @@ -99,6 +101,7 @@ static void xe_devcoredump_free(void *data) return; xe_guc_ct_snapshot_free(coredump->snapshot.ct); + xe_guc_engine_snapshot_free(coredump->snapshot.ge); coredump->captured = false; drm_info(&coredump_to_xe(coredump)->drm, @@ -117,6 +120,7 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump, cookie = dma_fence_begin_signalling(); coredump->snapshot.ct = xe_guc_ct_snapshot_capture(&guc->ct, true); + coredump->snapshot.ge = xe_guc_engine_snapshot_capture(e); dma_fence_end_signalling(cookie); } |