From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
To: Zhanjun Dong <zhanjun.dong@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <michal.wajdeczko@intel.com>
Subject: Re: [PATCH v3] drm/xe/uc: Change assertion to error on huc authentication failure
Date: Thu, 6 Nov 2025 11:28:12 -0800 [thread overview]
Message-ID: <0cd12e26-3679-43bc-8a40-72f9415bc183@intel.com> (raw)
In-Reply-To: <20251027214212.2856903-1-zhanjun.dong@intel.com>
On 10/27/2025 2:42 PM, Zhanjun Dong wrote:
> The fault injection test can cause the xe_huc_auth function to fail.
> This is an intentional failure, so in this scenario we don't want to
> throw an assert and taint the kernel, because that will impact CI
> execution.
>
> Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> ---
> History:
> v3: Add return code check, update message text
> v2: Update commit comments
> Remove warning comment
> ---
> drivers/gpu/drm/xe/xe_uc.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
> index 465bda355443..40aed4a66bac 100644
> --- a/drivers/gpu/drm/xe/xe_uc.c
> +++ b/drivers/gpu/drm/xe/xe_uc.c
> @@ -218,9 +218,12 @@ int xe_uc_load_hw(struct xe_uc *uc)
>
> xe_guc_engine_activity_enable_stats(&uc->guc);
>
> - /* We don't fail the driver load if HuC fails to auth, but let's warn */
> + /* We don't fail the driver load if HuC fails to auth */
> ret = xe_huc_auth(&uc->huc, XE_HUC_AUTH_VIA_GUC);
> - xe_gt_assert(uc_to_gt(uc), !ret);
> + if (ret)
> + xe_gt_err(uc_to_gt(uc),
> + "HuC authentication failed (%pe), continuing with no HuC\n",
> + ERR_PTR(ret));
>
> /* GSC load is async */
> xe_gsc_load_start(&uc->gsc);
next prev parent reply other threads:[~2025-11-06 19:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 21:42 [PATCH v3] drm/xe/uc: Change assertion to error on huc authentication failure Zhanjun Dong
2025-10-27 22:51 ` ✓ CI.KUnit: success for drm/xe/uc: Change assertion to error on huc authentication failure (rev3) Patchwork
2025-10-27 23:43 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-28 7:22 ` ✓ Xe.CI.Full: " Patchwork
2025-11-06 19:28 ` Daniele Ceraolo Spurio [this message]
2025-11-21 0:21 ` ✓ CI.KUnit: success for drm/xe/uc: Change assertion to error on huc authentication failure (rev4) Patchwork
2025-11-21 1:04 ` ✓ Xe.CI.BAT: " Patchwork
2025-11-21 5:59 ` ✓ Xe.CI.Full: " 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=0cd12e26-3679-43bc-8a40-72f9415bc183@intel.com \
--to=daniele.ceraolospurio@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=michal.wajdeczko@intel.com \
--cc=zhanjun.dong@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