diff options
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h | 24 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h index bdd749d0..09cbc793 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h | |||
@@ -284,6 +284,22 @@ static inline u32 gr_trapped_addr_subch_v(u32 r) | |||
284 | { | 284 | { |
285 | return (r >> 16U) & 0x7U; | 285 | return (r >> 16U) & 0x7U; |
286 | } | 286 | } |
287 | static inline u32 gr_trapped_addr_mme_generated_v(u32 r) | ||
288 | { | ||
289 | return (r >> 20U) & 0x1U; | ||
290 | } | ||
291 | static inline u32 gr_trapped_addr_datahigh_v(u32 r) | ||
292 | { | ||
293 | return (r >> 24U) & 0x1U; | ||
294 | } | ||
295 | static inline u32 gr_trapped_addr_priv_v(u32 r) | ||
296 | { | ||
297 | return (r >> 28U) & 0x1U; | ||
298 | } | ||
299 | static inline u32 gr_trapped_addr_status_v(u32 r) | ||
300 | { | ||
301 | return (r >> 31U) & 0x1U; | ||
302 | } | ||
287 | static inline u32 gr_trapped_data_lo_r(void) | 303 | static inline u32 gr_trapped_data_lo_r(void) |
288 | { | 304 | { |
289 | return 0x00400708U; | 305 | return 0x00400708U; |
@@ -292,6 +308,14 @@ static inline u32 gr_trapped_data_hi_r(void) | |||
292 | { | 308 | { |
293 | return 0x0040070cU; | 309 | return 0x0040070cU; |
294 | } | 310 | } |
311 | static inline u32 gr_trapped_data_mme_r(void) | ||
312 | { | ||
313 | return 0x00400710U; | ||
314 | } | ||
315 | static inline u32 gr_trapped_data_mme_pc_v(u32 r) | ||
316 | { | ||
317 | return (r >> 0U) & 0xfffU; | ||
318 | } | ||
295 | static inline u32 gr_status_r(void) | 319 | static inline u32 gr_status_r(void) |
296 | { | 320 | { |
297 | return 0x00400700U; | 321 | return 0x00400700U; |
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 3bdf2de2..692b7ba3 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 | |||
@@ -284,6 +284,22 @@ static inline u32 gr_trapped_addr_subch_v(u32 r) | |||
284 | { | 284 | { |
285 | return (r >> 16U) & 0x7U; | 285 | return (r >> 16U) & 0x7U; |
286 | } | 286 | } |
287 | static inline u32 gr_trapped_addr_mme_generated_v(u32 r) | ||
288 | { | ||
289 | return (r >> 20U) & 0x1U; | ||
290 | } | ||
291 | static inline u32 gr_trapped_addr_datahigh_v(u32 r) | ||
292 | { | ||
293 | return (r >> 24U) & 0x1U; | ||
294 | } | ||
295 | static inline u32 gr_trapped_addr_priv_v(u32 r) | ||
296 | { | ||
297 | return (r >> 28U) & 0x1U; | ||
298 | } | ||
299 | static inline u32 gr_trapped_addr_status_v(u32 r) | ||
300 | { | ||
301 | return (r >> 31U) & 0x1U; | ||
302 | } | ||
287 | static inline u32 gr_trapped_data_lo_r(void) | 303 | static inline u32 gr_trapped_data_lo_r(void) |
288 | { | 304 | { |
289 | return 0x00400708U; | 305 | return 0x00400708U; |
@@ -292,6 +308,14 @@ static inline u32 gr_trapped_data_hi_r(void) | |||
292 | { | 308 | { |
293 | return 0x0040070cU; | 309 | return 0x0040070cU; |
294 | } | 310 | } |
311 | static inline u32 gr_trapped_data_mme_r(void) | ||
312 | { | ||
313 | return 0x00400710U; | ||
314 | } | ||
315 | static inline u32 gr_trapped_data_mme_pc_v(u32 r) | ||
316 | { | ||
317 | return (r >> 0U) & 0xfffU; | ||
318 | } | ||
295 | static inline u32 gr_status_r(void) | 319 | static inline u32 gr_status_r(void) |
296 | { | 320 | { |
297 | return 0x00400700U; | 321 | return 0x00400700U; |