diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index f9cd2e07..a47fa0fd 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -180,7 +180,6 @@ int gp106_init_hal(struct gk20a *g) | |||
180 | { | 180 | { |
181 | struct gpu_ops *gops = &g->ops; | 181 | struct gpu_ops *gops = &g->ops; |
182 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 182 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
183 | u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; | ||
184 | 183 | ||
185 | gk20a_dbg_fn(""); | 184 | gk20a_dbg_fn(""); |
186 | 185 | ||
@@ -203,17 +202,7 @@ int gp106_init_hal(struct gk20a *g) | |||
203 | gp10b_init_cde_ops(gops); | 202 | gp10b_init_cde_ops(gops); |
204 | gp10b_init_therm_ops(gops); | 203 | gp10b_init_therm_ops(gops); |
205 | gm206_init_bios(gops); | 204 | gm206_init_bios(gops); |
206 | switch(ver){ | 205 | gops->name = "gp10x"; |
207 | case NVGPU_GPUID_GP106: | ||
208 | gops->name = "gp106"; | ||
209 | break; | ||
210 | case NVGPU_GPUID_GP104: | ||
211 | gops->name = "gp104"; | ||
212 | break; | ||
213 | default: | ||
214 | gk20a_err(g->dev, "no support for %x", ver); | ||
215 | BUG(); | ||
216 | } | ||
217 | gops->get_litter_value = gp106_get_litter_value; | 206 | gops->get_litter_value = gp106_get_litter_value; |
218 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; | 207 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; |
219 | gops->gr_ctx.use_dma_for_fw_bootstrap = true; | 208 | gops->gr_ctx.use_dma_for_fw_bootstrap = true; |