diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-05-03 16:55:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-30 11:43:35 -0400 |
commit | 77199c0225457c48acb2dca89d0bf93d05b33231 (patch) | |
tree | 8a14f1f8c5f0a1ac2707c4725ec52995493838cc /drivers/gpu/nvgpu/include | |
parent | 0181a4e60248c2e3fbb46aa3a33c6154df8b5c5f (diff) |
gpu: nvgpu: gv11b: init enable_exceptions gr ops
Enable FE, MEMFMT, DS and GPC exceptions only.
Make sure corresponding HWW_ESR are enabled too.
JIRA GPUT19X-75
Change-Id: Icf47b7e531dd72b59cbc6ac54b5902187f703d61
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1474859
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 28 |
1 files changed, 28 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 9917f86d..2d5afb29 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 | |||
@@ -194,6 +194,34 @@ static inline u32 gr_exception_en_fe_m(void) | |||
194 | { | 194 | { |
195 | return 0x1 << 0; | 195 | return 0x1 << 0; |
196 | } | 196 | } |
197 | static inline u32 gr_exception_en_fe_enabled_f(void) | ||
198 | { | ||
199 | return 0x1; | ||
200 | } | ||
201 | static inline u32 gr_exception_en_gpc_m(void) | ||
202 | { | ||
203 | return 0x1 << 24; | ||
204 | } | ||
205 | static inline u32 gr_exception_en_gpc_enabled_f(void) | ||
206 | { | ||
207 | return 0x1000000; | ||
208 | } | ||
209 | static inline u32 gr_exception_en_memfmt_m(void) | ||
210 | { | ||
211 | return 0x1 << 1; | ||
212 | } | ||
213 | static inline u32 gr_exception_en_memfmt_enabled_f(void) | ||
214 | { | ||
215 | return 0x2; | ||
216 | } | ||
217 | static inline u32 gr_exception_en_ds_m(void) | ||
218 | { | ||
219 | return 0x1 << 4; | ||
220 | } | ||
221 | static inline u32 gr_exception_en_ds_enabled_f(void) | ||
222 | { | ||
223 | return 0x10; | ||
224 | } | ||
197 | static inline u32 gr_exception1_en_r(void) | 225 | static inline u32 gr_exception1_en_r(void) |
198 | { | 226 | { |
199 | return 0x00400130; | 227 | return 0x00400130; |