diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hw_gr_gp106.h | 16 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp106/sec2_gp106.c | 8 |
2 files changed, 22 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hw_gr_gp106.h b/drivers/gpu/nvgpu/gp106/hw_gr_gp106.h index e5e1c527..bb1f9fa9 100644 --- a/drivers/gpu/nvgpu/gp106/hw_gr_gp106.h +++ b/drivers/gpu/nvgpu/gp106/hw_gr_gp106.h | |||
@@ -1342,6 +1342,14 @@ static inline u32 gr_fecs_new_ctx_target_v(u32 r) | |||
1342 | { | 1342 | { |
1343 | return (r >> 28) & 0x3; | 1343 | return (r >> 28) & 0x3; |
1344 | } | 1344 | } |
1345 | static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void) | ||
1346 | { | ||
1347 | return 0x0; | ||
1348 | } | ||
1349 | static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void) | ||
1350 | { | ||
1351 | return 0x30000000; | ||
1352 | } | ||
1345 | static inline u32 gr_fecs_new_ctx_valid_s(void) | 1353 | static inline u32 gr_fecs_new_ctx_valid_s(void) |
1346 | { | 1354 | { |
1347 | return 1; | 1355 | return 1; |
@@ -1394,6 +1402,14 @@ static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r) | |||
1394 | { | 1402 | { |
1395 | return (r >> 28) & 0x3; | 1403 | return (r >> 28) & 0x3; |
1396 | } | 1404 | } |
1405 | static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void) | ||
1406 | { | ||
1407 | return 0x0; | ||
1408 | } | ||
1409 | static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void) | ||
1410 | { | ||
1411 | return 0x30000000; | ||
1412 | } | ||
1397 | static inline u32 gr_fecs_arb_ctx_cmd_r(void) | 1413 | static inline u32 gr_fecs_arb_ctx_cmd_r(void) |
1398 | { | 1414 | { |
1399 | return 0x00409a10; | 1415 | return 0x00409a10; |
diff --git a/drivers/gpu/nvgpu/gp106/sec2_gp106.c b/drivers/gpu/nvgpu/gp106/sec2_gp106.c index f8b32f8f..8f34edd1 100644 --- a/drivers/gpu/nvgpu/gp106/sec2_gp106.c +++ b/drivers/gpu/nvgpu/gp106/sec2_gp106.c | |||
@@ -169,7 +169,9 @@ int bl_bootstrap_sec2(struct pmu_gk20a *pmu, | |||
169 | pwr_pmu_new_instblk_ptr_f( | 169 | pwr_pmu_new_instblk_ptr_f( |
170 | gk20a_mm_inst_block_addr(g, &mm->pmu.inst_block) >> 12) | | 170 | gk20a_mm_inst_block_addr(g, &mm->pmu.inst_block) >> 12) | |
171 | pwr_pmu_new_instblk_valid_f(1) | | 171 | pwr_pmu_new_instblk_valid_f(1) | |
172 | pwr_pmu_new_instblk_target_sys_coh_f()); | 172 | gk20a_aperture_mask(g, &mm->pmu.inst_block, |
173 | pwr_pmu_new_instblk_target_sys_coh_f(), | ||
174 | pwr_pmu_new_instblk_target_fb_f())); | ||
173 | 175 | ||
174 | data = gk20a_readl(g, psec_falcon_debug1_r()); | 176 | data = gk20a_readl(g, psec_falcon_debug1_r()); |
175 | data |= psec_falcon_debug1_ctxsw_mode_m(); | 177 | data |= psec_falcon_debug1_ctxsw_mode_m(); |
@@ -313,7 +315,9 @@ void init_pmu_setup_hw1(struct gk20a *g) | |||
313 | pwr_pmu_new_instblk_ptr_f( | 315 | pwr_pmu_new_instblk_ptr_f( |
314 | gk20a_mm_inst_block_addr(g, &mm->pmu.inst_block) >> 12) | | 316 | gk20a_mm_inst_block_addr(g, &mm->pmu.inst_block) >> 12) | |
315 | pwr_pmu_new_instblk_valid_f(1) | | 317 | pwr_pmu_new_instblk_valid_f(1) | |
316 | pwr_pmu_new_instblk_target_sys_coh_f()); | 318 | gk20a_aperture_mask(g, &mm->pmu.inst_block, |
319 | pwr_pmu_new_instblk_target_sys_coh_f(), | ||
320 | pwr_pmu_new_instblk_target_fb_f())); | ||
317 | 321 | ||
318 | /*Copying pmu cmdline args*/ | 322 | /*Copying pmu cmdline args*/ |
319 | g->ops.pmu_ver.set_pmu_cmdline_args_cpu_freq(pmu, | 323 | g->ops.pmu_ver.set_pmu_cmdline_args_cpu_freq(pmu, |