diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-03-01 15:01:37 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-07 05:34:56 -0500 |
commit | 8d6a05fc5704ae5ce0c46c4ec2a8ce0c17aacf68 (patch) | |
tree | 2353dc73ad0a952bbcd99f723678edfa50ace075 | |
parent | a4ea94f5d12f9c983cbcb9624fa946c0806768f1 (diff) |
gpu: nvgpu: gv11b: init is_fault_engine_subid_gpc ops
*client_type_gpc_v moved from fifo to gmmu
JIRA GV11B-7
Change-Id: Icd28a2ac8c0d0ae212cfca9410dfe781972367df
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1313435
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
-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 | } |