diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index 5304f39f..7f19d3c8 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <nvgpu/hw/gv11b/hw_ccsr_gv11b.h> | 26 | #include <nvgpu/hw/gv11b/hw_ccsr_gv11b.h> |
27 | #include <nvgpu/hw/gv11b/hw_usermode_gv11b.h> | 27 | #include <nvgpu/hw/gv11b/hw_usermode_gv11b.h> |
28 | #include <nvgpu/hw/gv11b/hw_top_gv11b.h> | 28 | #include <nvgpu/hw/gv11b/hw_top_gv11b.h> |
29 | #include <nvgpu/hw/gv11b/hw_gmmu_gv11b.h> | ||
29 | 30 | ||
30 | #include "fifo_gv11b.h" | 31 | #include "fifo_gv11b.h" |
31 | #include "subctx_gv11b.h" | 32 | #include "subctx_gv11b.h" |
@@ -217,6 +218,11 @@ static u32 gv11b_fifo_get_num_fifos(struct gk20a *g) | |||
217 | return ccsr_channel__size_1_v(); | 218 | return ccsr_channel__size_1_v(); |
218 | } | 219 | } |
219 | 220 | ||
221 | static bool gv11b_is_fault_engine_subid_gpc(struct gk20a *g, u32 engine_subid) | ||
222 | { | ||
223 | return (engine_subid == gmmu_fault_client_type_gpc_v()); | ||
224 | } | ||
225 | |||
220 | void gv11b_init_fifo(struct gpu_ops *gops) | 226 | void gv11b_init_fifo(struct gpu_ops *gops) |
221 | { | 227 | { |
222 | gp10b_init_fifo(gops); | 228 | gp10b_init_fifo(gops); |
@@ -234,4 +240,5 @@ void gv11b_init_fifo(struct gpu_ops *gops) | |||
234 | gops->fifo.eng_runlist_base_size = fifo_eng_runlist_base__size_1_v; | 240 | gops->fifo.eng_runlist_base_size = fifo_eng_runlist_base__size_1_v; |
235 | gops->fifo.free_channel_ctx_header = gv11b_free_subctx_header; | 241 | gops->fifo.free_channel_ctx_header = gv11b_free_subctx_header; |
236 | gops->fifo.device_info_fault_id = top_device_info_data_fault_id_enum_v; | 242 | gops->fifo.device_info_fault_id = top_device_info_data_fault_id_enum_v; |
243 | gops->fifo.is_fault_engine_subid_gpc = gv11b_is_fault_engine_subid_gpc; | ||
237 | } | 244 | } |