diff options
author | matthewb <matthewb@nvidia.com> | 2018-10-04 14:34:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-10-11 17:57:25 -0400 |
commit | db8324ff9838a0d0fee349f8c21ea5406177353a (patch) | |
tree | 9b237994c85f82d4d800e7f2b33fd16e8eece8f0 /drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |
parent | 12acc9668724d0a4d43e93ba751b9f413df59f12 (diff) |
gpu: nvgpu: HAL-ify pmm type broadcast values
The PMM type-specific broadcast->unicast expansion calculation
was using incorrect values. This caused the invalid register
accesses to be generated.
This change HAL-ifies the values, so that the expansion will be
performed correctly.
Bug 200454109
Change-Id: I96c15de27b5e16e4db2e788fd98e6bf7d6e7d564
Signed-off-by: Matthew Braun <matthewb@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1921717
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 468abdd1..cf6a7e2c 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -223,6 +223,27 @@ u32 gv11b_get_litter_value(struct gk20a *g, int value) | |||
223 | case GPU_LIT_GPC_PRIV_STRIDE: | 223 | case GPU_LIT_GPC_PRIV_STRIDE: |
224 | ret = proj_gpc_priv_stride_v(); | 224 | ret = proj_gpc_priv_stride_v(); |
225 | break; | 225 | break; |
226 | case GPU_LIT_PERFMON_PMMGPCTPCA_DOMAIN_START: | ||
227 | ret = 2; | ||
228 | break; | ||
229 | case GPU_LIT_PERFMON_PMMGPCTPCB_DOMAIN_START: | ||
230 | ret = 6; | ||
231 | break; | ||
232 | case GPU_LIT_PERFMON_PMMGPCTPC_DOMAIN_COUNT: | ||
233 | ret = 4; | ||
234 | break; | ||
235 | case GPU_LIT_PERFMON_PMMFBP_LTC_DOMAIN_START: | ||
236 | ret = 1; | ||
237 | break; | ||
238 | case GPU_LIT_PERFMON_PMMFBP_LTC_DOMAIN_COUNT: | ||
239 | ret = 2; | ||
240 | break; | ||
241 | case GPU_LIT_PERFMON_PMMFBP_ROP_DOMAIN_START: | ||
242 | ret = 3; | ||
243 | break; | ||
244 | case GPU_LIT_PERFMON_PMMFBP_ROP_DOMAIN_COUNT: | ||
245 | ret = 2; | ||
246 | break; | ||
226 | default: | 247 | default: |
227 | nvgpu_err(g, "Missing definition %d", value); | 248 | nvgpu_err(g, "Missing definition %d", value); |
228 | BUG(); | 249 | BUG(); |