From 1f6755b287cd5382a6e16baf0342bf6a7ab97f6c Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Tue, 26 Sep 2017 11:22:01 -0700 Subject: gpu: nvgpu: gv11b: set correct max subctx count Reading gr_pri_fe_chip_def_info_r() during gv11b_init_fifo_setup_hw on RTL platforms is giving "0xbadf1201" error because fecs part of priv ring is still in reset. This needs to be fixed after identifying relevant engine that needs to be brought out of reset. Until that time, use constant value from hw definition(whose value is 64): gr_pri_fe_chip_def_info_max_veid_count_init_v(). Bug 1983643 Change-Id: I66f2b6491c9d444c6f6919e76c72ec33a904bc90 Signed-off-by: seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/1568139 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Tested-by: Seema Khowala GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index 8c9e58f7..26e444cc 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c @@ -1779,8 +1779,7 @@ int gv11b_init_fifo_setup_hw(struct gk20a *g) f->t19x.usermode_regs = g->regs + usermode_cfg0_r(); f->t19x.max_subctx_count = - gr_pri_fe_chip_def_info_max_veid_count_v( - gk20a_readl(g, gr_pri_fe_chip_def_info_r())); + gr_pri_fe_chip_def_info_max_veid_count_init_v(); return 0; } -- cgit v1.2.2