Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm/xe/guc: shrink and compress GuC snapshot dumps
@ 2026-06-29 17:22 Zhanjun Dong
  2026-06-29 17:22 ` [PATCH v3 1/2] drm/xe: Remove extra newlines from LRC snapshot dump Zhanjun Dong
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Zhanjun Dong @ 2026-06-29 17:22 UTC (permalink / raw)
  To: intel-xe; +Cc: Zhanjun Dong, Julia Filipchuk

GuC snapshot output is currently expensive in both size and latency: large
log buffers are emitted as raw ascii85, and the surrounding dump text
includes a bit of avoidable noise. This series makes xe snapshot dumps more
compact and easier to handle by compressing the large binary payloads,
tightening the textual output, and trimming the default GuC log size.

Select ZSTD_COMPRESS/ZSTD_DECOMPRESS in DRM_XE so the xe module pulls in
the zstd compressor when built.

Reduces the default GuC log buffer from 8MB to 2MB, which still preserves
useful history while cutting dump latency and dmesg load; with typical
compression, the emitted payload drops further.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
---
Cc: Julia Filipchuk <julia.filipchuk@intel.com>
History:
v3: Add Kconfig option to control compression of GuC log and CTB dumps,
    allowing users to choose between reduced dump sizes or lower memory
    usage.
    Remove "reduce GuC log size from 8MB to 2MB" patch, to be added later
    if needed.
    Replace pr_err with xe_gt_err and add more error print.
v2: Fix Kunit test error by selecting ZSTD_DECOMPRESS in DRM_XE config,
    required by zstd_is_error/zstd_get_error_name.

Zhanjun Dong (2):
  drm/xe: Remove extra newlines from LRC snapshot dump
  drm/xe/guc: Compress GuC log and CTB dump with zstd

 drivers/gpu/drm/xe/Kconfig          |  16 +++
 drivers/gpu/drm/xe/xe_devcoredump.c |   4 +-
 drivers/gpu/drm/xe/xe_guc_ct.c      |  19 ++--
 drivers/gpu/drm/xe/xe_guc_ct.h      |   4 +-
 drivers/gpu/drm/xe/xe_guc_log.c     | 161 +++++++++++++++++++++++++---
 drivers/gpu/drm/xe/xe_guc_log.h     |   9 +-
 drivers/gpu/drm/xe/xe_lrc.c         |   4 +-
 7 files changed, 186 insertions(+), 31 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-07-13 18:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29 17:22 [PATCH v3 0/2] drm/xe/guc: shrink and compress GuC snapshot dumps Zhanjun Dong
2026-06-29 17:22 ` [PATCH v3 1/2] drm/xe: Remove extra newlines from LRC snapshot dump Zhanjun Dong
2026-06-29 17:22 ` [PATCH v3 2/2] drm/xe/guc: Compress GuC log and CTB dump with zstd Zhanjun Dong
2026-06-30  4:32   ` Matthew Brost
2026-06-30 17:35     ` Dong, Zhanjun
2026-07-13 18:13       ` Dong, Zhanjun
2026-07-13 18:29       ` Matthew Brost
2026-06-30  1:26 ` ✗ CI.checkpatch: warning for drm/xe/guc: shrink and compress GuC snapshot dumps Patchwork
2026-06-30  1:27 ` ✓ CI.KUnit: success " Patchwork
2026-06-30  2:02 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-30 14:34 ` ✗ Xe.CI.FULL: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox