diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 9 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 9 |
2 files changed, 12 insertions, 6 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: |
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index 40ef35d5..69a90031 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -139,11 +139,14 @@ static int gp10b_get_litter_value(struct gk20a *g, int value) | |||
139 | case GPU_LIT_LTS_STRIDE: | 139 | case GPU_LIT_LTS_STRIDE: |
140 | ret = proj_lts_stride_v(); | 140 | ret = proj_lts_stride_v(); |
141 | break; | 141 | break; |
142 | /* GP10B does not have a FBPA unit, despite what's listed in the | 142 | /* Even though GP10B doesn't have an FBPA unit, the HW reports one, |
143 | * hw headers or read back through NV_PTOP_SCAL_NUM_FBPAS, | 143 | * and the microcode as a result leaves space in the context buffer |
144 | * so hardcode all values to 0. | 144 | * for one, so make sure SW accounts for this also. |
145 | */ | 145 | */ |
146 | case GPU_LIT_NUM_FBPAS: | 146 | case GPU_LIT_NUM_FBPAS: |
147 | ret = proj_scal_litter_num_fbpas_v(); | ||
148 | break; | ||
149 | /* Hardcode FBPA values other than NUM_FBPAS to 0. */ | ||
147 | case GPU_LIT_FBPA_STRIDE: | 150 | case GPU_LIT_FBPA_STRIDE: |
148 | case GPU_LIT_FBPA_BASE: | 151 | case GPU_LIT_FBPA_BASE: |
149 | case GPU_LIT_FBPA_SHARED_BASE: | 152 | case GPU_LIT_FBPA_SHARED_BASE: |