summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2017-07-01 22:49:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-06 08:44:32 -0400
commit75d7d6826dea130d5eb5ac86f1ca54bd9b05fbe1 (patch)
tree3a309b2d70caca4f73b78c73ad380d07c5d11ac2 /drivers/gpu/nvgpu/include
parent4166fc2f87ca4254b5e0c1433c810a83676d029a (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/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/enabled.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/enabled.h b/drivers/gpu/nvgpu/include/nvgpu/enabled.h
index 78dea193..3bfd4899 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/enabled.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/enabled.h
@@ -38,6 +38,12 @@ struct gk20a;
38#define NVGPU_MM_UNIFIED_MEMORY 18 38#define NVGPU_MM_UNIFIED_MEMORY 18
39 39
40/* 40/*
41 * PMU flags.
42 */
43/* perfmon enabled or disabled for PMU */
44#define NVGPU_PMU_PERFMON 48
45
46/*
41 * Must be greater than the largest bit offset in the above list. 47 * Must be greater than the largest bit offset in the above list.
42 */ 48 */
43#define NVGPU_MAX_ENABLED_BITS 64 49#define NVGPU_MAX_ENABLED_BITS 64