diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-02-13 04:43:12 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-02-24 00:33:28 -0500 |
commit | 53e718a739b4c6d6e3a1f4993a4722f28a40cff3 (patch) | |
tree | aef4247ea342b08ea090143dbc0b9fe51c2ace58 | |
parent | edad02b1b0071aa9fa0eac53d275e08a0051dca1 (diff) |
gpu: nvgpu: gv11b: Use secure PMU reset for GV11B.
PMU reset for GV11B is PRIV protected.
gp106_pmu_reset() also uses the same register
to reset PMU, therefore used same function for
gv11b.
Change-Id: I633a96256598e73ed02cbdfe0afdb9fba8b76afd
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: http://git-master/r/1303740
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c index 8432bd20..29ef7f6c 100644 --- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "gk20a/gk20a.h" | 21 | #include "gk20a/gk20a.h" |
22 | 22 | ||
23 | #include "gp10b/pmu_gp10b.h" | 23 | #include "gp10b/pmu_gp10b.h" |
24 | #include "gp106/pmu_gp106.h" | ||
24 | 25 | ||
25 | #include "pmu_gv11b.h" | 26 | #include "pmu_gv11b.h" |
26 | 27 | ||
@@ -153,6 +154,7 @@ void gv11b_init_pmu_ops(struct gpu_ops *gops) | |||
153 | gp10b_init_pmu_ops(gops); | 154 | gp10b_init_pmu_ops(gops); |
154 | gops->pmu.pmu_nsbootstrap = gv11b_pmu_bootstrap; | 155 | gops->pmu.pmu_nsbootstrap = gv11b_pmu_bootstrap; |
155 | gops->pmu.is_pmu_supported = gv11b_is_pmu_supported; | 156 | gops->pmu.is_pmu_supported = gv11b_is_pmu_supported; |
157 | gops->pmu.reset = gp106_pmu_reset; | ||
156 | gops->pmu.pmu_get_queue_head = pwr_pmu_queue_head_r; | 158 | gops->pmu.pmu_get_queue_head = pwr_pmu_queue_head_r; |
157 | gops->pmu.pmu_get_queue_head_size = pwr_pmu_queue_head__size_1_v; | 159 | gops->pmu.pmu_get_queue_head_size = pwr_pmu_queue_head__size_1_v; |
158 | gops->pmu.pmu_get_queue_tail = pwr_pmu_queue_tail_r; | 160 | gops->pmu.pmu_get_queue_tail = pwr_pmu_queue_tail_r; |