summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2016-10-27 15:25:48 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-11-01 14:37:34 -0400
commitfabe964c7698527104d80aa006b5c4aca8402f17 (patch)
tree78f66a57a3501028b34a273943d8021aacc6272a /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent161b61e6cc76c2050115039141027320a2f2e745 (diff)
gpu: nvgpu: chip specific commit global timeslice
Implement chip specific commit_global_timeslice function. JIRA GV11B-21 Change-Id: I937dda77870f164d034686d6d41482c875940320 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1243944 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index ecc67167..84b0ed6e 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -954,7 +954,8 @@ static void gr_gk20a_commit_global_bundle_cb(struct gk20a *g,
954 954
955} 955}
956 956
957static int gr_gk20a_commit_global_timeslice(struct gk20a *g, struct channel_gk20a *c, bool patch) 957int gr_gk20a_commit_global_timeslice(struct gk20a *g, struct channel_gk20a *c,
958 bool patch)
958{ 959{
959 struct gr_gk20a *gr = &g->gr; 960 struct gr_gk20a *gr = &g->gr;
960 struct channel_ctx_gk20a *ch_ctx = NULL; 961 struct channel_ctx_gk20a *ch_ctx = NULL;
@@ -1607,7 +1608,7 @@ static int gr_gk20a_init_golden_ctx_image(struct gk20a *g,
1607 goto clean_up; 1608 goto clean_up;
1608 1609
1609 /* override a few ctx state registers */ 1610 /* override a few ctx state registers */
1610 gr_gk20a_commit_global_timeslice(g, c, false); 1611 g->ops.gr.commit_global_timeslice(g, c, false);
1611 1612
1612 /* floorsweep anything left */ 1613 /* floorsweep anything left */
1613 g->ops.gr.init_fs_state(g); 1614 g->ops.gr.init_fs_state(g);
@@ -4666,7 +4667,7 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g)
4666 gr_fe_go_idle_timeout_count_disabled_f()); 4667 gr_fe_go_idle_timeout_count_disabled_f());
4667 4668
4668 /* override a few ctx state registers */ 4669 /* override a few ctx state registers */
4669 gr_gk20a_commit_global_timeslice(g, NULL, false); 4670 g->ops.gr.commit_global_timeslice(g, NULL, false);
4670 4671
4671 /* floorsweep anything left */ 4672 /* floorsweep anything left */
4672 err = g->ops.gr.init_fs_state(g); 4673 err = g->ops.gr.init_fs_state(g);
@@ -9119,4 +9120,5 @@ void gk20a_init_gr_ops(struct gpu_ops *gops)
9119 gr_gk20a_split_ltc_broadcast_addr_stub; 9120 gr_gk20a_split_ltc_broadcast_addr_stub;
9120 gops->gr.setup_rop_mapping = gr_gk20a_setup_rop_mapping; 9121 gops->gr.setup_rop_mapping = gr_gk20a_setup_rop_mapping;
9121 gops->gr.program_zcull_mapping = gr_gk20a_program_zcull_mapping; 9122 gops->gr.program_zcull_mapping = gr_gk20a_program_zcull_mapping;
9123 gops->gr.commit_global_timeslice = gr_gk20a_commit_global_timeslice;
9122} 9124}