summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2016-10-04 17:54:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-14 11:11:19 -0400
commit1029136eaa1c7c1cb9a9c8413af439fd741dc232 (patch)
treef01ccf9e665f28759a8b9596ec24249b172729b6 /drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
parent8728da1c6e76566ebc4717399d1f247200125595 (diff)
gpu: nvgpu: program sw veid bundles
Query sw veid bundles from sim/netlist and initialize hardware with those bundles. JIRA GV11B-11 Change-Id: I26f174781f0b00b919afac407e2bb9e1fa7b158a Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1231597 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
index 5a1152d5..f040ffc0 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
@@ -205,6 +205,15 @@ static int gr_gk20a_init_ctx_vars_fw(struct gk20a *g, struct gr_gk20a *gr)
205 if (err) 205 if (err)
206 goto clean_up; 206 goto clean_up;
207 break; 207 break;
208 case NETLIST_REGIONID_SWVEIDBUNDLEINIT:
209 gk20a_dbg_info(
210 "NETLIST_REGIONID_SW_VEID_BUNDLE_INIT");
211 err = gr_gk20a_alloc_load_netlist_av(
212 src, size,
213 &g->gr.ctx_vars.sw_veid_bundle_init);
214 if (err)
215 goto clean_up;
216 break;
208 case NETLIST_REGIONID_CTXREG_SYS: 217 case NETLIST_REGIONID_CTXREG_SYS:
209 gk20a_dbg_info("NETLIST_REGIONID_CTXREG_SYS"); 218 gk20a_dbg_info("NETLIST_REGIONID_CTXREG_SYS");
210 err = gr_gk20a_alloc_load_netlist_aiv( 219 err = gr_gk20a_alloc_load_netlist_aiv(
@@ -394,6 +403,7 @@ clean_up:
394 kfree(g->gr.ctx_vars.sw_method_init.l); 403 kfree(g->gr.ctx_vars.sw_method_init.l);
395 kfree(g->gr.ctx_vars.sw_ctx_load.l); 404 kfree(g->gr.ctx_vars.sw_ctx_load.l);
396 kfree(g->gr.ctx_vars.sw_non_ctx_load.l); 405 kfree(g->gr.ctx_vars.sw_non_ctx_load.l);
406 kfree(g->gr.ctx_vars.sw_veid_bundle_init.l);
397 kfree(g->gr.ctx_vars.ctxsw_regs.sys.l); 407 kfree(g->gr.ctx_vars.ctxsw_regs.sys.l);
398 kfree(g->gr.ctx_vars.ctxsw_regs.gpc.l); 408 kfree(g->gr.ctx_vars.ctxsw_regs.gpc.l);
399 kfree(g->gr.ctx_vars.ctxsw_regs.tpc.l); 409 kfree(g->gr.ctx_vars.ctxsw_regs.tpc.l);