The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/3] media: wave5: Fix critical issues in driver remove path
@ 2025-12-03  4:09 Xulin Sun
  2025-12-03  4:09 ` [PATCH 1/3] media: wave5: Fix PM runtime usage count underflow Xulin Sun
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Xulin Sun @ 2025-12-03  4:09 UTC (permalink / raw)
  To: nas.chung, jackson.lee, mchehab; +Cc: linux-media, linux-kernel, xulin.sun

This patch series fixes three critical issues in the wave5 VPU driver's
remove path that cause kernel warnings and system crashes.

The issues were discovered and consistently reproduced on kernel 6.12.58-rt6
with the TI AM62A platform. While testing on kernel 6.18 shows the issues
are harder to trigger, the underlying logic problems still exist in the code.

Patch 1: Fixes PM runtime reference count underflow
Patch 2: Fixes kthread worker destruction warning  
Patch 3: Fixes kernel panic due to incorrect cleanup order

All patches have been tested with 50+ consecutive encoding operations and
multiple modprobe/rmmod cycles without any warnings or crashes on 6.12.58-rt6.

Xulin Sun (3):
  media: wave5: Fix PM runtime usage count underflow
  media: wave5: Fix kthread worker destruction in polling mode
  media: wave5: Fix device cleanup order to prevent kernel panic

 drivers/media/platform/chips-media/wave5/wave5-vpu.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

-- 
2.49.1


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

end of thread, other threads:[~2025-12-03 18:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03  4:09 [PATCH 0/3] media: wave5: Fix critical issues in driver remove path Xulin Sun
2025-12-03  4:09 ` [PATCH 1/3] media: wave5: Fix PM runtime usage count underflow Xulin Sun
2025-12-03  4:09 ` [PATCH 2/3] media: wave5: Fix kthread worker destruction in polling mode Xulin Sun
2025-12-03  4:09 ` [PATCH 3/3] media: wave5: Fix device cleanup order to prevent kernel panic Xulin Sun
2025-12-03 18:10 ` [PATCH 0/3] media: wave5: Fix critical issues in driver remove path Nicolas Dufresne

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