Skip to content

Commit

Permalink
drm/tidss: Annotate dma-fence critical section in commit path
Browse files Browse the repository at this point in the history
Ends right after hw_done(), totally standard case.

Acked-by: Jyri Sarha <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Jyri Sarha <[email protected]>
Cc: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
danvet committed Feb 23, 2021
1 parent 820c170 commit 4d56a4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/tidss/tidss_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Author: Tomi Valkeinen <[email protected]>
*/

#include <linux/dma-fence.h>

#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_bridge.h>
Expand All @@ -26,6 +28,7 @@ static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state)
{
struct drm_device *ddev = old_state->dev;
struct tidss_device *tidss = to_tidss(ddev);
bool fence_cookie = dma_fence_begin_signalling();

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

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

drm_atomic_helper_commit_hw_done(old_state);
dma_fence_end_signalling(fence_cookie);
drm_atomic_helper_wait_for_flip_done(ddev, old_state);

drm_atomic_helper_cleanup_planes(ddev, old_state);
Expand Down

0 comments on commit 4d56a4f

Please sign in to comment.