diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-07 13:08:16 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-09 22:18:21 -0500 |
commit | 870e76fbc7076a41e711ad9d5569a74373a4697a (patch) | |
tree | df5d7be18cc89a1c27d4ece631bffec2b2928c2e /drivers/gpu/nvgpu/common | |
parent | dc5f6bcee0281c5fa63c977519d732218f519ea0 (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1593686
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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( | |||
226 | g->ops.mm.get_mmu_levels(g, pgpu->big_page_size)[0].lo_bit[0]; | 226 | g->ops.mm.get_mmu_levels(g, pgpu->big_page_size)[0].lo_bit[0]; |
227 | pgpu->available_big_page_sizes = nvgpu_mm_get_available_big_page_sizes(g); | 227 | pgpu->available_big_page_sizes = nvgpu_mm_get_available_big_page_sizes(g); |
228 | 228 | ||
229 | pgpu->sm_arch_sm_version = g->params.sm_arch_sm_version; | ||
230 | pgpu->sm_arch_spa_version = g->params.sm_arch_spa_version; | ||
231 | pgpu->sm_arch_warp_count = g->params.sm_arch_warp_count; | ||
232 | |||
229 | if (request->gpu_characteristics_buf_size > 0) { | 233 | if (request->gpu_characteristics_buf_size > 0) { |
230 | size_t write_size = sizeof(*pgpu); | 234 | size_t write_size = sizeof(*pgpu); |
231 | 235 | ||