summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-08-15 18:28:35 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-26 20:29:23 -0400
commit9825a8ec69d54c725c38015006aed655d10ac567 (patch)
tree75a085816bca625618869cdbc50522a29b57ea04 /drivers/gpu/nvgpu/gv11b/hal_gv11b.c
parent971987f363751076a9bddddf7deb5a5a17e8739a (diff)
gpu: nvgpu: fix handling of EGPC_ETPC_SM addresses
Implemented litter values for following defines: GPU_LIT_SMPC_PRI_BASE GPU_LIT_SMPC_PRI_SHARED_BASE GPU_LIT_SMPC_PRI_UNIQUE_BASE9 GPU_LIT_SMPC_PRI_STRIDE Added broadcast flags for smpc Handled all combinations of broadcast/unicast EGPC, ETPC, SM Bug 200337994 Change-Id: I7aa3c4d9ac4e819010061d44fb5a40056762f518 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1539075 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
index f8bdc213..9baa3581 100644
--- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -166,6 +166,18 @@ static int gv11b_get_litter_value(struct gk20a *g, int value)
166 case GPU_LIT_SM_PRI_STRIDE: 166 case GPU_LIT_SM_PRI_STRIDE:
167 ret = proj_sm_stride_v(); 167 ret = proj_sm_stride_v();
168 break; 168 break;
169 case GPU_LIT_SMPC_PRI_BASE:
170 ret = proj_smpc_base_v();
171 break;
172 case GPU_LIT_SMPC_PRI_SHARED_BASE:
173 ret = proj_smpc_shared_base_v();
174 break;
175 case GPU_LIT_SMPC_PRI_UNIQUE_BASE:
176 ret = proj_smpc_unique_base_v();
177 break;
178 case GPU_LIT_SMPC_PRI_STRIDE:
179 ret = proj_smpc_stride_v();
180 break;
169 /* Even though GV11B doesn't have an FBPA unit, the HW reports one, 181 /* Even though GV11B doesn't have an FBPA unit, the HW reports one,
170 * and the microcode as a result leaves space in the context buffer 182 * and the microcode as a result leaves space in the context buffer
171 * for one, so make sure SW accounts for this also. 183 * for one, so make sure SW accounts for this also.