diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_fifo_gp10b.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_fifo_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_fifo_gp10b.c index 23d945fb..52e90f33 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_fifo_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_fifo_gp10b.c | |||
@@ -13,36 +13,8 @@ | |||
13 | 13 | ||
14 | #include "vgpu_fifo_gp10b.h" | 14 | #include "vgpu_fifo_gp10b.h" |
15 | 15 | ||
16 | static int vgpu_gp10b_fifo_init_engine_info(struct fifo_gk20a *f) | ||
17 | { | ||
18 | struct fifo_engine_info_gk20a *gr_info; | ||
19 | struct fifo_engine_info_gk20a *ce_info; | ||
20 | const u32 gr_sw_id = ENGINE_GR_GK20A; | ||
21 | const u32 ce_sw_id = ENGINE_GRCE_GK20A; | ||
22 | |||
23 | gk20a_dbg_fn(""); | ||
24 | |||
25 | f->num_engines = 2; | ||
26 | |||
27 | gr_info = &f->engine_info[0]; | ||
28 | |||
29 | /* FIXME: retrieve this from server */ | ||
30 | gr_info->runlist_id = 0; | ||
31 | gr_info->engine_enum = gr_sw_id; | ||
32 | f->active_engines_list[0] = 0; | ||
33 | |||
34 | ce_info = &f->engine_info[1]; | ||
35 | ce_info->runlist_id = 0; | ||
36 | ce_info->inst_id = 0; | ||
37 | ce_info->engine_enum = ce_sw_id; | ||
38 | f->active_engines_list[1] = 1; | ||
39 | |||
40 | return 0; | ||
41 | } | ||
42 | |||
43 | void vgpu_gp10b_init_fifo_ops(struct gpu_ops *gops) | 16 | void vgpu_gp10b_init_fifo_ops(struct gpu_ops *gops) |
44 | { | 17 | { |
45 | /* syncpoint protection not supported yet */ | 18 | /* syncpoint protection not supported yet */ |
46 | gops->fifo.init_engine_info = vgpu_gp10b_fifo_init_engine_info; | ||
47 | gops->fifo.resetup_ramfc = NULL; | 19 | gops->fifo.resetup_ramfc = NULL; |
48 | } | 20 | } |