Re: [PATCH v2] drm/vc4: drain the hangcheck timer and works on V3D unbind
From: Maíra Canal
Date: Fri Sep 25 2026 - 10:25:03 EST
On Tue, 15 Sep 2026 09:51:03 +0000, Fan Wu wrote:
> Nothing stops the hangcheck timer that submitted jobs arm, or the
> job_done_work that the render-done interrupt queues, at teardown:
> vc4_irq_disable() cancels only overflow_mem_work, and vc4_gem_destroy()
> runs from the drm-managed release, after vc4_v3d_unbind() has already
> uninstalled the V3D interrupt and cleared vc4->v3d. A timer still armed
> by then reads V3D registers through the NULL vc4->v3d pointer, and the
> late callbacks run on the vc4_dev embedding them after it has been
> freed.
>
> [...]
Applied with a small adjustment to the first comment, thanks!
[1/1] drm/vc4: drain the hangcheck timer and works on V3D unbind
commit: 94cf5971b1d04c6382437387c4dc3836cc7a1437
Best regards,
- Maíra