From c0a461dbbccf56681ff531e7e4c8f5fb01c3e2cf Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 10 Nov 2017 10:58:45 -0800 Subject: gpu: nvgpu: Do not assign GPU classes in vgpu HAL GPU class ids were moved to get_litter_value API, but vgpu was not updated to remove assigning them in HAL initialization. Remove the duplicate assignments. JIRA NVGPU-388 Change-Id: I65cf8f9cfcfc372c1c3b0d9239e55f19c9a02f46 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1596247 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c') diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index e4e5a885..693709ef 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c @@ -511,7 +511,6 @@ static const struct gpu_ops vgpu_gp10b_ops = { int vgpu_gp10b_init_hal(struct gk20a *g) { struct gpu_ops *gops = &g->ops; - struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; u32 val; gops->ltc = vgpu_gp10b_ops.ltc; @@ -628,12 +627,5 @@ int vgpu_gp10b_init_hal(struct gk20a *g) g->name = "gp10b"; - c->twod_class = FERMI_TWOD_A; - c->threed_class = PASCAL_A; - c->compute_class = PASCAL_COMPUTE_A; - c->gpfifo_class = PASCAL_CHANNEL_GPFIFO_A; - c->inline_to_memory_class = KEPLER_INLINE_TO_MEMORY_B; - c->dma_copy_class = PASCAL_DMA_COPY_A; - return 0; } -- cgit v1.2.2