All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dong, Zhanjun" <zhanjun.dong@intel.com>
To: Julia Filipchuk <julia.filipchuk@intel.com>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2 1/3] drm/xe/guc: Compress GuC log and CTB dump with zstd
Date: Thu, 28 May 2026 14:10:06 -0400	[thread overview]
Message-ID: <e7c802f2-a310-498f-8926-e6c73f512f64@intel.com> (raw)
In-Reply-To: <a6a6e2a8-876e-4112-aab5-094a57270072@intel.com>



On 2026-05-28 1:51 p.m., Julia Filipchuk wrote:
> Minor comment for consideration. Changes to printing, stream compression look good.
> 
> Should replace 'pr_err' with 'xe_gt_err' as we use elsewhere. With this change.
Will fix it in next rev.>
> Reviewed-by: Julia Filipchuk <julia.filipchuk@intel.com>
Thanks for take time review it. I got offline review comments to have an 
kconfig to control this feature, new rev is on the way.

> 
> On 5/11/2026 12:49 PM, Zhanjun Dong wrote:
>> Replace the raw ascii85 dumps of GuC log snapshots with a
>> zstd-compressed ascii85 stream and reuse the same helper for CTB
>> snapshot output.
>>
>> Use zstd streaming with default level-3 parameters and an estimated
>> source size of 0 so the compression workspace stays bounded even for
>> multi-megabyte logs.
> 
> ...
> 
>> diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
>> index 4d7dcaff2b91..a6fbd7233c09 100644
>> --- a/drivers/gpu/drm/xe/Kconfig
>> +++ b/drivers/gpu/drm/xe/Kconfig
>> @@ -33,6 +33,8 @@ config DRM_XE
>>   	select ACPI_WMI if X86 && ACPI
>>   	select SYNC_FILE
>>   	select CRC32
>> +	select ZSTD_COMPRESS
>> +	select ZSTD_DECOMPRESS
> 
> Decompress is not needed since we only intend to use compression. Possible that
> both are needed in kconfig.
> 
There are 2 zstd error related functions requires ZSTD_DECOMPRESS, maybe 
I can only output error code rather than error string to avoid select 
ZSTD_DECOMPRESS.

Regards,
Zhanjun Dong



  reply	other threads:[~2026-05-28 18:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-28 17:51   ` Julia Filipchuk
2026-05-28 18:10     ` Dong, Zhanjun [this message]
2026-05-11 19:49 ` [PATCH v2 2/3] drm/xe: Remove extra newlines from LRC snapshot dump Zhanjun Dong
2026-05-28 17:52   ` Julia Filipchuk
2026-05-11 19:49 ` [PATCH v2 3/3] drm/xe/guc: Reduce GuC log size from 8MB to 2MB Zhanjun Dong
2026-05-28 17:52   ` Julia Filipchuk
2026-05-28 19:18   ` Michal Wajdeczko
2026-06-01 23:20     ` Dong, Zhanjun
2026-06-02 13:45       ` Michal Wajdeczko
2026-06-02 18:37         ` Dong, Zhanjun
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7c802f2-a310-498f-8926-e6c73f512f64@intel.com \
    --to=zhanjun.dong@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=julia.filipchuk@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.