summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_gr_gk20a.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gm206/hw_gr_gm206.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_gr_gm20b.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h4
5 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_gr_gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_gr_gk20a.h
index 7f6f58f3..455eef90 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_gr_gk20a.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_gr_gk20a.h
@@ -3066,6 +3066,10 @@ static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3066{ 3066{
3067 return 0x00502c90; 3067 return 0x00502c90;
3068} 3068}
3069static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3070{
3071 return (r >> 2) & 0x1;
3072}
3069static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) 3073static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3070{ 3074{
3071 return (r >> 16) & 0xff; 3075 return (r >> 16) & 0xff;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm206/hw_gr_gm206.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm206/hw_gr_gm206.h
index f0dea40a..34c46855 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm206/hw_gr_gm206.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm206/hw_gr_gm206.h
@@ -3078,6 +3078,10 @@ static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3078{ 3078{
3079 return 0x00502c90; 3079 return 0x00502c90;
3080} 3080}
3081static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3082{
3083 return (r >> 2) & 0x1;
3084}
3081static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) 3085static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3082{ 3086{
3083 return (r >> 16) & 0xff; 3087 return (r >> 16) & 0xff;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_gr_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_gr_gm20b.h
index bc966416..b6f0d047 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_gr_gm20b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_gr_gm20b.h
@@ -3138,6 +3138,10 @@ static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3138{ 3138{
3139 return 0x00502c90; 3139 return 0x00502c90;
3140} 3140}
3141static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3142{
3143 return (r >> 2) & 0x1;
3144}
3141static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) 3145static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3142{ 3146{
3143 return (r >> 16) & 0xff; 3147 return (r >> 16) & 0xff;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h
index c6490f7a..9b5a475e 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h
@@ -3382,6 +3382,10 @@ static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3382{ 3382{
3383 return 0x00502c90; 3383 return 0x00502c90;
3384} 3384}
3385static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3386{
3387 return (r >> 2) & 0x1;
3388}
3385static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) 3389static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3386{ 3390{
3387 return (r >> 16) & 0xff; 3391 return (r >> 16) & 0xff;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
index 43591166..4a87a629 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
@@ -3502,6 +3502,10 @@ static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3502{ 3502{
3503 return 0x00502c90; 3503 return 0x00502c90;
3504} 3504}
3505static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3506{
3507 return (r >> 2) & 0x1;
3508}
3505static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) 3509static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3506{ 3510{
3507 return (r >> 16) & 0xff; 3511 return (r >> 16) & 0xff;