diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-07-01 22:49:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-06 08:44:32 -0400 |
commit | 75d7d6826dea130d5eb5ac86f1ca54bd9b05fbe1 (patch) | |
tree | 3a309b2d70caca4f73b78c73ad380d07c5d11ac2 /drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | |
parent | 4166fc2f87ca4254b5e0c1433c810a83676d029a (diff) |
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 <dgoyal@nvidia.com>
Reviewed-on: https://git-master/r/1510036
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = { | |||
920 | .enable_elcg = true, | 920 | .enable_elcg = true, |
921 | .enable_elpg = true, | 921 | .enable_elpg = true, |
922 | .enable_aelpg = true, | 922 | .enable_aelpg = true, |
923 | .enable_perfmon = true, | ||
923 | .ptimer_src_freq = 19200000, | 924 | .ptimer_src_freq = 19200000, |
924 | 925 | ||
925 | .force_reset_in_do_idle = false, | 926 | .force_reset_in_do_idle = false, |