From: Matthew Brost <matthew.brost@intel.com>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
John Harrison <john.c.harrison@intel.com>
Subject: Re: [PATCH] drm/xe/oa: Fix "Missing outer runtime PM protection" warning
Date: Fri, 8 Nov 2024 21:09:59 -0800 [thread overview]
Message-ID: <Zy7up6Jw6rvEB649@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20241109032003.3093811-1-ashutosh.dixit@intel.com>
On Fri, Nov 08, 2024 at 07:20:03PM -0800, Ashutosh Dixit wrote:
> Fix the following drm_WARN:
>
> [953.586396] xe 0000:00:02.0: [drm] Missing outer runtime PM protection
> ...
> <4> [953.587090] ? xe_pm_runtime_get_noresume+0x8d/0xa0 [xe]
> <4> [953.587208] guc_exec_queue_add_msg+0x28/0x130 [xe]
> <4> [953.587319] guc_exec_queue_fini+0x3a/0x40 [xe]
> <4> [953.587425] xe_exec_queue_destroy+0xb3/0xf0 [xe]
> <4> [953.587515] xe_oa_release+0x9c/0xc0 [xe]
>
> Suggested-by: John Harrison <john.c.harrison@intel.com>
> Suggested-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> Fixes: e936f885f1e9 ("drm/xe/oa/uapi: Expose OA stream fd")
> Cc: stable@vger.kernel.org
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
> drivers/gpu/drm/xe/xe_oa.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> index 53d2946ea3052..b0928daf2f308 100644
> --- a/drivers/gpu/drm/xe/xe_oa.c
> +++ b/drivers/gpu/drm/xe/xe_oa.c
> @@ -1615,9 +1615,11 @@ static int xe_oa_release(struct inode *inode, struct file *file)
> struct xe_oa_stream *stream = file->private_data;
> struct xe_gt *gt = stream->gt;
>
> + xe_pm_runtime_get(gt_to_xe(gt));
> mutex_lock(>->oa.gt_lock);
> xe_oa_destroy_locked(stream);
> mutex_unlock(>->oa.gt_lock);
> + xe_pm_runtime_put(gt_to_xe(gt));
>
> /* Release the reference the OA stream kept on the driver */
> drm_dev_put(>_to_xe(gt)->drm);
> --
> 2.41.0
>
next prev parent reply other threads:[~2024-11-09 5:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-09 3:20 [PATCH] drm/xe/oa: Fix "Missing outer runtime PM protection" warning Ashutosh Dixit
2024-11-09 3:25 ` ✓ CI.Patch_applied: success for " Patchwork
2024-11-09 3:25 ` ✓ CI.checkpatch: " Patchwork
2024-11-09 3:27 ` ✓ CI.KUnit: " Patchwork
2024-11-09 3:38 ` ✓ CI.Build: " Patchwork
2024-11-09 3:40 ` ✓ CI.Hooks: " Patchwork
2024-11-09 3:42 ` ✓ CI.checksparse: " Patchwork
2024-11-09 4:00 ` ✓ CI.BAT: " Patchwork
2024-11-09 5:09 ` Matthew Brost [this message]
2024-11-10 4:27 ` ✗ CI.FULL: failure " Patchwork
2024-11-12 20:34 ` Dixit, Ashutosh
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=Zy7up6Jw6rvEB649@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=john.c.harrison@intel.com \
--cc=rodrigo.vivi@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