From: Seungpyo Hong Date: Thu, 17 May 2018 05:43:11 +0000 (+0900) Subject: [COMMON] g2d: add debug code to measure the LLWFD latency X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e64836bb6efd3c0108482230e7de60560c65818;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] g2d: add debug code to measure the LLWFD latency Change-Id: Ib9660284ef5bb133b14b922056b153a22bba4a7b Signed-off-by: Seungpyo Hong --- 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); + } }