diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-10-17 13:26:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-21 16:44:04 -0400 |
commit | 2fd1ee0ca784e4235766601d6a7ef52ba1f0c519 (patch) | |
tree | f1a01d1abf418d0f0a8a5d3fe58f3928c2bc13bc /drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h | |
parent | 35d2db64e28df6d65fed381c793f0954eed5eb7b (diff) |
gpu: nvgpu: gv11b: update ramfc
Updated ramfc:
- To include channel veid info
- Set valid context bit
- Enabled userd writeback
JIRA GV11B-11
Change-Id: I0e8c62fe0dee02071b0ca60f157151038ab5c09b
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1237764
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h index 46772ff4..11874209 100644 --- a/drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/hw_ram_gv11b.h | |||
@@ -178,6 +178,10 @@ static inline u32 ram_in_engine_cs_fg_f(void) | |||
178 | { | 178 | { |
179 | return 0x8; | 179 | return 0x8; |
180 | } | 180 | } |
181 | static inline u32 ram_in_engine_wfi_mode_f(u32 v) | ||
182 | { | ||
183 | return (v & 0x1) << 2; | ||
184 | } | ||
181 | static inline u32 ram_in_engine_wfi_mode_w(void) | 185 | static inline u32 ram_in_engine_wfi_mode_w(void) |
182 | { | 186 | { |
183 | return 132; | 187 | return 132; |
@@ -186,17 +190,13 @@ static inline u32 ram_in_engine_wfi_mode_physical_v(void) | |||
186 | { | 190 | { |
187 | return 0x00000000; | 191 | return 0x00000000; |
188 | } | 192 | } |
189 | static inline u32 ram_in_engine_wfi_mode_physical_f(void) | ||
190 | { | ||
191 | return 0x0; | ||
192 | } | ||
193 | static inline u32 ram_in_engine_wfi_mode_virtual_v(void) | 193 | static inline u32 ram_in_engine_wfi_mode_virtual_v(void) |
194 | { | 194 | { |
195 | return 0x00000001; | 195 | return 0x00000001; |
196 | } | 196 | } |
197 | static inline u32 ram_in_engine_wfi_mode_virtual_f(void) | 197 | static inline u32 ram_in_engine_wfi_target_f(u32 v) |
198 | { | 198 | { |
199 | return 0x4; | 199 | return (v & 0x3) << 0; |
200 | } | 200 | } |
201 | static inline u32 ram_in_engine_wfi_target_w(void) | 201 | static inline u32 ram_in_engine_wfi_target_w(void) |
202 | { | 202 | { |
@@ -206,26 +206,14 @@ static inline u32 ram_in_engine_wfi_target_sys_mem_coh_v(void) | |||
206 | { | 206 | { |
207 | return 0x00000002; | 207 | return 0x00000002; |
208 | } | 208 | } |
209 | static inline u32 ram_in_engine_wfi_target_sys_mem_coh_f(void) | 209 | static inline u32 ram_in_engine_wfi_target_sys_mem_ncoh_v(void) |
210 | { | ||
211 | return 0x2; | ||
212 | } | ||
213 | static inline u32 ram_in_engine_wfi_target_sys_mem_nocoh_v(void) | ||
214 | { | 210 | { |
215 | return 0x00000003; | 211 | return 0x00000003; |
216 | } | 212 | } |
217 | static inline u32 ram_in_engine_wfi_target_sys_mem_nocoh_f(void) | ||
218 | { | ||
219 | return 0x3; | ||
220 | } | ||
221 | static inline u32 ram_in_engine_wfi_target_local_mem_v(void) | 213 | static inline u32 ram_in_engine_wfi_target_local_mem_v(void) |
222 | { | 214 | { |
223 | return 0x00000000; | 215 | return 0x00000000; |
224 | } | 216 | } |
225 | static inline u32 ram_in_engine_wfi_target_local_mem_f(void) | ||
226 | { | ||
227 | return 0x0; | ||
228 | } | ||
229 | static inline u32 ram_in_engine_wfi_ptr_lo_f(u32 v) | 217 | static inline u32 ram_in_engine_wfi_ptr_lo_f(u32 v) |
230 | { | 218 | { |
231 | return (v & 0xfffff) << 12; | 219 | return (v & 0xfffff) << 12; |
@@ -582,6 +570,10 @@ static inline u32 ram_fc_chid_id_w(void) | |||
582 | { | 570 | { |
583 | return 0; | 571 | return 0; |
584 | } | 572 | } |
573 | static inline u32 ram_fc_config_w(void) | ||
574 | { | ||
575 | return 61; | ||
576 | } | ||
585 | static inline u32 ram_fc_runlist_timeslice_w(void) | 577 | static inline u32 ram_fc_runlist_timeslice_w(void) |
586 | { | 578 | { |
587 | return 62; | 579 | return 62; |