From 75d7d6826dea130d5eb5ac86f1ca54bd9b05fbe1 Mon Sep 17 00:00:00 2001 From: Deepak Goyal Date: Sun, 2 Jul 2017 08:19:29 +0530 Subject: gpu: nvgpu: pmu: check before initializing perfmon We should check if perfmon is enabled before sending perfmon init command. This is needed for debug purposes. Change-Id: Ia95a590a76074c469b5d87a5820cd5b2e50d13be Signed-off-by: Deepak Goyal Reviewed-on: https://git-master/r/1510036 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c') diff --git a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c index 2c1709ea..000e9eee 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c @@ -920,6 +920,7 @@ struct gk20a_platform gm20b_tegra_platform = { .enable_elcg = true, .enable_elpg = true, .enable_aelpg = true, + .enable_perfmon = true, .ptimer_src_freq = 19200000, .force_reset_in_do_idle = false, -- cgit v1.2.2