diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-05-16 17:54:15 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:33:53 +0300 |
commit | 01a87f3181caab1b5eca8ae5a7436c1031b6f5a8 (patch) | |
tree | d7b723af8ea1fb4413fbd18c7064f4031ca6a8e6 /drivers/gpu/drm/xe/xe_devcoredump_types.h | |
parent | a4db55558785191a9ff0d295ccf181f18856cb58 (diff) | |
download | linux-01a87f3181caab1b5eca8ae5a7436c1031b6f5a8.tar.xz |
drm/xe: Add HW Engine snapshot to xe_devcoredump.
Let's continue to add our existent simple logs to devcoredump one
by one. Any format change should come on follow-up work.
v2: remove unnecessary, and now duplicated, dma_fence annotation. (Matthew)
v3: avoid for_each with faulty_engine since that can be already freed at
the time of the read/free. Instead, iterate in the full array of
hw_engines. (Kasan)
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_devcoredump_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_devcoredump_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_devcoredump_types.h b/drivers/gpu/drm/xe/xe_devcoredump_types.h index 7c6453224139..350b905d1797 100644 --- a/drivers/gpu/drm/xe/xe_devcoredump_types.h +++ b/drivers/gpu/drm/xe/xe_devcoredump_types.h @@ -9,6 +9,8 @@ #include <linux/ktime.h> #include <linux/mutex.h> +#include "xe_hw_engine_types.h" + struct xe_device; /** @@ -29,6 +31,8 @@ struct xe_devcoredump_snapshot { struct xe_guc_ct_snapshot *ct; /** @ge: Guc Engine snapshot */ struct xe_guc_submit_engine_snapshot *ge; + /** @hwe: HW Engine snapshot array */ + struct xe_hw_engine_snapshot *hwe[XE_NUM_HW_ENGINES]; }; /** |