From 6edcc11bd306b67ac6eb44d76a3c1ae7d27291c6 Mon Sep 17 00:00:00 2001 From: ChiHun Won Date: Sat, 26 May 2018 07:34:36 +0900 Subject: [PATCH] fbdev: dpu20: added acquire fence logging reviewed Change-Id: Ib8f0e6dd3001afc84bc1ac36ab1e1f41826f6b0c Signed-off-by: ChiHun Won --- drivers/video/fbdev/exynos/dpu20/fence.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/exynos/dpu20/fence.c b/drivers/video/fbdev/exynos/dpu20/fence.c index aac2ebf2d4fd..40ea61c4874a 100644 --- a/drivers/video/fbdev/exynos/dpu20/fence.c +++ b/drivers/video/fbdev/exynos/dpu20/fence.c @@ -16,6 +16,9 @@ #include "decon.h" +#define ACQ_FENCE_LEN 40 +char acq_fence_log[ACQ_FENCE_LEN]; + #if defined(CONFIG_SUPPORT_LEGACY_FENCE) /* sync fence related functions */ void decon_create_timeline(struct decon_device *decon, char *name) @@ -284,12 +287,14 @@ int decon_create_fence(struct decon_device *decon, struct sync_file **sync_file) void decon_wait_fence(struct dma_fence *fence) { - int err = dma_fence_wait_timeout(fence, false, 900); - if (err >= 0) - return; + int err = 0; + snprintf(acq_fence_log, ACQ_FENCE_LEN, "%p:%s", + fence, fence->ops->get_driver_name(fence)); + + err = dma_fence_wait_timeout(fence, false, 900); if (err < 0) - decon_warn("error waiting on acquire fence: %d\n", err); + decon_warn("%s: error waiting on acquire fence: %d\n", acq_fence_log, err); } void decon_signal_fence(struct dma_fence *fence) -- 2.20.1