Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>,
	Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Subject: [PATCH] drm/xe/oa: Destroy the stream_lock mutex
Date: Thu, 27 Jun 2024 22:21:25 -0700	[thread overview]
Message-ID: <20240628052125.1847989-1-ashutosh.dixit@intel.com> (raw)

The mutex allocated in xe_oa_stream_init() was never previously
destroyed. Do so now.

Fixes: e936f885f1e9 ("drm/xe/oa/uapi: Expose OA stream fd")
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
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 6cc3f0217341..4188516a7816 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -824,6 +824,8 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
 
 	WRITE_ONCE(u->exclusive_stream, NULL);
 
+	mutex_destroy(&stream->stream_lock);
+
 	xe_oa_disable_metric_set(stream);
 	xe_exec_queue_put(stream->k_exec_q);
 
-- 
2.41.0


             reply	other threads:[~2024-06-28  5:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-28  5:21 Ashutosh Dixit [this message]
2024-06-28  5:30 ` ✓ CI.Patch_applied: success for drm/xe/oa: Destroy the stream_lock mutex Patchwork
2024-06-28  5:30 ` ✓ CI.checkpatch: " Patchwork
2024-06-28  5:31 ` ✓ CI.KUnit: " Patchwork
2024-06-28 16:58 ` [PATCH] " Umesh Nerlige Ramappa
2024-06-28 17:31   ` Dixit, Ashutosh
2024-07-01 16:32 ` ✓ CI.Patch_applied: success for drm/xe/oa: Destroy the stream_lock mutex (rev2) Patchwork
2024-07-01 16:32 ` ✓ CI.checkpatch: " Patchwork
2024-07-01 16:34 ` ✓ CI.KUnit: " Patchwork
2024-07-01 16:46 ` ✓ CI.Build: " Patchwork
2024-07-01 16:48 ` ✓ CI.Hooks: " Patchwork
2024-07-01 16:49 ` ✓ CI.checksparse: " Patchwork
2024-07-01 17:23 ` ✓ CI.BAT: " Patchwork
2024-07-01 18:38 ` ✗ 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=20240628052125.1847989-1-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=michal.wajdeczko@intel.com \
    --cc=umesh.nerlige.ramappa@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