From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <michal.wajdeczko@intel.com>
Subject: Re: [PATCH 1/4] drm/xe: Don't update wedged mode in case of an error
Date: Fri, 25 Apr 2025 10:18:34 -0400 [thread overview]
Message-ID: <aAuZuuj5wCEQWXEr@intel.com> (raw)
In-Reply-To: <20250424143043.937-2-lukasz.laguna@intel.com>
On Thu, Apr 24, 2025 at 04:30:40PM +0200, Lukasz Laguna wrote:
> Update driver's internal wedged.mode state only in case of a success to
> avoid inconsistent state.
>
> Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_debugfs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
> index d0503959a8ed..2e6d8744003b 100644
> --- a/drivers/gpu/drm/xe/xe_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_debugfs.c
> @@ -169,8 +169,6 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
> if (xe->wedged.mode == wedged_mode)
> return size;
>
> - xe->wedged.mode = wedged_mode;
> -
> xe_pm_runtime_get(xe);
> for_each_gt(gt, xe, id) {
> ret = xe_guc_ads_scheduler_policy_toggle_reset(>->uc.guc.ads);
> @@ -182,6 +180,8 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
> }
> xe_pm_runtime_put(xe);
>
> + xe->wedged.mode = wedged_mode;
> +
> return size;
> }
>
> --
> 2.40.0
>
next prev parent reply other threads:[~2025-04-25 14:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 14:30 [PATCH 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
2025-04-24 14:30 ` [PATCH 1/4] drm/xe: Don't update wedged mode in case of an error Lukasz Laguna
2025-04-24 21:37 ` Matthew Brost
2025-04-25 14:18 ` Rodrigo Vivi [this message]
2025-04-24 14:30 ` [PATCH 2/4] drm/xe: Validate wedged_mode modparam input Lukasz Laguna
2025-04-24 21:42 ` Matthew Brost
2025-04-25 14:20 ` Rodrigo Vivi
2025-05-12 8:18 ` Michal Wajdeczko
2025-04-24 14:30 ` [PATCH 3/4] drm/xe/vf: Disallow setting wedged_mode=2 Lukasz Laguna
2025-04-24 21:43 ` Matthew Brost
2025-04-25 14:21 ` Rodrigo Vivi
2025-05-12 8:25 ` Michal Wajdeczko
2025-04-24 14:30 ` [PATCH 4/4] drm/xe/pf: Allow wedged_mode=2 only in debug config Lukasz Laguna
2025-05-12 8:29 ` Michal Wajdeczko
2025-04-24 18:34 ` ✓ CI.Patch_applied: success for drm/xe: Improve wedged mode handling Patchwork
2025-04-24 18:35 ` ✓ CI.checkpatch: " Patchwork
2025-04-24 18:36 ` ✓ CI.KUnit: " Patchwork
2025-04-24 18:44 ` ✓ CI.Build: " Patchwork
2025-04-24 18:46 ` ✗ CI.Hooks: failure " Patchwork
2025-04-24 18:48 ` ✓ CI.checksparse: success " Patchwork
2025-04-24 19:28 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-25 16:27 ` ✗ 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=aAuZuuj5wCEQWXEr@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lukasz.laguna@intel.com \
--cc=michal.wajdeczko@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