From 305dfe9fc0fa9001568a7713742418e1597886fd Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Thu, 13 Jul 2017 15:40:51 -0700 Subject: gpu: nvgpu: add ctxsw etpc regs Add etpc ctxsw regs for t19x Bug 200311674 Change-Id: I2d5076cb4df8040613c20d28518325ad7c6a9145 Signed-off-by: Seema Khowala Reviewed-on: https://git-master.nvidia.com/r/1520140 GVS: Gerrit_Virtual_Submit Tested-by: Tushar Kashalikar Reviewed-by: Tushar Kashalikar Reviewed-by: Vijayakumar Subbu --- drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c | 9 +++++++++ 1 file changed, 9 insertions(+) (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 eff45cb0..6e069d99 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c @@ -333,6 +333,14 @@ static int gr_gk20a_init_ctx_vars_fw(struct gk20a *g, struct gr_gk20a *gr) if (err) goto clean_up; break; + case NETLIST_REGIONID_CTXREG_ETPC: + gk20a_dbg_info("NETLIST_REGIONID_CTXREG_ETPC"); + err = gr_gk20a_alloc_load_netlist_aiv(g, + src, size, &g->gr.ctx_vars.ctxsw_regs.etpc); + if (err) + goto clean_up; + break; + default: gk20a_dbg_info("unrecognized region %d skipped", i); break; @@ -383,6 +391,7 @@ clean_up: nvgpu_kfree(g, g->gr.ctx_vars.ctxsw_regs.perf_pma.l); nvgpu_kfree(g, g->gr.ctx_vars.ctxsw_regs.pm_rop.l); nvgpu_kfree(g, g->gr.ctx_vars.ctxsw_regs.pm_ucgpc.l); + nvgpu_kfree(g, g->gr.ctx_vars.ctxsw_regs.etpc.l); nvgpu_release_firmware(g, netlist_fw); err = -ENOENT; } -- cgit v1.2.2