mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/i915/guc: Record CTB info in error logs
When debugging GuC communication issues, it is useful to have the CTB info available. So add the state and buffer contents to the error capture log. Also, add a sub-structure for the GuC specific error capture info as it is now becoming numerous. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220728022028.2190627-5-John.C.Harrison@Intel.com
This commit is contained in:
@@ -125,6 +125,15 @@ struct intel_engine_coredump {
|
||||
struct intel_engine_coredump *next;
|
||||
};
|
||||
|
||||
struct intel_ctb_coredump {
|
||||
u32 raw_head, head;
|
||||
u32 raw_tail, tail;
|
||||
u32 raw_status;
|
||||
u32 desc_offset;
|
||||
u32 cmds_offset;
|
||||
u32 size;
|
||||
};
|
||||
|
||||
struct intel_gt_coredump {
|
||||
const struct intel_gt *_gt;
|
||||
bool awake;
|
||||
@@ -165,9 +174,14 @@ struct intel_gt_coredump {
|
||||
struct intel_uc_coredump {
|
||||
struct intel_uc_fw guc_fw;
|
||||
struct intel_uc_fw huc_fw;
|
||||
struct i915_vma_coredump *guc_log;
|
||||
u32 timestamp;
|
||||
bool is_guc_capture;
|
||||
struct guc_info {
|
||||
struct intel_ctb_coredump ctb[2];
|
||||
struct i915_vma_coredump *vma_ctb;
|
||||
struct i915_vma_coredump *vma_log;
|
||||
u32 timestamp;
|
||||
u16 last_fence;
|
||||
bool is_guc_capture;
|
||||
} guc;
|
||||
} *uc;
|
||||
|
||||
struct intel_gt_coredump *next;
|
||||
|
||||
Reference in New Issue
Block a user