diff options
author | Seema Khowala <seemaj@nvidia.com> | 2016-11-02 13:22:45 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-11-03 17:19:26 -0400 |
commit | df91b07944196556c7245c4e05f8de737f47ff1d (patch) | |
tree | b946af4c1d6e73bbfdc3ed3ff466e6fa4bd5683c /drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h | |
parent | 2c23fd19ad62a58fc35ac4c08760915abc74dc63 (diff) |
gpu: nvgpu: gv11b: hw headers for mmu fault
JIRA GV11B-7
Change-Id: I9d1a530c668cc3b9e27a6efb4761f68916e85b43
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1246513
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
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 | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h index 4ca83ea4..228bf5f2 100644 --- a/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/hw_ctxsw_prog_gv11b.h | |||
@@ -250,6 +250,70 @@ static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r) | |||
250 | { | 250 | { |
251 | return (r >> 0) & 0xffff; | 251 | return (r >> 0) & 0xffff; |
252 | } | 252 | } |
253 | static inline u32 ctxsw_prog_main_image_global_cb_ptr_o(void) | ||
254 | { | ||
255 | return 0x000000b8; | ||
256 | } | ||
257 | static inline u32 ctxsw_prog_main_image_global_cb_ptr_v_f(u32 v) | ||
258 | { | ||
259 | return (v & 0xffffffff) << 0; | ||
260 | } | ||
261 | static inline u32 ctxsw_prog_main_image_global_cb_ptr_hi_o(void) | ||
262 | { | ||
263 | return 0x000000bc; | ||
264 | } | ||
265 | static inline u32 ctxsw_prog_main_image_global_cb_ptr_hi_v_f(u32 v) | ||
266 | { | ||
267 | return (v & 0x1ffff) << 0; | ||
268 | } | ||
269 | static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_o(void) | ||
270 | { | ||
271 | return 0x000000c0; | ||
272 | } | ||
273 | static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_v_f(u32 v) | ||
274 | { | ||
275 | return (v & 0xffffffff) << 0; | ||
276 | } | ||
277 | static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_hi_o(void) | ||
278 | { | ||
279 | return 0x000000c4; | ||
280 | } | ||
281 | static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_hi_v_f(u32 v) | ||
282 | { | ||
283 | return (v & 0x1ffff) << 0; | ||
284 | } | ||
285 | static inline u32 ctxsw_prog_main_image_control_block_ptr_o(void) | ||
286 | { | ||
287 | return 0x000000c8; | ||
288 | } | ||
289 | static inline u32 ctxsw_prog_main_image_control_block_ptr_v_f(u32 v) | ||
290 | { | ||
291 | return (v & 0xffffffff) << 0; | ||
292 | } | ||
293 | static inline u32 ctxsw_prog_main_image_control_block_ptr_hi_o(void) | ||
294 | { | ||
295 | return 0x000000cc; | ||
296 | } | ||
297 | static inline u32 ctxsw_prog_main_image_control_block_ptr_hi_v_f(u32 v) | ||
298 | { | ||
299 | return (v & 0x1ffff) << 0; | ||
300 | } | ||
301 | static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_lo_o(void) | ||
302 | { | ||
303 | return 0x000000e0; | ||
304 | } | ||
305 | static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_lo_v_f(u32 v) | ||
306 | { | ||
307 | return (v & 0xffffffff) << 0; | ||
308 | } | ||
309 | static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_hi_o(void) | ||
310 | { | ||
311 | return 0x000000e4; | ||
312 | } | ||
313 | static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_hi_v_f(u32 v) | ||
314 | { | ||
315 | return (v & 0x1ffff) << 0; | ||
316 | } | ||
253 | static inline u32 ctxsw_prog_local_image_ppc_info_o(void) | 317 | static inline u32 ctxsw_prog_local_image_ppc_info_o(void) |
254 | { | 318 | { |
255 | return 0x000000f4; | 319 | return 0x000000f4; |