summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2016-09-28 19:55:36 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-09-29 16:17:54 -0400
commit507081b2eae666f9c3e713fd7d9d97fdc8b6c56f (patch)
tree8d3bce7a202a2b0e408fbe11ac3c1ccdbb32e164 /drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h
parent09168aac40b22ba264de6a7fc1e5264528b1fe9f (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.h96
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}
61static inline u32 ctxsw_prog_main_image_ctl_o(void)
62{
63 return 0x0000000c;
64}
65static inline u32 ctxsw_prog_main_image_ctl_type_f(u32 v)
66{
67 return (v & 0x3f) << 0;
68}
69static inline u32 ctxsw_prog_main_image_ctl_type_undefined_v(void)
70{
71 return 0x00000000;
72}
73static inline u32 ctxsw_prog_main_image_ctl_type_opengl_v(void)
74{
75 return 0x00000008;
76}
77static inline u32 ctxsw_prog_main_image_ctl_type_dx9_v(void)
78{
79 return 0x00000010;
80}
81static inline u32 ctxsw_prog_main_image_ctl_type_dx10_v(void)
82{
83 return 0x00000011;
84}
85static inline u32 ctxsw_prog_main_image_ctl_type_dx11_v(void)
86{
87 return 0x00000012;
88}
89static inline u32 ctxsw_prog_main_image_ctl_type_compute_v(void)
90{
91 return 0x00000020;
92}
93static inline u32 ctxsw_prog_main_image_ctl_type_per_veid_header_v(void)
94{
95 return 0x00000021;
96}
61static inline u32 ctxsw_prog_main_image_patch_count_o(void) 97static 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}
181static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_o(void)
182{
183 return 0x00000060;
184}
185static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_v_f(u32 v)
186{
187 return (v & 0x1ffff) << 0;
188}
189static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_o(void)
190{
191 return 0x00000064;
192}
193static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_v_f(u32 v)
194{
195 return (v & 0x1ffff) << 0;
196}
197static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
198{
199 return 0x00000068;
200}
201static inline u32 ctxsw_prog_main_image_full_preemption_ptr_v_f(u32 v)
202{
203 return (v & 0xffffffff) << 0;
204}
205static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_o(void)
206{
207 return 0x00000070;
208}
209static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_v_f(u32 v)
210{
211 return (v & 0x1ffff) << 0;
212}
213static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_o(void)
214{
215 return 0x00000074;
216}
217static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_v_f(u32 v)
218{
219 return (v & 0xffffffff) << 0;
220}
221static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_o(void)
222{
223 return 0x00000078;
224}
225static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_v_f(u32 v)
226{
227 return (v & 0x1ffff) << 0;
228}
229static inline u32 ctxsw_prog_main_image_context_buffer_ptr_o(void)
230{
231 return 0x0000007c;
232}
233static inline u32 ctxsw_prog_main_image_context_buffer_ptr_v_f(u32 v)
234{
235 return (v & 0xffffffff) << 0;
236}
145static inline u32 ctxsw_prog_main_image_magic_value_o(void) 237static 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}
273static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
274{
275 return 0x00000068;
276}
277static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) 365static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void)
278{ 366{
279 return 0x00000084; 367 return 0x00000084;