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/hal_gv11b.c | |
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/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 2f7b4abc..a2384fc8 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -720,7 +720,7 @@ static const struct gpu_ops gv11b_ops = { | |||
720 | .pmu_mutex_release = gk20a_pmu_mutex_release, | 720 | .pmu_mutex_release = gk20a_pmu_mutex_release, |
721 | .pmu_is_interrupted = gk20a_pmu_is_interrupted, | 721 | .pmu_is_interrupted = gk20a_pmu_is_interrupted, |
722 | .pmu_isr = gk20a_pmu_isr, | 722 | .pmu_isr = gk20a_pmu_isr, |
723 | .pmu_init_perfmon_counter = gk20a_pmu_init_perfmon_counter, | 723 | .pmu_init_perfmon_counter = gv11b_pmu_init_perfmon_counter, |
724 | .pmu_pg_idle_counter_config = gk20a_pmu_pg_idle_counter_config, | 724 | .pmu_pg_idle_counter_config = gk20a_pmu_pg_idle_counter_config, |
725 | .pmu_read_idle_counter = gk20a_pmu_read_idle_counter, | 725 | .pmu_read_idle_counter = gk20a_pmu_read_idle_counter, |
726 | .pmu_reset_idle_counter = gk20a_pmu_reset_idle_counter, | 726 | .pmu_reset_idle_counter = gk20a_pmu_reset_idle_counter, |