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

Reply via email to