From 10b75f9cdd2184e9728b7d38dd037330d1c20704 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Fri, 17 Jun 2016 14:08:07 +0530 Subject: gpu: nvgpu: update get_netlist_name ops declaration -update get_netlist_name ops declaration to support to load GPU FW based on GPU-ARCH -"GAxxx" string used to get size for "gm204/" or "gm206/" which will added to NETIMAGE path like "gm204/NETC_img.bin" Change-Id: I5bfa13df014533a885c4328d3c767e51c29f9255 Signed-off-by: Mahantesh Kumbar Reviewed-on: http://git-master/r/1166783 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c index a01e43c7..5029db8d 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c @@ -61,7 +61,7 @@ static int gr_gk20a_alloc_load_netlist_aiv(u32 *src, u32 len, return 0; } -static int gr_gk20a_get_netlist_name(int index, char *name) +static int gr_gk20a_get_netlist_name(struct gk20a *g, int index, char *name) { switch (index) { #ifdef GK20A_NETLIST_IMAGE_FW_NAME @@ -130,7 +130,7 @@ static int gr_gk20a_init_ctx_vars_fw(struct gk20a *g, struct gr_gk20a *gr) } for (; net < max; net++) { - if (g->ops.gr_ctx.get_netlist_name(net, name) != 0) { + if (g->ops.gr_ctx.get_netlist_name(g, net, name) != 0) { gk20a_warn(d, "invalid netlist index %d", net); continue; } -- cgit v1.2.2