summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-12-01 07:33:01 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:03 -0500
commit5d54f4660cfd5f2abee41ac63bc5fe1a1c43a87d (patch)
tree248010b38aae45eb4df4ef49ec90d45a0c07df04 /drivers/gpu/nvgpu/gp10b/gr_gp10b.c
parent59f267981c3024cc3b73c5743d2481f80228b15f (diff)
gpu: nvgpu: gp10b: Change order of alpha & beta
Change order of alpha & attribute buffers in CB. The new order follows RM. Change-Id: I2b24daa46055b3bd667a1026c282f74d56882623 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/657907
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c16
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);