diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index dc27cdae..ee361953 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -187,6 +187,24 @@ static int gp106_get_litter_value(struct gk20a *g, int value) | |||
187 | return ret; | 187 | return ret; |
188 | } | 188 | } |
189 | 189 | ||
190 | int gp106_init_gpu_characteristics(struct gk20a *g) | ||
191 | { | ||
192 | struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics; | ||
193 | |||
194 | int err; | ||
195 | |||
196 | err = gk20a_init_gpu_characteristics(g); | ||
197 | if (err) | ||
198 | return err; | ||
199 | |||
200 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_GET_VOLTAGE | | ||
201 | NVGPU_GPU_FLAGS_SUPPORT_GET_CURRENT | | ||
202 | NVGPU_GPU_FLAGS_SUPPORT_GET_POWER | | ||
203 | NVGPU_GPU_FLAGS_SUPPORT_GET_TEMPERATURE; | ||
204 | |||
205 | return 0; | ||
206 | } | ||
207 | |||
190 | int gp106_init_hal(struct gk20a *g) | 208 | int gp106_init_hal(struct gk20a *g) |
191 | { | 209 | { |
192 | struct gpu_ops *gops = &g->ops; | 210 | struct gpu_ops *gops = &g->ops; |
@@ -224,7 +242,7 @@ int gp106_init_hal(struct gk20a *g) | |||
224 | 242 | ||
225 | gops->name = "gp10x"; | 243 | gops->name = "gp10x"; |
226 | gops->get_litter_value = gp106_get_litter_value; | 244 | gops->get_litter_value = gp106_get_litter_value; |
227 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; | 245 | gops->chip_init_gpu_characteristics = gp106_init_gpu_characteristics; |
228 | gops->gr_ctx.use_dma_for_fw_bootstrap = true; | 246 | gops->gr_ctx.use_dma_for_fw_bootstrap = true; |
229 | gops->read_ptimer = gk20a_read_ptimer; | 247 | gops->read_ptimer = gk20a_read_ptimer; |
230 | 248 | ||