mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
dc5f6bcee0
commit
870e76fbc7
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user