diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-09-28 19:55:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-29 16:17:54 -0400 |
commit | 507081b2eae666f9c3e713fd7d9d97fdc8b6c56f (patch) | |
tree | 8d3bce7a202a2b0e408fbe11ac3c1ccdbb32e164 /drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h | |
parent | 09168aac40b22ba264de6a7fc1e5264528b1fe9f (diff) |
gpu: nvgpu: gv11b: kernel hw header update
Kernel hardware headers updtae related to ctxsw,
ramfc and pbdma.
JIRA GV11B-21
Change-Id: I99588b420a814068eaf894e999a8ad8e6234e26c
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1228760
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h | 96 |
1 files changed, 92 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h index 57a6b28d..4ca83ea4 100644 --- a/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h | |||
@@ -58,6 +58,42 @@ static inline u32 ctxsw_prog_main_image_num_gpcs_o(void) | |||
58 | { | 58 | { |
59 | return 0x00000008; | 59 | return 0x00000008; |
60 | } | 60 | } |
61 | static inline u32 ctxsw_prog_main_image_ctl_o(void) | ||
62 | { | ||
63 | return 0x0000000c; | ||
64 | } | ||
65 | static inline u32 ctxsw_prog_main_image_ctl_type_f(u32 v) | ||
66 | { | ||
67 | return (v & 0x3f) << 0; | ||
68 | } | ||
69 | static inline u32 ctxsw_prog_main_image_ctl_type_undefined_v(void) | ||
70 | { | ||
71 | return 0x00000000; | ||
72 | } | ||
73 | static inline u32 ctxsw_prog_main_image_ctl_type_opengl_v(void) | ||
74 | { | ||
75 | return 0x00000008; | ||
76 | } | ||
77 | static inline u32 ctxsw_prog_main_image_ctl_type_dx9_v(void) | ||
78 | { | ||
79 | return 0x00000010; | ||
80 | } | ||
81 | static inline u32 ctxsw_prog_main_image_ctl_type_dx10_v(void) | ||
82 | { | ||
83 | return 0x00000011; | ||
84 | } | ||
85 | static inline u32 ctxsw_prog_main_image_ctl_type_dx11_v(void) | ||
86 | { | ||
87 | return 0x00000012; | ||
88 | } | ||
89 | static inline u32 ctxsw_prog_main_image_ctl_type_compute_v(void) | ||
90 | { | ||
91 | return 0x00000020; | ||
92 | } | ||
93 | static inline u32 ctxsw_prog_main_image_ctl_type_per_veid_header_v(void) | ||
94 | { | ||
95 | return 0x00000021; | ||
96 | } | ||
61 | static inline u32 ctxsw_prog_main_image_patch_count_o(void) | 97 | static inline u32 ctxsw_prog_main_image_patch_count_o(void) |
62 | { | 98 | { |
63 | return 0x00000010; | 99 | return 0x00000010; |
@@ -142,6 +178,62 @@ static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void) | |||
142 | { | 178 | { |
143 | return 0x000000f8; | 179 | return 0x000000f8; |
144 | } | 180 | } |
181 | static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_o(void) | ||
182 | { | ||
183 | return 0x00000060; | ||
184 | } | ||
185 | static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_v_f(u32 v) | ||
186 | { | ||
187 | return (v & 0x1ffff) << 0; | ||
188 | } | ||
189 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_o(void) | ||
190 | { | ||
191 | return 0x00000064; | ||
192 | } | ||
193 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_v_f(u32 v) | ||
194 | { | ||
195 | return (v & 0x1ffff) << 0; | ||
196 | } | ||
197 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void) | ||
198 | { | ||
199 | return 0x00000068; | ||
200 | } | ||
201 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_v_f(u32 v) | ||
202 | { | ||
203 | return (v & 0xffffffff) << 0; | ||
204 | } | ||
205 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_o(void) | ||
206 | { | ||
207 | return 0x00000070; | ||
208 | } | ||
209 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_v_f(u32 v) | ||
210 | { | ||
211 | return (v & 0x1ffff) << 0; | ||
212 | } | ||
213 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_o(void) | ||
214 | { | ||
215 | return 0x00000074; | ||
216 | } | ||
217 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_v_f(u32 v) | ||
218 | { | ||
219 | return (v & 0xffffffff) << 0; | ||
220 | } | ||
221 | static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_o(void) | ||
222 | { | ||
223 | return 0x00000078; | ||
224 | } | ||
225 | static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_v_f(u32 v) | ||
226 | { | ||
227 | return (v & 0x1ffff) << 0; | ||
228 | } | ||
229 | static inline u32 ctxsw_prog_main_image_context_buffer_ptr_o(void) | ||
230 | { | ||
231 | return 0x0000007c; | ||
232 | } | ||
233 | static inline u32 ctxsw_prog_main_image_context_buffer_ptr_v_f(u32 v) | ||
234 | { | ||
235 | return (v & 0xffffffff) << 0; | ||
236 | } | ||
145 | static inline u32 ctxsw_prog_main_image_magic_value_o(void) | 237 | static inline u32 ctxsw_prog_main_image_magic_value_o(void) |
146 | { | 238 | { |
147 | return 0x000000fc; | 239 | return 0x000000fc; |
@@ -270,10 +362,6 @@ static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp | |||
270 | { | 362 | { |
271 | return 0x1; | 363 | return 0x1; |
272 | } | 364 | } |
273 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void) | ||
274 | { | ||
275 | return 0x00000068; | ||
276 | } | ||
277 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) | 365 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) |
278 | { | 366 | { |
279 | return 0x00000084; | 367 | return 0x00000084; |