summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-07 12:19:53 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-09 22:18:11 -0500
commitdc5f6bcee0281c5fa63c977519d732218f519ea0 (patch)
treebd465cb7e5c45999019a787547bdb79835d9dbf5 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
parent1dad4adbd2aecfd484a84d47b29b81bb665bc60b (diff)
gpu: nvgpu: Return GPU classes in get_litter_value
Return GPU classes in HAL get_litter_value() instead of assigning them to GPU characteristics at HAL initialization time. JIRA NVGPU-259 Change-Id: Ife7a5cb38df3d33ce98a1caa43d3873fb1431234 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593683 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
index 83282b87..0481eacf 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
@@ -209,6 +209,14 @@ gk20a_ctrl_ioctl_gpu_characteristics(
209 pgpu->impl = g->params.gpu_impl; 209 pgpu->impl = g->params.gpu_impl;
210 pgpu->rev = g->params.gpu_rev; 210 pgpu->rev = g->params.gpu_rev;
211 pgpu->reg_ops_limit = NVGPU_IOCTL_DBG_REG_OPS_LIMIT; 211 pgpu->reg_ops_limit = NVGPU_IOCTL_DBG_REG_OPS_LIMIT;
212 pgpu->twod_class = g->ops.get_litter_value(g, GPU_LIT_TWOD_CLASS);
213 pgpu->threed_class = g->ops.get_litter_value(g, GPU_LIT_THREED_CLASS);
214 pgpu->compute_class = g->ops.get_litter_value(g, GPU_LIT_COMPUTE_CLASS);
215 pgpu->gpfifo_class = g->ops.get_litter_value(g, GPU_LIT_GPFIFO_CLASS);
216 pgpu->inline_to_memory_class =
217 g->ops.get_litter_value(g, GPU_LIT_I2M_CLASS);
218 pgpu->dma_copy_class =
219 g->ops.get_litter_value(g, GPU_LIT_DMA_COPY_CLASS);
212 220
213 pgpu->vbios_version = g->bios.vbios_version; 221 pgpu->vbios_version = g->bios.vbios_version;
214 pgpu->vbios_oem_version = g->bios.vbios_oem_version; 222 pgpu->vbios_oem_version = g->bios.vbios_oem_version;