From 6e7ae2aaf4488fe17b992f7802205499120065e7 Mon Sep 17 00:00:00 2001 From: Rituraj Raman Date: Tue, 2 Mar 2021 13:24:12 +0530 Subject: [PATCH] msm: kgsl: Add Common Boot KPI marker Add a boot marker to indicate the time when gpu driver probe is completed and the device is ready, and adreno driver is initialised and ready for a640. Change-Id: I1bfd133b9f23dd497d2ab13cde4989b922ab47a7 Signed-off-by: Rituraj Raman --- drivers/gpu/msm/adreno.c | 5 +++++ drivers/gpu/msm/adreno_a6xx_gmu.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c index e61d587ffd21..5987e1f03596 100644 --- a/drivers/gpu/msm/adreno.c +++ b/drivers/gpu/msm/adreno.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "adreno.h" #include "adreno_a3xx.h" @@ -1313,6 +1314,8 @@ int adreno_device_probe(struct platform_device *pdev, int status; u32 size; + place_marker("M - DRIVER GPU Init"); + /* Initialize the adreno device structure */ adreno_setup_device(adreno_dev); @@ -1446,6 +1449,8 @@ int adreno_device_probe(struct platform_device *pdev, } #endif + place_marker("M - DRIVER GPU Ready"); + return 0; err: device->pdev = NULL; diff --git a/drivers/gpu/msm/adreno_a6xx_gmu.c b/drivers/gpu/msm/adreno_a6xx_gmu.c index 97fe2c39f1c4..14ec83a05263 100644 --- a/drivers/gpu/msm/adreno_a6xx_gmu.c +++ b/drivers/gpu/msm/adreno_a6xx_gmu.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "adreno.h" #include "adreno_a6xx.h" @@ -2971,6 +2972,8 @@ static int a6xx_first_boot(struct adreno_device *adreno_dev) if (test_bit(GMU_PRIV_FIRST_BOOT_DONE, &gmu->flags)) return a6xx_boot(adreno_dev); + place_marker("M - DRIVER ADRENO Init"); + ret = adreno_dispatcher_init(adreno_dev); if (ret) return ret; @@ -3024,6 +3027,7 @@ static int a6xx_first_boot(struct adreno_device *adreno_dev) trace_kgsl_pwr_set_state(device, KGSL_STATE_ACTIVE); + place_marker("M - DRIVER ADRENO Ready"); return 0; }