On Sun, 29 Nov 2026 12:54:45 +0000, [email protected] wrote:
[...]
> > +   /*
> > +    * The event releases the next commit, which rewrites the other
> > +    * command list and points the engine at it. Hold the event until
> > +    * CFG_RDY says the engine has taken this commit's lists; the
> > +    * interrupt then arms it for the following vblank.
> > +    */

Will fix this comment in v5. CFG_RDY and VSYNC normally come in the
same interrupt, so the event is sent in that pass, not at the
following vblank.

[...]
> [Severity: High]
> Can spacemit_dpu_online_isr() arm and complete a_crtc->event before the
> DPU has taken and scanned out the new command lists?

Not a bug: a leftover CFG_RDY cannot show there. CFG_RDY is masked when
a flush starts, or, right after an enable, already acked with the
timing generator not running yet. CFG_RDY and VSYNC in one pass is the
case from patch 8, see my answer there.

[...]
> [Severity: High]
> Does calling drm_mode_config_create_initial_state() before
> drm_vblank_init() leave vblank enabled on the initially disabled CRTC and
> allow spacemit_crtc_enable_vblank() to race with runtime PM?

See my mail to Thomas in this thread [1]. I plan to swap the two calls
in v5.

[1] https://lore.kernel.org/r/[email protected]/

[...]
> [Severity: High]
> What completes priv->a_crtc->event and stops DPU DMA when
> spacemit_drm_master_unbind() runs?

Will fix in v5, except the runtime PM reference: unbind cannot tell
whether the CRTC still holds it.

[...]
> [Severity: High]
> Can sdrm->priv be dereferenced after it is freed if an open DRM file
> outlives spacemit_dpu_remove()?

Not a bug: spacemit_dpu_remove() cannot run while a DRM file is open.
The DPU driver sets suppress_bind_attrs, and an open file pins the
module.

Cody

Reply via email to