Skip to content

Commit 4d56a4f

Browse files
committed
drm/tidss: Annotate dma-fence critical section in commit path
Ends right after hw_done(), totally standard case. Acked-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Jyri Sarha <jsarha@ti.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210121152959.1725404-12-daniel.vetter@ffwll.ch
1 parent 820c170 commit 4d56a4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/tidss/tidss_kms.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
55
*/
66

7+
#include <linux/dma-fence.h>
8+
79
#include <drm/drm_atomic.h>
810
#include <drm/drm_atomic_helper.h>
911
#include <drm/drm_bridge.h>
@@ -26,6 +28,7 @@ static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state)
2628
{
2729
struct drm_device *ddev = old_state->dev;
2830
struct tidss_device *tidss = to_tidss(ddev);
31+
bool fence_cookie = dma_fence_begin_signalling();
2932

3033
dev_dbg(ddev->dev, "%s\n", __func__);
3134

@@ -36,6 +39,7 @@ static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state)
3639
drm_atomic_helper_commit_modeset_enables(ddev, old_state);
3740

3841
drm_atomic_helper_commit_hw_done(old_state);
42+
dma_fence_end_signalling(fence_cookie);
3943
drm_atomic_helper_wait_for_flip_done(ddev, old_state);
4044

4145
drm_atomic_helper_cleanup_planes(ddev, old_state);

0 commit comments

Comments
 (0)