Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v10 0/3] drm/xe/guc: Compress GuC log and CTB dump with zstd
@ 2026-10-06 17:51 Alan Previn
  2026-10-06 17:51 ` [PATCH v10 1/3] drm/xe: Remove extra newlines from LRC snapshot dump Alan Previn
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Alan Previn @ 2026-10-06 17:51 UTC (permalink / raw)
  To: intel-xe
  Cc: Alan Previn, julia.filipchuk, matthew.brost, rodrigo.vivi,
	Zhanjun Dong, José Roberto de Souza

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.

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

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com>

---
History:
v10: Add a new patch to introduce dump_cache to optimize GuC CT/ Log
     compression e2e flows and manage errors across parses. (Sashiko
     and Rodrigo).
     P2: Reorder Kconfig compression dependency (Rodrigo) and round
     up buffer size to dword as per final output-dump expectation.
v9: Rebase to latest drm-tip, no functional changes, added Signed-
    off by Alan on 2nd patch. (Rodrigo)
v8: Improve patch #2 description on clarity and wording (Rodrigo)
v7: Add *why* to the commit message (Rodrigo)
v6: Remove intermediate build files(Julia)
    Remvoe unnecessary comment(Julia)
v5: Update cover letter messages to remove shrink log size.
    Fix kernel-doc warning.
v4: Remove ZSTD_DECOMPRESS dependency.
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.

Alan Previn (1):
  drm/xe/guc: Add dump_cache to optimize GuC CT/Log compression flow

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            |  15 ++
 drivers/gpu/drm/xe/xe_devcoredump.c   |   4 +-
 drivers/gpu/drm/xe/xe_guc_ct.c        |  21 +--
 drivers/gpu/drm/xe/xe_guc_ct.h        |   4 +-
 drivers/gpu/drm/xe/xe_guc_ct_types.h  |   3 +
 drivers/gpu/drm/xe/xe_guc_log.c       | 222 ++++++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_guc_log.h       |  11 +-
 drivers/gpu/drm/xe/xe_guc_log_types.h |  20 +++
 drivers/gpu/drm/xe/xe_lrc.c           |   4 +-
 9 files changed, 273 insertions(+), 31 deletions(-)


base-commit: daeb062fc40f727fafefed080c6d12a5ad1d0d12
-- 
2.43.0


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

end of thread, other threads:[~2026-10-06 23:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 17:51 [PATCH v10 0/3] drm/xe/guc: Compress GuC log and CTB dump with zstd Alan Previn
2026-10-06 17:51 ` [PATCH v10 1/3] drm/xe: Remove extra newlines from LRC snapshot dump Alan Previn
2026-10-06 17:51 ` [PATCH v10 2/3] drm/xe/guc: Compress GuC log and CTB dump with zstd Alan Previn
2026-10-06 17:51 ` [PATCH v10 3/3] drm/xe/guc: Add dump_cache to optimize GuC CT/Log compression flow Alan Previn
2026-10-06 18:04   ` sashiko-bot
2026-10-06 17:57 ` ✗ CI.checkpatch: warning for drm/xe/guc: Compress GuC log and CTB dump with zstd (rev6) Patchwork
2026-10-06 17:59 ` ✓ CI.KUnit: success " Patchwork
2026-10-06 18:16 ` ✗ CI.checksparse: warning " Patchwork
2026-10-06 18:39 ` ✓ Xe.CI.BAT: success " Patchwork
2026-10-06 23:46 ` ✗ 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