summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-07-17 16:39:37 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-19 02:41:55 -0400
commit71cd4a486f54eee67972a81f59c4185f828102e5 (patch)
tree7419d6cd74869d1014638b454f9761df8cf423af /drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c
parent305dfe9fc0fa9001568a7713742418e1597886fd (diff)
gpu: nvgpu: add esc read for PPC_COUNT
Add esc read for GRCTX_REG_LIST_PPC_COUNT else gr_gk20a_determine_ppc_configuration function would return -EINVAL if num_pes_per_gpc i.e. GPU_LIT_NUM_PES_PER_GPC is > 1 JIRA GPUT19X-49 Bug 200311674 Change-Id: Iee7ee9ba14fcc7dca07c4c1dc20f8e7d018ed820 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1522443 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Tushar Kashalikar <tkashalikar@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c
index 36071223..58e62d32 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c
@@ -72,6 +72,8 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr)
72 &g->gr.ctx_vars.ctxsw_regs.pm_gpc.count); 72 &g->gr.ctx_vars.ctxsw_regs.pm_gpc.count);
73 gk20a_sim_esc_readl(g, "GRCTX_REG_LIST_PM_TPC_COUNT", 0, 73 gk20a_sim_esc_readl(g, "GRCTX_REG_LIST_PM_TPC_COUNT", 0,
74 &g->gr.ctx_vars.ctxsw_regs.pm_tpc.count); 74 &g->gr.ctx_vars.ctxsw_regs.pm_tpc.count);
75 gk20a_sim_esc_readl(g, "GRCTX_REG_LIST_PPC_COUNT", 0,
76 &g->gr.ctx_vars.ctxsw_regs.ppc.count);
75 gk20a_sim_esc_readl(g, "GRCTX_REG_LIST_ETPC_COUNT", 0, 77 gk20a_sim_esc_readl(g, "GRCTX_REG_LIST_ETPC_COUNT", 0,
76 &g->gr.ctx_vars.ctxsw_regs.etpc.count); 78 &g->gr.ctx_vars.ctxsw_regs.etpc.count);
77 79