summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/pmu_gp106.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/pmu_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/pmu_gp106.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/pmu_gp106.c b/drivers/gpu/nvgpu/gp106/pmu_gp106.c
index a09aa30b..a9fb794d 100644
--- a/drivers/gpu/nvgpu/gp106/pmu_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/pmu_gp106.c
@@ -12,6 +12,7 @@
12 */ 12 */
13 13
14#include <nvgpu/pmu.h> 14#include <nvgpu/pmu.h>
15#include <nvgpu/enabled.h>
15 16
16#include "gk20a/gk20a.h" 17#include "gk20a/gk20a.h"
17#include "gk20a/pmu_gk20a.h" 18#include "gk20a/pmu_gk20a.h"
@@ -289,11 +290,11 @@ static int gp106_load_falcon_ucode(struct gk20a *g, u32 falconidmask)
289 return 0; 290 return 0;
290} 291}
291 292
292void gp106_init_pmu_ops(struct gpu_ops *gops) 293void gp106_init_pmu_ops(struct gk20a *g)
293{ 294{
295 struct gpu_ops *gops = &g->ops;
294 gk20a_dbg_fn(""); 296 gk20a_dbg_fn("");
295 297 if (nvgpu_is_enabled(g, NVGPU_SEC_PRIVSECURITY)) {
296 if (gops->privsecurity) {
297 gp106_init_secure_pmu(gops); 298 gp106_init_secure_pmu(gops);
298 gops->pmu.init_wpr_region = gm20b_pmu_init_acr; 299 gops->pmu.init_wpr_region = gm20b_pmu_init_acr;
299 gops->pmu.load_lsfalcon_ucode = gp106_load_falcon_ucode; 300 gops->pmu.load_lsfalcon_ucode = gp106_load_falcon_ucode;