From: Matthew Brost <matthew.brost@intel.com>
To: Zhanjun Dong <zhanjun.dong@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v9 6/7] drm/xe/uc: Drop xe_guc_sanitize in favor of managed cleanup
Date: Fri, 13 Mar 2026 15:53:16 -0700 [thread overview]
Message-ID: <abSVXOEjTjE06GM6@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20260310225039.1320161-7-zhanjun.dong@intel.com>
On Tue, Mar 10, 2026 at 06:50:38PM -0400, Zhanjun Dong wrote:
> If the firmware fails to load in GT resets the device is wedged also
> initiating a GuC state cleanup.
>
> Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> ---
> drivers/gpu/drm/xe/xe_uc.c | 22 +++++++---------------
> 1 file changed, 7 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
> index d9aa845a308d..75091bde0d50 100644
> --- a/drivers/gpu/drm/xe/xe_uc.c
> +++ b/drivers/gpu/drm/xe/xe_uc.c
> @@ -157,23 +157,19 @@ static int vf_uc_load_hw(struct xe_uc *uc)
>
> err = xe_gt_sriov_vf_connect(uc_to_gt(uc));
> if (err)
> - goto err_out;
> + return err;
>
> uc->guc.submission_state.enabled = true;
>
> err = xe_guc_opt_in_features_enable(&uc->guc);
> if (err)
> - goto err_out;
> + return err;
>
> err = xe_gt_record_default_lrcs(uc_to_gt(uc));
> if (err)
> - goto err_out;
> + return err;
>
> return 0;
> -
> -err_out:
> - xe_guc_sanitize(&uc->guc);
> - return err;
> }
>
> /*
> @@ -205,19 +201,19 @@ int xe_uc_load_hw(struct xe_uc *uc)
>
> ret = xe_gt_record_default_lrcs(uc_to_gt(uc));
> if (ret)
> - goto err_out;
> + return ret;
>
> ret = xe_guc_post_load_init(&uc->guc);
> if (ret)
> - goto err_out;
> + return ret;
>
> ret = xe_guc_pc_start(&uc->guc.pc);
> if (ret)
> - goto err_out;
> + return ret;
>
> ret = xe_guc_rc_enable(&uc->guc);
> if (ret)
> - goto err_out;
> + return ret;
>
> xe_guc_engine_activity_enable_stats(&uc->guc);
>
> @@ -232,10 +228,6 @@ int xe_uc_load_hw(struct xe_uc *uc)
> xe_gsc_load_start(&uc->gsc);
>
> return 0;
> -
> -err_out:
> - xe_guc_sanitize(&uc->guc);
> - return ret;
> }
>
> int xe_uc_reset_prepare(struct xe_uc *uc)
> --
> 2.34.1
>
next prev parent reply other threads:[~2026-03-13 22:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 22:50 [PATCH v9 0/7] Attempt to fixup reset, wedge, unload corner cases Zhanjun Dong
2026-03-10 22:50 ` [PATCH v9 1/7] drm/xe: Always kill exec queues in xe_guc_submit_pause_abort Zhanjun Dong
2026-03-10 22:50 ` [PATCH v9 2/7] drm/xe: Forcefully tear down exec queues in GuC submit fini Zhanjun Dong
2026-03-11 16:34 ` Dong, Zhanjun
2026-03-13 18:48 ` Matthew Brost
2026-03-13 20:30 ` Dong, Zhanjun
2026-03-10 22:50 ` [PATCH v9 3/7] drm/xe: Trigger queue cleanup if not in wedged mode 2 Zhanjun Dong
2026-03-11 16:33 ` Dong, Zhanjun
2026-03-13 18:49 ` Matthew Brost
2026-03-13 20:31 ` Dong, Zhanjun
2026-03-10 22:50 ` [PATCH v9 4/7] drm/xe: Use XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET enum instead of magic number Zhanjun Dong
2026-03-10 22:50 ` [PATCH v9 5/7] drm/xe/guc: Ensure CT state transitions via STOP before DISABLED Zhanjun Dong
2026-03-10 22:50 ` [PATCH v9 6/7] drm/xe/uc: Drop xe_guc_sanitize in favor of managed cleanup Zhanjun Dong
2026-03-13 22:53 ` Matthew Brost [this message]
2026-03-10 22:50 ` [PATCH v9 7/7] drm/xe: Open-code GGTT MMIO access protection Zhanjun Dong
2026-03-10 22:56 ` ✗ CI.checkpatch: warning for Attempt to fixup reset, wedge, unload corner cases Patchwork
2026-03-10 22:58 ` ✓ CI.KUnit: success " Patchwork
2026-03-10 23:41 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-11 16:20 ` ✗ 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=abSVXOEjTjE06GM6@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--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