Skip to content

drm/xe/guc: Compress GuC log and CTB dump with zstd

Zhanjun Dong intel-xe 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 2 repliesIn review
  2. v62 patches 2 repliesSuperseded
  3. v52 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches0 repliesSuperseded
v32 patches5 repliesSuperseded
v23 patches8 repliesSuperseded
v13 patches0 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe: Remove extra newlines from LRC snapshot dumpdrivers/gpu/drm/xe/xe_lrc.c+2 -20 replies
2/2drm/xe/guc: Compress GuC log and CTB dump with zstddrivers/gpu/drm/xe/Kconfig drivers/gpu/drm/xe/xe_devcoredump.c drivers/gpu/drm/xe/xe_guc_ct.c +3 more+183 -292 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJulia FilipchukJosé Roberto de Souza
SeriesR-b A-b
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] drm/xe/guc: Compress GuC log and CTB dump with zstd

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.

---
Cc: Julia Filipchuk <[email protected]>
History:
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.

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      |  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, 185 insertions(+), 31 deletions(-)
Signature · 1 line
2.34.1