Skip to content

drm/sti: move commit work out of .atomic_check()

Minseo Park dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/sti: cursor: do not resize the pixmap from .atomic_check()drivers/gpu/drm/sti/sti_cursor.c+28 -371 reply
2/3drm/sti: gdp: set the pixel clock from .atomic_update()drivers/gpu/drm/sti/sti_gdp.c+25 -271 reply
3/3drm/sti: hqvdp: start the XP70 from .atomic_update()drivers/gpu/drm/sti/sti_hqvdp.c+21 -221 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm/sti: move commit work out of .atomic_check()

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

Signature · 1 line
2.43.0