diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-03-22 18:17:29 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-07 16:54:35 -0400 |
commit | 327644a1a0af43ce2e369bd0a87b7e2142368285 (patch) | |
tree | 25276e1a5f058b58173039064ef6c3f457475827 /drivers/gpu/nvgpu | |
parent | 6c01d88ad90cf8c6ce59b2049e8674a493b35200 (diff) |
gpu: nvgpu: hw definitions for FECS trace on gm20b
Bug 1648908
Change-Id: I3b9a1ebaf062f15db397acd81b8312dc8daa9193
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1117262
Reviewed-on: http://git-master/r/1121233
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | 188 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | 4 |
2 files changed, 192 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h index a44eac16..c9bf4b4f 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |||
@@ -258,6 +258,194 @@ static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(v | |||
258 | { | 258 | { |
259 | return 0x0; | 259 | return 0x0; |
260 | } | 260 | } |
261 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void) | ||
262 | { | ||
263 | return 0x000000ac; | ||
264 | } | ||
265 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v) | ||
266 | { | ||
267 | return (v & 0xffff) << 0; | ||
268 | } | ||
269 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void) | ||
270 | { | ||
271 | return 0x000000b0; | ||
272 | } | ||
273 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void) | ||
274 | { | ||
275 | return 0xfffffff << 0; | ||
276 | } | ||
277 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void) | ||
278 | { | ||
279 | return 0x3 << 28; | ||
280 | } | ||
281 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void) | ||
282 | { | ||
283 | return 0x0; | ||
284 | } | ||
285 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void) | ||
286 | { | ||
287 | return 0x20000000; | ||
288 | } | ||
289 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void) | ||
290 | { | ||
291 | return 0x30000000; | ||
292 | } | ||
293 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void) | ||
294 | { | ||
295 | return 0x000000b4; | ||
296 | } | ||
297 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v) | ||
298 | { | ||
299 | return (v & 0xffffffff) << 0; | ||
300 | } | ||
301 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void) | ||
302 | { | ||
303 | return 0x00000080; | ||
304 | } | ||
305 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void) | ||
306 | { | ||
307 | return 0x00000020; | ||
308 | } | ||
309 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void) | ||
310 | { | ||
311 | return 0x00000000; | ||
312 | } | ||
313 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void) | ||
314 | { | ||
315 | return 0x00000000; | ||
316 | } | ||
317 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void) | ||
318 | { | ||
319 | return 0x00000004; | ||
320 | } | ||
321 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void) | ||
322 | { | ||
323 | return 0x600dbeef; | ||
324 | } | ||
325 | static inline u32 ctxsw_prog_record_timestamp_context_id_o(void) | ||
326 | { | ||
327 | return 0x00000008; | ||
328 | } | ||
329 | static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void) | ||
330 | { | ||
331 | return 0x0000000c; | ||
332 | } | ||
333 | static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void) | ||
334 | { | ||
335 | return 0x00000010; | ||
336 | } | ||
337 | static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void) | ||
338 | { | ||
339 | return 0x00000014; | ||
340 | } | ||
341 | static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void) | ||
342 | { | ||
343 | return 0x00000018; | ||
344 | } | ||
345 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void) | ||
346 | { | ||
347 | return 0x0000001c; | ||
348 | } | ||
349 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v) | ||
350 | { | ||
351 | return (v & 0xffffff) << 0; | ||
352 | } | ||
353 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r) | ||
354 | { | ||
355 | return (r >> 0) & 0xffffff; | ||
356 | } | ||
357 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v) | ||
358 | { | ||
359 | return (v & 0xff) << 24; | ||
360 | } | ||
361 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void) | ||
362 | { | ||
363 | return 0xff << 24; | ||
364 | } | ||
365 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r) | ||
366 | { | ||
367 | return (r >> 24) & 0xff; | ||
368 | } | ||
369 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void) | ||
370 | { | ||
371 | return 0x00000001; | ||
372 | } | ||
373 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void) | ||
374 | { | ||
375 | return 0x1000000; | ||
376 | } | ||
377 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void) | ||
378 | { | ||
379 | return 0x00000002; | ||
380 | } | ||
381 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void) | ||
382 | { | ||
383 | return 0x2000000; | ||
384 | } | ||
385 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void) | ||
386 | { | ||
387 | return 0x0000000a; | ||
388 | } | ||
389 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void) | ||
390 | { | ||
391 | return 0xa000000; | ||
392 | } | ||
393 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void) | ||
394 | { | ||
395 | return 0x0000000b; | ||
396 | } | ||
397 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void) | ||
398 | { | ||
399 | return 0xb000000; | ||
400 | } | ||
401 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void) | ||
402 | { | ||
403 | return 0x0000000c; | ||
404 | } | ||
405 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void) | ||
406 | { | ||
407 | return 0xc000000; | ||
408 | } | ||
409 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void) | ||
410 | { | ||
411 | return 0x0000000d; | ||
412 | } | ||
413 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void) | ||
414 | { | ||
415 | return 0xd000000; | ||
416 | } | ||
417 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void) | ||
418 | { | ||
419 | return 0x00000003; | ||
420 | } | ||
421 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void) | ||
422 | { | ||
423 | return 0x3000000; | ||
424 | } | ||
425 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void) | ||
426 | { | ||
427 | return 0x00000004; | ||
428 | } | ||
429 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void) | ||
430 | { | ||
431 | return 0x4000000; | ||
432 | } | ||
433 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void) | ||
434 | { | ||
435 | return 0x00000005; | ||
436 | } | ||
437 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void) | ||
438 | { | ||
439 | return 0x5000000; | ||
440 | } | ||
441 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void) | ||
442 | { | ||
443 | return 0x000000ff; | ||
444 | } | ||
445 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void) | ||
446 | { | ||
447 | return 0xff000000; | ||
448 | } | ||
261 | static inline u32 ctxsw_prog_main_image_preemption_options_o(void) | 449 | static inline u32 ctxsw_prog_main_image_preemption_options_o(void) |
262 | { | 450 | { |
263 | return 0x00000060; | 451 | return 0x00000060; |
diff --git a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h index abe1d6a6..4930d4c7 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | |||
@@ -922,6 +922,10 @@ static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void) | |||
922 | { | 922 | { |
923 | return 0x21; | 923 | return 0x21; |
924 | } | 924 | } |
925 | static inline u32 gr_fecs_method_push_adr_write_timestamp_record_v(void) | ||
926 | { | ||
927 | return 0x0000003d; | ||
928 | } | ||
925 | static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void) | 929 | static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void) |
926 | { | 930 | { |
927 | return 0x00000004; | 931 | return 0x00000004; |