Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/oa: Destroy the stream_lock mutex
@ 2024-06-28  5:21 Ashutosh Dixit
  2024-06-28  5:30 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Ashutosh Dixit @ 2024-06-28  5:21 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko, Umesh Nerlige Ramappa

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


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-07-01 18:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28  5:21 [PATCH] drm/xe/oa: Destroy the stream_lock mutex Ashutosh Dixit
2024-06-28  5:30 ` ✓ CI.Patch_applied: success for " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox