Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] drm/xe: shrink and compress GuC snapshot dumps
@ 2026-05-11 19:49 Zhanjun Dong
  2026-05-11 19:49 ` [PATCH v2 1/3] drm/xe/guc: Compress GuC log and CTB dump with zstd Zhanjun Dong
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Zhanjun Dong @ 2026-05-11 19:49 UTC (permalink / raw)
  To: intel-xe; +Cc: Zhanjun Dong

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>

History:
v2: Fix Kunit test error by selecting ZSTD_DECOMPRESS in DRM_XE config,
    required by zstd_is_error/zstd_get_error_name.

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

 drivers/gpu/drm/xe/Kconfig      |   2 +
 drivers/gpu/drm/xe/xe_guc_ct.c  |   9 ++-
 drivers/gpu/drm/xe/xe_guc_log.c | 110 ++++++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_guc_log.h |   5 +-
 drivers/gpu/drm/xe/xe_lrc.c     |   4 +-
 5 files changed, 109 insertions(+), 21 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-05-12 17:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 19:49 [PATCH v2 0/3] drm/xe: shrink and compress GuC snapshot dumps Zhanjun Dong
2026-05-11 19:49 ` [PATCH v2 1/3] drm/xe/guc: Compress GuC log and CTB dump with zstd Zhanjun Dong
2026-05-11 19:49 ` [PATCH v2 2/3] drm/xe: Remove extra newlines from LRC snapshot dump Zhanjun Dong
2026-05-11 19:49 ` [PATCH v2 3/3] drm/xe/guc: Reduce GuC log size from 8MB to 2MB Zhanjun Dong
2026-05-12  7:41 ` ✗ CI.checkpatch: warning for drm/xe: shrink and compress GuC snapshot dumps (rev2) Patchwork
2026-05-12  7:42 ` ✓ CI.KUnit: success " Patchwork
2026-05-12  7:58 ` ✗ CI.checksparse: warning " Patchwork
2026-05-12  9:11 ` ✓ Xe.CI.BAT: success " Patchwork
2026-05-12 17:09 ` ✗ 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