* [PATCH 10/11] drm/tegra: Annotate dma-fence critical section in commit path [not found] <20210121152959.1725404-1-daniel.vetter@ffwll.ch> @ 2021-01-21 15:29 ` Daniel Vetter 2021-02-05 18:09 ` Thierry Reding 0 siblings, 1 reply; 2+ messages in thread From: Daniel Vetter @ 2021-01-21 15:29 UTC (permalink / raw) To: DRI Development Cc: Daniel Vetter, Daniel Vetter, Thierry Reding, Jonathan Hunter, linux-tegra 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> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: linux-tegra@vger.kernel.org --- drivers/gpu/drm/tegra/drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index e45c8414e2a3..ef2b79a903b1 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -65,11 +65,14 @@ static void tegra_atomic_commit_tail(struct drm_atomic_state *old_state) struct tegra_drm *tegra = drm->dev_private; if (tegra->hub) { + bool fence_cookie = dma_fence_begin_signalling(); + drm_atomic_helper_commit_modeset_disables(drm, old_state); tegra_display_hub_atomic_commit(drm, old_state); drm_atomic_helper_commit_planes(drm, old_state, 0); drm_atomic_helper_commit_modeset_enables(drm, old_state); drm_atomic_helper_commit_hw_done(old_state); + dma_fence_end_signalling(fence_cookie); drm_atomic_helper_wait_for_vblanks(drm, old_state); drm_atomic_helper_cleanup_planes(drm, old_state); } else { -- 2.30.0 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 10/11] drm/tegra: Annotate dma-fence critical section in commit path 2021-01-21 15:29 ` [PATCH 10/11] drm/tegra: Annotate dma-fence critical section in commit path Daniel Vetter @ 2021-02-05 18:09 ` Thierry Reding 0 siblings, 0 replies; 2+ messages in thread From: Thierry Reding @ 2021-02-05 18:09 UTC (permalink / raw) To: Daniel Vetter Cc: DRI Development, Daniel Vetter, Jonathan Hunter, linux-tegra [-- Attachment #1: Type: text/plain, Size: 709 bytes --] On Thu, Jan 21, 2021 at 04:29:58PM +0100, Daniel Vetter wrote: > 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> > Cc: Thierry Reding <thierry.reding@gmail.com> > Cc: Jonathan Hunter <jonathanh@nvidia.com> > Cc: linux-tegra@vger.kernel.org > --- > drivers/gpu/drm/tegra/drm.c | 3 +++ > 1 file changed, 3 insertions(+) I assume you want to take this through drm-misc? If so: Acked-by: Thierry Reding <treding@nvidia.com> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-05 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210121152959.1725404-1-daniel.vetter@ffwll.ch>
2021-01-21 15:29 ` [PATCH 10/11] drm/tegra: Annotate dma-fence critical section in commit path Daniel Vetter
2021-02-05 18:09 ` Thierry Reding
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox