From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Francois Dugast <francois.dugast@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe/debugfs: Get a runtime_pm reference when setting wedged mode
Date: Fri, 3 May 2024 08:53:02 -0400 [thread overview]
Message-ID: <ZjTeLtipOHfJEB2G@intel.com> (raw)
In-Reply-To: <20240503082450.268335-1-francois.dugast@intel.com>
On Fri, May 03, 2024 at 10:24:50AM +0200, Francois Dugast wrote:
> This function is another entry point where it must be ensured that
> the device resumes before operating on the GuC, so grab a runtime_pm
> reference. This fixes inner xe_pm_runtime_get_noresume calls which
> were previously failing.
>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_debugfs.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
> index 0e61fa462c7b..96920f7b2371 100644
> --- a/drivers/gpu/drm/xe/xe_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_debugfs.c
> @@ -152,6 +152,7 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
>
> 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);
> if (ret) {
> @@ -159,6 +160,7 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
> return -EIO;
> }
> }
> + xe_pm_runtime_put(xe);
>
> return size;
> }
> --
> 2.43.0
>
prev parent reply other threads:[~2024-05-03 12:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 8:24 [PATCH] drm/xe/debugfs: Get a runtime_pm reference when setting wedged mode Francois Dugast
2024-05-03 8:30 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-03 8:30 ` ✓ CI.checkpatch: " Patchwork
2024-05-03 8:31 ` ✓ CI.KUnit: " Patchwork
2024-05-03 8:43 ` ✓ CI.Build: " Patchwork
2024-05-03 8:45 ` ✓ CI.Hooks: " Patchwork
2024-05-03 8:47 ` ✓ CI.checksparse: " Patchwork
2024-05-03 9:22 ` ✓ CI.BAT: " Patchwork
2024-05-03 10:51 ` ✗ CI.FULL: failure " Patchwork
2024-05-03 12:53 ` Rodrigo Vivi [this message]
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=ZjTeLtipOHfJEB2G@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=francois.dugast@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/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