[PATCH v4 0/6] drm/xe/guc: Add LFD format output for guc log

Zhanjun Dong zhanjun.dong at intel.com
Wed Apr 23 21:58:15 UTC 2025


Add new debugfs entry "guc_log_lfd", which supports output guc log
in LFD(Log Format Descriptors) format.
Add GuC crash dump data empty check. LFD will only include crash dump
section when data is not empty.

Signed-off-by: Zhanjun Dong <zhanjun.dong at intel.com>

---
Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt at intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>

Changes in v4:
Rebase with debugfs changes (Michal)
Drop "_t" suffix in structures name (Matthew, Michal)
Split log abi header as seperate patch (Michal)
Fix static vaiable multiple instance access issue (Michal)
Switched to fixed chunk size lfd buffer, removed buffer size check for KLVs
Removed log event buffer content copy, read from log buffer chunks directly
Changes in v3:
Split ABI header, debugfs and GuC code out as seperate patch
Remove bit fields in structure define, changed to GENMASK
Remove crash_dumped flag, changed to dump data empty check
Changes in v2:
Split GuC init config abi defines out from LFD abi header file
Split crash dump detect as seperate patch
Add size check for LFD functions
Make abi header comments kernel-doc style

Zhanjun Dong (6):
  drm/xe/guc: Add log init config abi definitions
  drm/xe/guc: Add LFD related abi definitions
  drm/xe/guc: Add new debugfs entry for lfd format output
  drm/xe/guc: Add GuC log init config in LFD format
  drm/xe/guc: Add GuC log event buffer output in LFD format
  drm/xe/guc: Only add GuC crash dump if available

 drivers/gpu/drm/xe/abi/guc_log_lfd_abi.h | 279 ++++++++++++++++
 drivers/gpu/drm/xe/abi/guc_log_lic_abi.h | 117 +++++++
 drivers/gpu/drm/xe/xe_guc_debugfs.c      |   7 +
 drivers/gpu/drm/xe/xe_guc_log.c          | 391 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_log.h          |   1 +
 5 files changed, 795 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/abi/guc_log_lfd_abi.h
 create mode 100644 drivers/gpu/drm/xe/abi/guc_log_lic_abi.h

-- 
2.34.1



More information about the Intel-xe mailing list