diff options
author | David Ung <davidu@nvidia.com> | 2020-04-24 20:46:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2020-05-22 01:54:37 -0400 |
commit | bbef4c6927a13a24821c43cb2b6af72f859f7deb (patch) | |
tree | bf5f5ff242ecbadbe2e49cecb1c73305abb8a0cc /drivers/gpu/nvgpu/gv11b/pmu_gv11b.h | |
parent | b7fb70db759af82fb03988d4c224892df236ac73 (diff) |
gpu: nvgpu: initialize masks for the perfmon counters 3
Initialize the perfmon counters #3 masks to be same values as ELPG.
Hardware boots up with value NV_PPWR_PMU_IDLE_MASK_1(3) (0x10aa4c) = 0x1030,
but ELPG NV_PPWR_PMU_IDLE_MASK_1_SUPP(0) (0x10a9f4) boots up with 0.
Bug 2833620
Change-Id: I3a424345aec6176a97dd20fb2c68a6e2faf955ad
Signed-off-by: David Ung <davidu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2335299
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/pmu_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/pmu_gv11b.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h index 9cb6b222..06efa8f6 100644 --- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.h | |||
@@ -29,6 +29,7 @@ struct gk20a; | |||
29 | 29 | ||
30 | bool gv11b_is_pmu_supported(struct gk20a *g); | 30 | bool gv11b_is_pmu_supported(struct gk20a *g); |
31 | int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu); | 31 | int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu); |
32 | void gv11b_pmu_init_perfmon_counter(struct gk20a *g); | ||
32 | int gv11b_pg_gr_init(struct gk20a *g, u32 pg_engine_id); | 33 | int gv11b_pg_gr_init(struct gk20a *g, u32 pg_engine_id); |
33 | int gv11b_pg_set_subfeature_mask(struct gk20a *g, u32 pg_engine_id); | 34 | int gv11b_pg_set_subfeature_mask(struct gk20a *g, u32 pg_engine_id); |
34 | bool gv11b_is_lazy_bootstrap(u32 falcon_id); | 35 | bool gv11b_is_lazy_bootstrap(u32 falcon_id); |