Re: [PATCH] drm/msm/dpu: fix vblank IRQ registration before atomic_mode_set

From: Dmitry Baryshkov

Date: Fri Mar 27 2026 - 15:54:22 EST


On Wed, 18 Mar 2026 18:17:00 +0100, Cédric Bellegarde wrote:
> dpu_encoder_toggle_vblank_for_crtc() can call control_vblank_irq()
> at any time in response to a userspace vblank request, independently
> of the atomic commit sequence. If this happens before the encoder's
> first atomic_mode_set(), irq[INTR_IDX_RDPTR] is still zero.
>
> Passing irq_idx=0 to dpu_core_irq_register_callback() is treated as
> invalid, and DPU_IRQ_REG(0) and DPU_IRQ_BIT(0) produce misleading
> values of 134217727 and 31 respectively due to unsigned wraparound
> in the (irq_idx - 1) macros, resulting in the confusing error:
>
> [...]

Applied to msm-next, thanks!

[1/1] drm/msm/dpu: fix vblank IRQ registration before atomic_mode_set
https://gitlab.freedesktop.org/lumag/msm/-/commit/961c900628fe

Best regards,
--
With best wishes
Dmitry