From 0e64836bb6efd3c0108482230e7de60560c65818 Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Thu, 17 May 2018 14:43:11 +0900 Subject: [PATCH] [COMMON] g2d: add debug code to measure the LLWFD latency Change-Id: Ib9660284ef5bb133b14b922056b153a22bba4a7b Signed-off-by: Seungpyo Hong --- drivers/gpu/exynos/g2d/g2d_debug.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/exynos/g2d/g2d_debug.c b/drivers/gpu/exynos/g2d/g2d_debug.c index 54466c6adec6..4f4e0c2eaeff 100644 --- a/drivers/gpu/exynos/g2d/g2d_debug.c +++ b/drivers/gpu/exynos/g2d/g2d_debug.c @@ -18,6 +18,8 @@ #include #include +#include + #include "g2d.h" #include "g2d_task.h" #include "g2d_uapi.h" @@ -383,4 +385,13 @@ void g2d_stamp_task(struct g2d_task *task, u32 stampid, s32 val) g2d_dump_info(task->g2d_dev, task); } } + + /* LLWFD latency measure */ + /* media/exynos_tsmux.h includes below functions */ + if (task != NULL && IS_HWFC(task->flags)) { + if (stampid == G2D_STAMP_STATE_PUSH) + g2d_blending_start(task->job_id); + if (stampid == G2D_STAMP_STATE_DONE) + g2d_blending_end(task->job_id); + } } -- 2.20.1