From: ChiHun Won Date: Fri, 25 May 2018 22:34:36 +0000 (+0900) Subject: fbdev: dpu20: added acquire fence logging X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6edcc11bd306b67ac6eb44d76a3c1ae7d27291c6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fbdev: dpu20: added acquire fence logging reviewed Change-Id: Ib8f0e6dd3001afc84bc1ac36ab1e1f41826f6b0c Signed-off-by: ChiHun Won --- 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)