diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_gr_gk20a.h | 26 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 76 |
2 files changed, 101 insertions, 1 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 ef259bcf..3be17f41 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 | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -196,6 +196,22 @@ static inline u32 gr_exception_sked_m(void) | |||
196 | { | 196 | { |
197 | return 0x1U << 8U; | 197 | return 0x1U << 8U; |
198 | } | 198 | } |
199 | static inline u32 gr_exception_pd_m(void) | ||
200 | { | ||
201 | return 0x1U << 2U; | ||
202 | } | ||
203 | static inline u32 gr_exception_scc_m(void) | ||
204 | { | ||
205 | return 0x1U << 3U; | ||
206 | } | ||
207 | static inline u32 gr_exception_ssync_m(void) | ||
208 | { | ||
209 | return 0x1U << 5U; | ||
210 | } | ||
211 | static inline u32 gr_exception_mme_m(void) | ||
212 | { | ||
213 | return 0x1U << 7U; | ||
214 | } | ||
199 | static inline u32 gr_exception1_r(void) | 215 | static inline u32 gr_exception1_r(void) |
200 | { | 216 | { |
201 | return 0x00400118U; | 217 | return 0x00400118U; |
@@ -544,6 +560,10 @@ static inline u32 gr_fe_hww_esr_en_enable_f(void) | |||
544 | { | 560 | { |
545 | return 0x80000000U; | 561 | return 0x80000000U; |
546 | } | 562 | } |
563 | static inline u32 gr_fe_hww_esr_info_r(void) | ||
564 | { | ||
565 | return 0x004041b0U; | ||
566 | } | ||
547 | static inline u32 gr_fe_go_idle_timeout_r(void) | 567 | static inline u32 gr_fe_go_idle_timeout_r(void) |
548 | { | 568 | { |
549 | return 0x00404154U; | 569 | return 0x00404154U; |
@@ -592,6 +612,10 @@ static inline u32 gr_mme_hww_esr_en_enable_f(void) | |||
592 | { | 612 | { |
593 | return 0x80000000U; | 613 | return 0x80000000U; |
594 | } | 614 | } |
615 | static inline u32 gr_mme_hww_esr_info_r(void) | ||
616 | { | ||
617 | return 0x00404494U; | ||
618 | } | ||
595 | static inline u32 gr_memfmt_hww_esr_r(void) | 619 | static inline u32 gr_memfmt_hww_esr_r(void) |
596 | { | 620 | { |
597 | return 0x00404600U; | 621 | return 0x00404600U; |
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 a4bcce42..d34dcf33 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 | |||
@@ -184,6 +184,22 @@ static inline u32 gr_exception_sked_m(void) | |||
184 | { | 184 | { |
185 | return 0x1U << 8U; | 185 | return 0x1U << 8U; |
186 | } | 186 | } |
187 | static inline u32 gr_exception_pd_m(void) | ||
188 | { | ||
189 | return 0x1U << 2U; | ||
190 | } | ||
191 | static inline u32 gr_exception_scc_m(void) | ||
192 | { | ||
193 | return 0x1U << 3U; | ||
194 | } | ||
195 | static inline u32 gr_exception_ssync_m(void) | ||
196 | { | ||
197 | return 0x1U << 5U; | ||
198 | } | ||
199 | static inline u32 gr_exception_mme_m(void) | ||
200 | { | ||
201 | return 0x1U << 7U; | ||
202 | } | ||
187 | static inline u32 gr_exception1_r(void) | 203 | static inline u32 gr_exception1_r(void) |
188 | { | 204 | { |
189 | return 0x00400118U; | 205 | return 0x00400118U; |
@@ -232,6 +248,46 @@ static inline u32 gr_exception_en_ds_enabled_f(void) | |||
232 | { | 248 | { |
233 | return 0x10U; | 249 | return 0x10U; |
234 | } | 250 | } |
251 | static inline u32 gr_exception_en_pd_m(void) | ||
252 | { | ||
253 | return 0x1U << 2U; | ||
254 | } | ||
255 | static inline u32 gr_exception_en_pd_enabled_f(void) | ||
256 | { | ||
257 | return 0x4U; | ||
258 | } | ||
259 | static inline u32 gr_exception_en_scc_m(void) | ||
260 | { | ||
261 | return 0x1U << 3U; | ||
262 | } | ||
263 | static inline u32 gr_exception_en_scc_enabled_f(void) | ||
264 | { | ||
265 | return 0x8U; | ||
266 | } | ||
267 | static inline u32 gr_exception_en_ssync_m(void) | ||
268 | { | ||
269 | return 0x1U << 5U; | ||
270 | } | ||
271 | static inline u32 gr_exception_en_ssync_enabled_f(void) | ||
272 | { | ||
273 | return 0x20U; | ||
274 | } | ||
275 | static inline u32 gr_exception_en_mme_m(void) | ||
276 | { | ||
277 | return 0x1U << 7U; | ||
278 | } | ||
279 | static inline u32 gr_exception_en_mme_enabled_f(void) | ||
280 | { | ||
281 | return 0x80U; | ||
282 | } | ||
283 | static inline u32 gr_exception_en_sked_m(void) | ||
284 | { | ||
285 | return 0x1U << 8U; | ||
286 | } | ||
287 | static inline u32 gr_exception_en_sked_enabled_f(void) | ||
288 | { | ||
289 | return 0x100U; | ||
290 | } | ||
235 | static inline u32 gr_exception1_en_r(void) | 291 | static inline u32 gr_exception1_en_r(void) |
236 | { | 292 | { |
237 | return 0x00400130U; | 293 | return 0x00400130U; |
@@ -1408,6 +1464,10 @@ static inline u32 gr_fe_hww_esr_en_enable_f(void) | |||
1408 | { | 1464 | { |
1409 | return 0x80000000U; | 1465 | return 0x80000000U; |
1410 | } | 1466 | } |
1467 | static inline u32 gr_fe_hww_esr_info_r(void) | ||
1468 | { | ||
1469 | return 0x004041b0U; | ||
1470 | } | ||
1411 | static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_report_mask_r(void) | 1471 | static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_report_mask_r(void) |
1412 | { | 1472 | { |
1413 | return 0x00419eacU; | 1473 | return 0x00419eacU; |
@@ -1536,6 +1596,10 @@ static inline u32 gr_mme_hww_esr_en_enable_f(void) | |||
1536 | { | 1596 | { |
1537 | return 0x80000000U; | 1597 | return 0x80000000U; |
1538 | } | 1598 | } |
1599 | static inline u32 gr_mme_hww_esr_info_r(void) | ||
1600 | { | ||
1601 | return 0x00404494U; | ||
1602 | } | ||
1539 | static inline u32 gr_memfmt_hww_esr_r(void) | 1603 | static inline u32 gr_memfmt_hww_esr_r(void) |
1540 | { | 1604 | { |
1541 | return 0x00404600U; | 1605 | return 0x00404600U; |
@@ -2980,6 +3044,18 @@ static inline u32 gr_scc_hww_esr_en_enable_f(void) | |||
2980 | { | 3044 | { |
2981 | return 0x80000000U; | 3045 | return 0x80000000U; |
2982 | } | 3046 | } |
3047 | static inline u32 gr_ssync_hww_esr_r(void) | ||
3048 | { | ||
3049 | return 0x00405a14U; | ||
3050 | } | ||
3051 | static inline u32 gr_ssync_hww_esr_reset_active_f(void) | ||
3052 | { | ||
3053 | return 0x40000000U; | ||
3054 | } | ||
3055 | static inline u32 gr_ssync_hww_esr_en_enable_f(void) | ||
3056 | { | ||
3057 | return 0x80000000U; | ||
3058 | } | ||
2983 | static inline u32 gr_sked_hww_esr_r(void) | 3059 | static inline u32 gr_sked_hww_esr_r(void) |
2984 | { | 3060 | { |
2985 | return 0x00407020U; | 3061 | return 0x00407020U; |