Skip to content

Commit a1891b9

Browse files
committed
drm/tegra: Annotate dma-fence critical section in commit path
Again ends just after drm_atomic_helper_commit_hw_done(), but with the twist that we need to make sure we're only annotate the custom version. And not the other clause which just calls drm_atomic_helper_commit_tail_rpm(), which is already annotated. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Acked-by: Thierry Reding <treding@nvidia.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: linux-tegra@vger.kernel.org Link: https://patchwork.freedesktop.org/patch/msgid/20210121152959.1725404-11-daniel.vetter@ffwll.ch
1 parent 4d56a4f commit a1891b9

File tree

1 file changed

+3
-0
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+3
-0
lines changed

drivers/gpu/drm/tegra/drm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ static void tegra_atomic_commit_tail(struct drm_atomic_state *old_state)
6565
struct tegra_drm *tegra = drm->dev_private;
6666

6767
if (tegra->hub) {
68+
bool fence_cookie = dma_fence_begin_signalling();
69+
6870
drm_atomic_helper_commit_modeset_disables(drm, old_state);
6971
tegra_display_hub_atomic_commit(drm, old_state);
7072
drm_atomic_helper_commit_planes(drm, old_state, 0);
7173
drm_atomic_helper_commit_modeset_enables(drm, old_state);
7274
drm_atomic_helper_commit_hw_done(old_state);
75+
dma_fence_end_signalling(fence_cookie);
7376
drm_atomic_helper_wait_for_vblanks(drm, old_state);
7477
drm_atomic_helper_cleanup_planes(drm, old_state);
7578
} else {

0 commit comments

Comments
 (0)