diff mbox series

[05/11] drm/malidp: Annotate dma-fence critical section in commit path

Message ID 20210121152959.1725404-6-daniel.vetter@ffwll.ch (mailing list archive)
State New, archived
Headers show
Series dma_fence critical sections annotations for atomic | expand

Commit Message

Daniel Vetter Jan. 21, 2021, 3:29 p.m. UTC
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 <liviu.dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
 drivers/gpu/drm/arm/malidp_drv.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c
index fceda010d65a..d83c7366b348 100644
--- a/drivers/gpu/drm/arm/malidp_drv.c
+++ b/drivers/gpu/drm/arm/malidp_drv.c
@@ -234,6 +234,7 @@  static void malidp_atomic_commit_tail(struct drm_atomic_state *state)
 	struct drm_crtc *crtc;
 	struct drm_crtc_state *old_crtc_state;
 	int i;
+	bool fence_cookie = dma_fence_begin_signalling();
@@ -260,6 +261,8 @@  static void malidp_atomic_commit_tail(struct drm_atomic_state *state)
+	dma_fence_end_signalling(fence_cookie);
 	drm_atomic_helper_cleanup_planes(drm, state);