diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_gr_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_gr_gp10b.h | 110 |
1 files changed, 109 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_gr_gp10b.h index 347e530d..9569bb9c 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_gr_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_gr_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -466,6 +466,70 @@ static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void) | |||
466 | { | 466 | { |
467 | return 0x00504238; | 467 | return 0x00504238; |
468 | } | 468 | } |
469 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void) | ||
470 | { | ||
471 | return 0x005046b8; | ||
472 | } | ||
473 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_pending_f(void) | ||
474 | { | ||
475 | return 0x10; | ||
476 | } | ||
477 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp1_pending_f(void) | ||
478 | { | ||
479 | return 0x20; | ||
480 | } | ||
481 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp2_pending_f(void) | ||
482 | { | ||
483 | return 0x40; | ||
484 | } | ||
485 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp3_pending_f(void) | ||
486 | { | ||
487 | return 0x80; | ||
488 | } | ||
489 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_pending_f(void) | ||
490 | { | ||
491 | return 0x100; | ||
492 | } | ||
493 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp1_pending_f(void) | ||
494 | { | ||
495 | return 0x200; | ||
496 | } | ||
497 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp2_pending_f(void) | ||
498 | { | ||
499 | return 0x400; | ||
500 | } | ||
501 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp3_pending_f(void) | ||
502 | { | ||
503 | return 0x800; | ||
504 | } | ||
505 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_r(void) | ||
506 | { | ||
507 | return 0x005044a0; | ||
508 | } | ||
509 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm0_pending_f(void) | ||
510 | { | ||
511 | return 0x1; | ||
512 | } | ||
513 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm1_pending_f(void) | ||
514 | { | ||
515 | return 0x2; | ||
516 | } | ||
517 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm0_pending_f(void) | ||
518 | { | ||
519 | return 0x10; | ||
520 | } | ||
521 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm1_pending_f(void) | ||
522 | { | ||
523 | return 0x20; | ||
524 | } | ||
525 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm0_pending_f(void) | ||
526 | { | ||
527 | return 0x100; | ||
528 | } | ||
529 | static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm1_pending_f(void) | ||
530 | { | ||
531 | return 0x200; | ||
532 | } | ||
469 | static inline u32 gr_pri_be0_crop_status1_r(void) | 533 | static inline u32 gr_pri_be0_crop_status1_r(void) |
470 | { | 534 | { |
471 | return 0x00410134; | 535 | return 0x00410134; |
@@ -3158,6 +3222,14 @@ static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(vo | |||
3158 | { | 3222 | { |
3159 | return 0x10; | 3223 | return 0x10; |
3160 | } | 3224 | } |
3225 | static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_sec_error_report_f(void) | ||
3226 | { | ||
3227 | return 0x20000000; | ||
3228 | } | ||
3229 | static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_ded_error_report_f(void) | ||
3230 | { | ||
3231 | return 0x40000000; | ||
3232 | } | ||
3161 | static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void) | 3233 | static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void) |
3162 | { | 3234 | { |
3163 | return 0x20; | 3235 | return 0x20; |
@@ -3174,6 +3246,10 @@ static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void) | |||
3174 | { | 3246 | { |
3175 | return 0x2; | 3247 | return 0x2; |
3176 | } | 3248 | } |
3249 | static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void) | ||
3250 | { | ||
3251 | return 0x1; | ||
3252 | } | ||
3177 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void) | 3253 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void) |
3178 | { | 3254 | { |
3179 | return 0x0050450c; | 3255 | return 0x0050450c; |
@@ -3210,6 +3286,14 @@ static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void) | |||
3210 | { | 3286 | { |
3211 | return 0x00504508; | 3287 | return 0x00504508; |
3212 | } | 3288 | } |
3289 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r) | ||
3290 | { | ||
3291 | return (r >> 0) & 0x1; | ||
3292 | } | ||
3293 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void) | ||
3294 | { | ||
3295 | return 0x00000001; | ||
3296 | } | ||
3213 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r) | 3297 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r) |
3214 | { | 3298 | { |
3215 | return (r >> 1) & 0x1; | 3299 | return (r >> 1) & 0x1; |
@@ -3322,6 +3406,14 @@ static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void) | |||
3322 | { | 3406 | { |
3323 | return 0x10; | 3407 | return 0x10; |
3324 | } | 3408 | } |
3409 | static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_sec_error_pending_f(void) | ||
3410 | { | ||
3411 | return 0x20000000; | ||
3412 | } | ||
3413 | static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_ded_error_pending_f(void) | ||
3414 | { | ||
3415 | return 0x40000000; | ||
3416 | } | ||
3325 | static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void) | 3417 | static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void) |
3326 | { | 3418 | { |
3327 | return 0x20; | 3419 | return 0x20; |
@@ -3330,6 +3422,22 @@ static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f( | |||
3330 | { | 3422 | { |
3331 | return 0x40; | 3423 | return 0x40; |
3332 | } | 3424 | } |
3425 | static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void) | ||
3426 | { | ||
3427 | return 0x00504224; | ||
3428 | } | ||
3429 | static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void) | ||
3430 | { | ||
3431 | return 0x1; | ||
3432 | } | ||
3433 | static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_sec_pending_f(void) | ||
3434 | { | ||
3435 | return 0x80; | ||
3436 | } | ||
3437 | static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_ded_pending_f(void) | ||
3438 | { | ||
3439 | return 0x100; | ||
3440 | } | ||
3333 | static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void) | 3441 | static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void) |
3334 | { | 3442 | { |
3335 | return 0x00504648; | 3443 | return 0x00504648; |