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/gm20b/gr_gm20b.c | |
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/gm20b/gr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index afe60b98..61f608f4 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -841,11 +841,11 @@ void gr_gm20b_detect_sm_arch(struct gk20a *g) | |||
841 | { | 841 | { |
842 | u32 v = gk20a_readl(g, gr_gpc0_tpc0_sm_arch_r()); | 842 | u32 v = gk20a_readl(g, gr_gpc0_tpc0_sm_arch_r()); |
843 | 843 | ||
844 | g->gpu_characteristics.sm_arch_spa_version = | 844 | g->params.sm_arch_spa_version = |
845 | gr_gpc0_tpc0_sm_arch_spa_version_v(v); | 845 | gr_gpc0_tpc0_sm_arch_spa_version_v(v); |
846 | g->gpu_characteristics.sm_arch_sm_version = | 846 | g->params.sm_arch_sm_version = |
847 | gr_gpc0_tpc0_sm_arch_sm_version_v(v); | 847 | gr_gpc0_tpc0_sm_arch_sm_version_v(v); |
848 | g->gpu_characteristics.sm_arch_warp_count = | 848 | g->params.sm_arch_warp_count = |
849 | gr_gpc0_tpc0_sm_arch_warp_count_v(v); | 849 | gr_gpc0_tpc0_sm_arch_warp_count_v(v); |
850 | } | 850 | } |
851 | 851 | ||
@@ -1154,7 +1154,7 @@ void gr_gm20b_bpt_reg_info(struct gk20a *g, struct nvgpu_warpstate *w_state) | |||
1154 | 1154 | ||
1155 | /* for maxwell & kepler */ | 1155 | /* for maxwell & kepler */ |
1156 | u32 numSmPerTpc = 1; | 1156 | u32 numSmPerTpc = 1; |
1157 | u32 numWarpPerTpc = g->gpu_characteristics.sm_arch_warp_count * numSmPerTpc; | 1157 | u32 numWarpPerTpc = g->params.sm_arch_warp_count * numSmPerTpc; |
1158 | 1158 | ||
1159 | for (sm_id = 0; sm_id < gr->no_of_sm; sm_id++) { | 1159 | for (sm_id = 0; sm_id < gr->no_of_sm; sm_id++) { |
1160 | gpc = g->gr.sm_to_cluster[sm_id].gpc_index; | 1160 | gpc = g->gr.sm_to_cluster[sm_id].gpc_index; |