summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-03-04 04:25:32 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:57:57 -0400
commite9f2436c290c2c02b25f30df11ee73ebe0f8953a (patch)
tree984cd16fda4a1b0f8b6dd6bd25348d046c951df2 /drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h
parenta0dcd3b203cb5c2eb3b5bb83903a8aece67b70ec (diff)
gpu: nvgpu: handle memfmt exception
In gk20a_gr_isr(), handle memfmt exception as below : - read NV_PGRAPH_PRI_MEMFMT_HWW_ESR - debug print for contents of above register - write same value back to NV_PGRAPH_PRI_MEMFMT_HWW_ESR and clear the exception Bug 200078514 Change-Id: I5b9afacd7f99b5a37de953041582b3a53b863642 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/713713 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h
index 543c7773..868b8fe7 100644
--- a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h
@@ -166,6 +166,10 @@ static inline u32 gr_exception_gpc_m(void)
166{ 166{
167 return 0x1 << 24; 167 return 0x1 << 24;
168} 168}
169static inline u32 gr_exception_memfmt_m(void)
170{
171 return 0x1 << 1;
172}
169static inline u32 gr_exception1_r(void) 173static inline u32 gr_exception1_r(void)
170{ 174{
171 return 0x00400118; 175 return 0x00400118;