From 8d6a05fc5704ae5ce0c46c4ec2a8ce0c17aacf68 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Wed, 1 Mar 2017 12:01:37 -0800 Subject: 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 Reviewed-on: http://git-master/r/1313435 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/gpu/nvgpu/gv11b') 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 @@ #include #include #include +#include #include "fifo_gv11b.h" #include "subctx_gv11b.h" @@ -217,6 +218,11 @@ static u32 gv11b_fifo_get_num_fifos(struct gk20a *g) return ccsr_channel__size_1_v(); } +static bool gv11b_is_fault_engine_subid_gpc(struct gk20a *g, u32 engine_subid) +{ + return (engine_subid == gmmu_fault_client_type_gpc_v()); +} + void gv11b_init_fifo(struct gpu_ops *gops) { gp10b_init_fifo(gops); @@ -234,4 +240,5 @@ void gv11b_init_fifo(struct gpu_ops *gops) gops->fifo.eng_runlist_base_size = fifo_eng_runlist_base__size_1_v; gops->fifo.free_channel_ctx_header = gv11b_free_subctx_header; gops->fifo.device_info_fault_id = top_device_info_data_fault_id_enum_v; + gops->fifo.is_fault_engine_subid_gpc = gv11b_is_fault_engine_subid_gpc; } -- cgit v1.2.2