summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-09-26 14:22:01 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-26 20:29:26 -0400
commit1f6755b287cd5382a6e16baf0342bf6a7ab97f6c (patch)
treebaa045c020734011a6f778b5ffeae613e193229b /drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
parent9825a8ec69d54c725c38015006aed655d10ac567 (diff)
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 <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1568139 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Tested-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c3
1 files changed, 1 insertions, 2 deletions
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)
1779 1779
1780 f->t19x.usermode_regs = g->regs + usermode_cfg0_r(); 1780 f->t19x.usermode_regs = g->regs + usermode_cfg0_r();
1781 f->t19x.max_subctx_count = 1781 f->t19x.max_subctx_count =
1782 gr_pri_fe_chip_def_info_max_veid_count_v( 1782 gr_pri_fe_chip_def_info_max_veid_count_init_v();
1783 gk20a_readl(g, gr_pri_fe_chip_def_info_r()));
1784 return 0; 1783 return 0;
1785} 1784}
1786 1785