Re: [PATCH v2] thermal/drivers/rcar_thermal: disable the work before masking the interrupt
From: Niklas Söderlund
Date: Mon Nov 23 2026 - 01:38:24 EST
Hi Yaohan,
On 2026-11-23 10:21:46 +0800, Yaohan Li wrote:
> Hi Niklas,
>
> You are right. I do not have a ready-made reproducer that exercises
> rcar_thermal_remove() on the actual driver. The 17-check test exercises
> workqueue and shared-IRQ primitives; it does not show the original driver
> failing or the patch fixing the race.
>
> I should have made that distinction clearer, rather than suggesting more
> thermal-load experiments. I will keep v3 on hold.
I think you can post v3 already, if you think it's ready. Once we can
test it or it becomes trivial we can move forward.
> If I can put together a
> test-only instrumentation patch that forces the relevant interleaving in the
> driver's removal path, I will share that for review before asking you to run
> anything on your board.
Maybe the top half of the interrupt handler can requeue itself. It will
be a infinite loop but as a hack patch to trigger the issue it would be
ok I think.
>
> Thanks again for offering to help test it.
>
> Yaohan
--
Kind Regards,
Niklas Söderlund