All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/sti: move commit work out of .atomic_check()
@ 2026-11-25 14:23 Minseo Park
  2026-11-25 14:23 ` [PATCH 1/3] drm/sti: cursor: do not resize the pixmap from .atomic_check() Minseo Park
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Minseo Park @ 2026-11-25 14:23 UTC (permalink / raw)
  To: dri-devel
  Cc: alain.volmat, rgallaispou, maarten.lankhorst, mripard,
	tzimmermann, airlied, simona, benjamin.gaignard, Minseo Park

The three plane .atomic_check() implementations in drivers/gpu/drm/sti
do work that belongs in the commit phase.  The cursor frees and
reallocates its pixmap, the GDP reparents and reclocks the pixel clock,
and the HQVDP boots its coprocessor and registers a VTG notifier.

DRM_MODE_ATOMIC_TEST_ONLY runs drm_atomic_check_only(), which calls the
plane .atomic_check() hooks and returns without ever calling
.atomic_update(), and a commit that fails a check on any other object is
dropped the same way.  Either path leaves the hardware changed by a
configuration that was never applied.

The cursor is the worst of the three.  The buffer it frees is the one
CUR_PML points at, so the display engine keeps reading it after it has
gone back to the DMA pool.

I do not have STiH4xx hardware, so this comes from reading the code
rather than from an observed failure.  The series builds warning free
with W=1 and COMPILE_TEST on x86_64.  Testing on a real board would be
appreciated.

Minseo Park (3):
  drm/sti: cursor: do not resize the pixmap from .atomic_check()
  drm/sti: gdp: set the pixel clock from .atomic_update()
  drm/sti: hqvdp: start the XP70 from .atomic_update()

 drivers/gpu/drm/sti/sti_cursor.c | 65 ++++++++++++++------------------
 drivers/gpu/drm/sti/sti_gdp.c    | 52 ++++++++++++-------------
 drivers/gpu/drm/sti/sti_hqvdp.c  | 43 +++++++++++----------
 3 files changed, 74 insertions(+), 86 deletions(-)


base-commit: 4dce97c6c265544342e716e62fd24bbb232590c5
-- 
2.43.0


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

end of thread, other threads:[~2026-11-26  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 14:23 [PATCH 0/3] drm/sti: move commit work out of .atomic_check() Minseo Park
2026-11-25 14:23 ` [PATCH 1/3] drm/sti: cursor: do not resize the pixmap from .atomic_check() Minseo Park
2026-11-25 14:39   ` Thomas Zimmermann
2026-11-25 14:23 ` [PATCH 2/3] drm/sti: gdp: set the pixel clock from .atomic_update() Minseo Park
2026-11-25 14:41   ` Thomas Zimmermann
2026-11-25 14:23 ` [PATCH 3/3] drm/sti: hqvdp: start the XP70 " Minseo Park
2026-11-25 14:44   ` Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.