summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-07-09 17:00:24 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-10 02:34:19 -0400
commitcc940da42f34568d6327ee20653725d11b1a3258 (patch)
tree4d32ca9aeecaf149848af68550ea5ab64b76cfd8 /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
parentd9ee7aff0455ad79caf395cedd53c3e092d2538c (diff)
gpu: nvgpu: gv11b: enable and handle mpc exception
Implement gr ops to handle MPC exception triggered per TPC JIRA GPUT19X-69 Change-Id: Ia92b1d51ad896116b25d71e07ed26f1539475be8 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master/r/1515915 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
index 051961d2..53dc7c87 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
@@ -902,6 +902,22 @@ static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void)
902{ 902{
903 return 0x2; 903 return 0x2;
904} 904}
905static inline u32 gr_gpc0_tpc0_mpc_hww_esr_r(void)
906{
907 return 0x00504430;
908}
909static inline u32 gr_gpc0_tpc0_mpc_hww_esr_reset_trigger_f(void)
910{
911 return 0x40000000;
912}
913static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_r(void)
914{
915 return 0x00504434;
916}
917static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_veid_v(u32 r)
918{
919 return (r >> 0) & 0x3f;
920}
905static inline u32 gr_pri_be0_crop_status1_r(void) 921static inline u32 gr_pri_be0_crop_status1_r(void)
906{ 922{
907 return 0x00410134; 923 return 0x00410134;
@@ -3470,6 +3486,10 @@ static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3470{ 3486{
3471 return 0x1; 3487 return 0x1;
3472} 3488}
3489static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_mpc_enabled_f(void)
3490{
3491 return 0x10;
3492}
3473static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void) 3493static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3474{ 3494{
3475 return 0x0050450c; 3495 return 0x0050450c;
@@ -3482,6 +3502,10 @@ static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3482{ 3502{
3483 return 0x2; 3503 return 0x2;
3484} 3504}
3505static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_mpc_enabled_f(void)
3506{
3507 return 0x10;
3508}
3485static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void) 3509static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3486{ 3510{
3487 return 0x0041ac94; 3511 return 0x0041ac94;
@@ -3618,6 +3642,14 @@ static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3618{ 3642{
3619 return 0x00000001; 3643 return 0x00000001;
3620} 3644}
3645static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_m(void)
3646{
3647 return 0x1 << 4;
3648}
3649static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_pending_f(void)
3650{
3651 return 0x10;
3652}
3621static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_r(void) 3653static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_r(void)
3622{ 3654{
3623 return 0x00504704; 3655 return 0x00504704;