From 870e76fbc7076a41e711ad9d5569a74373a4697a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 7 Nov 2017 10:08:16 -0800 Subject: gpu: nvgpu: Move sm_arch to nvgpu_gpu_params Move sm_arch_* fields to nvgpu_gpu_params to make them available from common code without accessing Linux specific GPU characteristics. JIRA NVGPU-259 Change-Id: Ieffb2ddde81b27af53dfedb9fe3972d20757cc35 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1593686 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 0481eacf..cff889fb 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c @@ -226,6 +226,10 @@ gk20a_ctrl_ioctl_gpu_characteristics( g->ops.mm.get_mmu_levels(g, pgpu->big_page_size)[0].lo_bit[0]; pgpu->available_big_page_sizes = nvgpu_mm_get_available_big_page_sizes(g); + pgpu->sm_arch_sm_version = g->params.sm_arch_sm_version; + pgpu->sm_arch_spa_version = g->params.sm_arch_spa_version; + pgpu->sm_arch_warp_count = g->params.sm_arch_warp_count; + if (request->gpu_characteristics_buf_size > 0) { size_t write_size = sizeof(*pgpu); -- cgit v1.2.2