summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2017-08-08 18:41:32 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-22 20:08:03 -0400
commit2ea017da0de62df05aef3158c62c67c8367f099e (patch)
tree8e33852d57f0f915ed68a1a40d3951d7a9e7cfa2 /drivers/gpu/nvgpu/gm20b
parentbc87e8989ddf2f74ff2c988a25e4a81e559a5c30 (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: I40105cf2ee7f92a44d1c7cc2d23a17276bbb9e84 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1535273 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 38e8934b..aa953ca5 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -130,11 +130,14 @@ static int gm20b_get_litter_value(struct gk20a *g, int value)
130 case GPU_LIT_LTS_STRIDE: 130 case GPU_LIT_LTS_STRIDE:
131 ret = proj_lts_stride_v(); 131 ret = proj_lts_stride_v();
132 break; 132 break;
133 /* GM20B does not have a FBPA unit, despite what's listed in the 133 /* Even though GM20B doesn't have an FBPA unit, the HW reports one,
134 * hw headers or read back through NV_PTOP_SCAL_NUM_FBPAS, 134 * and the microcode as a result leaves space in the context buffer
135 * so hardcode all values to 0. 135 * for one, so make sure SW accounts for this also.
136 */ 136 */
137 case GPU_LIT_NUM_FBPAS: 137 case GPU_LIT_NUM_FBPAS:
138 ret = proj_scal_litter_num_fbpas_v();
139 break;
140 /* Hardcode FBPA values other than NUM_FBPAS to 0. */
138 case GPU_LIT_FBPA_STRIDE: 141 case GPU_LIT_FBPA_STRIDE:
139 case GPU_LIT_FBPA_BASE: 142 case GPU_LIT_FBPA_BASE:
140 case GPU_LIT_FBPA_SHARED_BASE: 143 case GPU_LIT_FBPA_SHARED_BASE: