Skip to content

drm: Fix atomic helper dirtyfb stalls

Rob Clark dri-devel linux-arm-msm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm: Fix dirtyfb stallsdrivers/gpu/drm/drm_damage_helper.c include/drm/drm_modeset_helper_vtables.h+22 -017 replies
2/2drm/msm/dpu: Wire up needs_dirtyfbdrivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c+14 -03 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchRyan Houdek
1/2
2/2T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm: Fix atomic helper dirtyfb stalls

From: Rob Clark <[email protected]>

Someone on IRC once asked an innocent enough sounding question: Why with xf86-video-modesetting is es2gears limited at 120fps.

So I broke out the perfetto tracing mesa MR and took a look. It turns out the problem was drm_atomic_helper_dirtyfb(), which would end up waiting for vblank.. es2gears would rapidly push two frames to Xorg, which would blit them to screen and in idle hook (I assume) call the DIRTYFB ioctl. Which in turn would do an atomic update to flush the dirty rects, which would stall until the next vblank. And then the whole process would repeat.

But this is a bit silly, we only need dirtyfb for command mode DSI panels. So lets just skip it otherwise.

Rob Clark (2):
drm: Fix dirtyfb stalls
drm/msm/dpu: Wire up needs_dirtyfb

 drivers/gpu/drm/drm_damage_helper.c      |  8 ++++++++
 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 14 ++++++++++++++
 include/drm/drm_modeset_helper_vtables.h | 14 ++++++++++++++
 3 files changed, 36 insertions(+)
Signature · 1 line
2.30.2