diff options
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index 81e04095..0dce115a 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -83,8 +83,8 @@ int gr_gp10b_commit_global_cb_manager(struct gk20a *g, | |||
83 | gr_pd_ab_dist_cfg1_max_output_f(pd_ab_max_output) | | 83 | gr_pd_ab_dist_cfg1_max_output_f(pd_ab_max_output) | |
84 | gr_pd_ab_dist_cfg1_max_batches_init_f(), patch); | 84 | gr_pd_ab_dist_cfg1_max_batches_init_f(), patch); |
85 | 85 | ||
86 | alpha_offset_in_chunk = attrib_offset_in_chunk + | 86 | attrib_offset_in_chunk = alpha_offset_in_chunk + |
87 | gr->tpc_count * gr->attrib_cb_size; | 87 | gr->tpc_count * gr->alpha_cb_size; |
88 | 88 | ||
89 | for (gpc_index = 0; gpc_index < gr->gpc_count; gpc_index++) { | 89 | for (gpc_index = 0; gpc_index < gr->gpc_count; gpc_index++) { |
90 | temp = proj_gpc_stride_v() * gpc_index; | 90 | temp = proj_gpc_stride_v() * gpc_index; |
@@ -105,6 +105,12 @@ int gr_gp10b_commit_global_cb_manager(struct gk20a *g, | |||
105 | proj_ppc_in_gpc_stride_v() * ppc_index, | 105 | proj_ppc_in_gpc_stride_v() * ppc_index, |
106 | attrib_offset_in_chunk, patch); | 106 | attrib_offset_in_chunk, patch); |
107 | 107 | ||
108 | gr_gk20a_ctx_patch_write(g, ch_ctx, | ||
109 | gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r() + temp + | ||
110 | proj_ppc_in_gpc_stride_v() * ppc_index, | ||
111 | gr->alpha_cb_default_size * gr->pes_tpc_count[ppc_index][gpc_index], | ||
112 | patch); | ||
113 | |||
108 | attrib_offset_in_chunk += gr->attrib_cb_size * | 114 | attrib_offset_in_chunk += gr->attrib_cb_size * |
109 | gr->pes_tpc_count[ppc_index][gpc_index]; | 115 | gr->pes_tpc_count[ppc_index][gpc_index]; |
110 | 116 | ||
@@ -122,12 +128,6 @@ int gr_gp10b_commit_global_cb_manager(struct gk20a *g, | |||
122 | gr->pes_tpc_count[ppc_index][gpc_index]; | 128 | gr->pes_tpc_count[ppc_index][gpc_index]; |
123 | 129 | ||
124 | gr_gk20a_ctx_patch_write(g, ch_ctx, | 130 | gr_gk20a_ctx_patch_write(g, ch_ctx, |
125 | gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r() + temp + | ||
126 | proj_ppc_in_gpc_stride_v() * ppc_index, | ||
127 | gr->alpha_cb_default_size * gr->pes_tpc_count[ppc_index][gpc_index], | ||
128 | patch); | ||
129 | |||
130 | gr_gk20a_ctx_patch_write(g, ch_ctx, | ||
131 | gr_gpcs_swdx_tc_beta_cb_size_r(ppc_index + gpc_index), | 131 | gr_gpcs_swdx_tc_beta_cb_size_r(ppc_index + gpc_index), |
132 | gr_gpcs_swdx_tc_beta_cb_size_v_f(cbm_cfg_size1), | 132 | gr_gpcs_swdx_tc_beta_cb_size_v_f(cbm_cfg_size1), |
133 | patch); | 133 | patch); |