diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index 26e444cc..5fe40663 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -107,9 +107,13 @@ void gv11b_get_ch_runlist_entry(struct channel_gk20a *c, u32 *runlist) | |||
107 | ram_rl_entry_chan_runqueue_selector_f( | 107 | ram_rl_entry_chan_runqueue_selector_f( |
108 | c->t19x.runqueue_sel) | | 108 | c->t19x.runqueue_sel) | |
109 | ram_rl_entry_chan_userd_target_f( | 109 | ram_rl_entry_chan_userd_target_f( |
110 | ram_rl_entry_chan_userd_target_sys_mem_ncoh_v()) | | 110 | nvgpu_aperture_mask(g, &g->fifo.userd, |
111 | ram_rl_entry_chan_userd_target_sys_mem_ncoh_v(), | ||
112 | ram_rl_entry_chan_userd_target_vid_mem_v())) | | ||
111 | ram_rl_entry_chan_inst_target_f( | 113 | ram_rl_entry_chan_inst_target_f( |
112 | ram_rl_entry_chan_userd_target_sys_mem_ncoh_v()); | 114 | nvgpu_aperture_mask(g, &c->inst_block, |
115 | ram_rl_entry_chan_inst_target_sys_mem_ncoh_v(), | ||
116 | ram_rl_entry_chan_inst_target_vid_mem_v())); | ||
113 | 117 | ||
114 | addr_lo = u64_lo32(c->userd_iova) >> | 118 | addr_lo = u64_lo32(c->userd_iova) >> |
115 | ram_rl_entry_chan_userd_ptr_align_shift_v(); | 119 | ram_rl_entry_chan_userd_ptr_align_shift_v(); |
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index 84d21a9a..4951d3a4 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |||
@@ -158,12 +158,15 @@ void gv11b_subctx_commit_pdb(struct channel_gk20a *c, | |||
158 | u32 format_word; | 158 | u32 format_word; |
159 | u32 pdb_addr_lo, pdb_addr_hi; | 159 | u32 pdb_addr_lo, pdb_addr_hi; |
160 | u64 pdb_addr; | 160 | u64 pdb_addr; |
161 | u32 aperture = nvgpu_aperture_mask(g, vm->pdb.mem, | ||
162 | ram_in_sc_page_dir_base_target_sys_mem_ncoh_v(), | ||
163 | ram_in_sc_page_dir_base_target_vid_mem_v()); | ||
161 | 164 | ||
162 | pdb_addr = nvgpu_mem_get_addr(g, vm->pdb.mem); | 165 | pdb_addr = nvgpu_mem_get_addr(g, vm->pdb.mem); |
163 | pdb_addr_lo = u64_lo32(pdb_addr >> ram_in_base_shift_v()); | 166 | pdb_addr_lo = u64_lo32(pdb_addr >> ram_in_base_shift_v()); |
164 | pdb_addr_hi = u64_hi32(pdb_addr); | 167 | pdb_addr_hi = u64_hi32(pdb_addr); |
165 | format_word = ram_in_sc_page_dir_base_target_f( | 168 | format_word = ram_in_sc_page_dir_base_target_f( |
166 | ram_in_sc_page_dir_base_target_sys_mem_ncoh_v(), 0) | | 169 | aperture, 0) | |
167 | ram_in_sc_page_dir_base_vol_f( | 170 | ram_in_sc_page_dir_base_vol_f( |
168 | ram_in_sc_page_dir_base_vol_true_v(), 0) | | 171 | ram_in_sc_page_dir_base_vol_true_v(), 0) | |
169 | ram_in_sc_page_dir_base_fault_replay_tex_f(1, 0) | | 172 | ram_in_sc_page_dir_base_fault_replay_tex_f(1, 0) | |