From: "Dong, Zhanjun" <zhanjun.dong@intel.com>
To: Julia Filipchuk <julia.filipchuk@intel.com>,
<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v7 4/6] drm/xe/guc: Add GuC log event buffer output in LFD format
Date: Wed, 26 Nov 2025 18:05:59 -0500 [thread overview]
Message-ID: <a2653c85-9445-419a-809e-724753575f1e@intel.com> (raw)
In-Reply-To: <e8600255-18b2-4a5f-b5c8-b55539815345@intel.com>
On 2025-10-20 7:36 p.m., Julia Filipchuk wrote:
>
>> +static void
>> +xe_guc_log_print_chunks(struct drm_printer *p, struct xe_guc_log_snapshot *snapshot,
>> + u32 from, u32 to)
>> +{
>> + int chunk_from = from % GUC_LOG_CHUNK_SIZE;
>> + int chunk_id = from / GUC_LOG_CHUNK_SIZE;
>> + int to_chunk_id = to / GUC_LOG_CHUNK_SIZE;
>> + int chunk_to = to % GUC_LOG_CHUNK_SIZE;
>> + int pos = from;
>> +
>> + do {
>> + size_t size = (to_chunk_id > chunk_id ? GUC_LOG_CHUNK_SIZE : chunk_to) - chunk_from;
> This check looks incorrect. Should be >= in comparison for last case to use the
> chunk_to.
Yes, should be >=
>
>> /* Output LFD stream */
>> xe_guc_log_load_lic(snapshot->copy[0], &config);
>> - xe_guc_log_output_lfd_init(p, snapshot, &config);
>> + size = xe_guc_log_output_lfd_init(p, snapshot, &config);
>> + if (size < 0)
>> + return;
> This should check for only equal to zero since the size is accumulated?
Yes, should check for zero as size_t never less than 0.
Will correct above 2 in next rev.
Regards,
Zhanjun Dong
>
>
next prev parent reply other threads:[~2025-11-26 23:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-28 17:41 [PATCH v7 0/6] drm/xe/guc: Add LFD format output for guc log Zhanjun Dong
2025-08-28 17:41 ` [PATCH v7 1/6] drm/xe/guc: Add log init config abi definitions Zhanjun Dong
2025-10-09 11:49 ` Michal Wajdeczko
2025-10-20 23:11 ` Julia Filipchuk
2025-08-28 17:41 ` [PATCH v7 2/6] drm/xe/guc: Add LFD related " Zhanjun Dong
2025-10-20 23:11 ` Julia Filipchuk
2025-08-28 17:41 ` [PATCH v7 3/6] drm/xe/guc: Add GuC log init config in LFD format Zhanjun Dong
2025-10-20 23:44 ` Julia Filipchuk
2025-11-25 18:19 ` Dong, Zhanjun
2025-11-25 19:47 ` Julia Filipchuk
2025-08-28 17:41 ` [PATCH v7 4/6] drm/xe/guc: Add GuC log event buffer output " Zhanjun Dong
2025-10-20 23:36 ` Julia Filipchuk
2025-11-26 23:05 ` Dong, Zhanjun [this message]
2025-08-28 17:41 ` [PATCH v7 5/6] drm/xe/guc: Only add GuC crash dump if available Zhanjun Dong
2025-10-20 23:11 ` Julia Filipchuk
2025-11-26 22:59 ` Dong, Zhanjun
2025-08-28 17:41 ` [PATCH v7 6/6] drm/xe/guc: Add new debugfs entry for lfd format output Zhanjun Dong
2025-10-20 23:12 ` Julia Filipchuk
2025-08-28 19:17 ` ✗ CI.checkpatch: warning for drm/xe/guc: Add LFD format output for guc log (rev7) Patchwork
2025-08-28 19:19 ` ✓ CI.KUnit: success " Patchwork
2025-08-28 19:56 ` ✓ Xe.CI.BAT: " Patchwork
2025-08-29 3:03 ` ✗ 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=a2653c85-9445-419a-809e-724753575f1e@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox