diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-08-08 18:48:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-22 20:08:09 -0400 |
commit | bcf556b640a3680522b03042574081abe0e17fef (patch) | |
tree | 8dac3c7d78fdb62da60f00f5f63ceec394796726 /drivers/gpu/nvgpu/gv11b | |
parent | 5df1d3ff7a23ec39ea5fc841b2dbfe98fa74b44a (diff) |
gpu: nvgpu: correct NUM_FBPAS
Although igpu does not have an FBPA unit, the hardware reports one, and
the ucode leaves space for one in the HWPM context save buffer. So
let NUM_FBPAS reflect this, so that registers that follow this section
in the context buffer are offset properly
JIRA EVLR-1716
Change-Id: I067d5ec3afd356bcb4270fc2b5d12daef2ce3944
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1535274
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 521cafa3..4b64d44d 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -151,11 +151,14 @@ static int gv11b_get_litter_value(struct gk20a *g, int value) | |||
151 | case GPU_LIT_SM_PRI_STRIDE: | 151 | case GPU_LIT_SM_PRI_STRIDE: |
152 | ret = proj_sm_stride_v(); | 152 | ret = proj_sm_stride_v(); |
153 | break; | 153 | break; |
154 | /* GV11B does not have a FBPA unit, despite what's listed in the | 154 | /* Even though GV11B doesn't have an FBPA unit, the HW reports one, |
155 | * hw headers or read back through NV_PTOP_SCAL_NUM_FBPAS, | 155 | * and the microcode as a result leaves space in the context buffer |
156 | * so hardcode all values to 0. | 156 | * for one, so make sure SW accounts for this also. |
157 | */ | 157 | */ |
158 | case GPU_LIT_NUM_FBPAS: | 158 | case GPU_LIT_NUM_FBPAS: |
159 | ret = proj_scal_litter_num_fbpas_v(); | ||
160 | break; | ||
161 | /* Hardcode FBPA values other than NUM_FBPAS to 0. */ | ||
159 | case GPU_LIT_FBPA_STRIDE: | 162 | case GPU_LIT_FBPA_STRIDE: |
160 | case GPU_LIT_FBPA_BASE: | 163 | case GPU_LIT_FBPA_BASE: |
161 | case GPU_LIT_FBPA_SHARED_BASE: | 164 | case GPU_LIT_FBPA_SHARED_BASE: |