From: sashiko-bot@kernel.org
To: "Umesh Nerlige Ramappa" <umesh.nerlige.ramappa@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v4 2/7] drm/xe/guc: Handle CRASH and EXCEPTION G2H with separate helpers
Date: Fri, 18 Sep 2026 00:08:32 +0000 [thread overview]
Message-ID: <20260918000833.398B81F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260917235923.1521112-11-umesh.nerlige.ramappa@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] xe: spurious PROCESS_FAILED on GuC crash due to -EHOSTDOWN return
--
commit 0030c089dd9bc1455460d3cc58697be48bcade56
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
drm/xe/guc: Handle CRASH and EXCEPTION G2H with separate helpers
This commit refactors the handling of CRASH and EXCEPTION G2H messages
into separate helper functions. It also drops an unreachable code path
that existed in the earlier combined function.
> diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
> index 5c4733da385c5..b3a6aa37808b4 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ct.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ct.c
> @@ -1553,22 +1553,22 @@ static int parse_g2h_event(struct xe_guc_ct *ct, u32 *msg, u32 len)
> return 0;
> }
>
> -static int guc_crash_process_msg(struct xe_guc_ct *ct, u32 action)
> +static int guc_handle_crash_dump_msg(struct xe_guc_ct *ct, u32 action)
> {
> - struct xe_gt *gt = ct_to_gt(ct);
> + xe_gt_err(ct_to_gt(ct), "GuC Crash dump notification\n");
> + CT_DEAD(ct, NULL, CRASH);
> + kick_reset(ct);
>
> - if (action == XE_GUC_ACTION_NOTIFY_CRASH_DUMP_POSTED)
> - xe_gt_err(gt, "GuC Crash dump notification\n");
[ ... ]
> + return -EHOSTDOWN;
> +}
[Severity: Medium]
Since this function now returns -EHOSTDOWN instead of 0, will this trigger the
failure path in process_g2h_msg()?
When process_g2h_msg() receives a non-zero return value, it logs a spurious
"G2H action failed" error and redundantly flags the CT as dead:
if (ret) {
xe_gt_err(gt, "G2H action %#04x failed (%pe) len %u msg %*ph\n", ...);
CT_DEAD(ct, NULL, PROCESS_FAILED);
}
Does this misrepresent a successfully processed firmware notification as a
host-side parsing failure?
>
> +static int guc_handle_exception_msg(struct xe_guc_ct *ct, u32 action)
> +{
> + xe_gt_err(ct_to_gt(ct), "GuC Exception notification\n");
> CT_DEAD(ct, NULL, CRASH);
> -
> kick_reset(ct);
>
> - return 0;
> + return -EHOSTDOWN;
> }
[Severity: Medium]
Similarly here, returning -EHOSTDOWN instead of 0 will cause process_g2h_msg()
to execute its error handling path. Should these helpers continue to return 0
to indicate the notification was successfully processed by the host?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260917235923.1521112-9-umesh.nerlige.ramappa@intel.com?part=2
next prev parent reply other threads:[~2026-09-18 0:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 23:59 [PATCH v4 0/7] Use SIG_ID logs for GuC component Umesh Nerlige Ramappa
2026-09-17 23:59 ` [PATCH v4 1/7] drm/xe/guc: Use different error codes for GuC load errors Umesh Nerlige Ramappa
2026-09-17 23:59 ` [PATCH v4 2/7] drm/xe/guc: Handle CRASH and EXCEPTION G2H with separate helpers Umesh Nerlige Ramappa
2026-09-18 0:08 ` sashiko-bot [this message]
2026-09-17 23:59 ` [PATCH v4 3/7] drm/xe/guc: Make ct_dead_capture available on non-debug config Umesh Nerlige Ramappa
2026-09-18 0:06 ` sashiko-bot
2026-09-17 23:59 ` [PATCH v4 4/7] drm/xe/guc: Cleanup error codes and handling for CT errors Umesh Nerlige Ramappa
2026-09-18 0:17 ` sashiko-bot
2026-09-17 23:59 ` [PATCH v4 5/7] drm/xe/uc: Report DMA failure using SIGID Umesh Nerlige Ramappa
2026-09-18 0:07 ` sashiko-bot
2026-09-17 23:59 ` [PATCH v4 6/7] drm/xe/guc: Report major GuC failures " Umesh Nerlige Ramappa
2026-09-17 23:59 ` [PATCH v4 7/7] drm/xe/guc: Report errors that cause a CT shutdown " Umesh Nerlige Ramappa
2026-09-18 0:08 ` sashiko-bot
2026-09-18 0:58 ` ✗ CI.KUnit: failure for Use SIG_ID logs for GuC component (rev3) 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=20260918000833.398B81F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=umesh.nerlige.ramappa@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