Skip to content

Commit 9e5eb5e

Browse files
committed
drm/malidp: Annotate dma-fence critical section in commit path
Again needs to be put right after the call to drm_atomic_helper_commit_hw_done(), since that's the last thing which can hold up a subsequent atomic commit. No surprises here. Acked-by: Liviu Dudau <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Cc: "James (Qian) Wang" <[email protected]> Cc: Liviu Dudau <[email protected]> Cc: Mihail Atanassov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent eec44d4 commit 9e5eb5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/arm/malidp_drv.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ static void malidp_atomic_commit_tail(struct drm_atomic_state *state)
234234
struct drm_crtc *crtc;
235235
struct drm_crtc_state *old_crtc_state;
236236
int i;
237+
bool fence_cookie = dma_fence_begin_signalling();
237238

238239
pm_runtime_get_sync(drm->dev);
239240

@@ -260,6 +261,8 @@ static void malidp_atomic_commit_tail(struct drm_atomic_state *state)
260261

261262
malidp_atomic_commit_hw_done(state);
262263

264+
dma_fence_end_signalling(fence_cookie);
265+
263266
pm_runtime_put(drm->dev);
264267

265268
drm_atomic_helper_cleanup_planes(drm, state);

0 commit comments

Comments
 (0)