diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-07 13:06:45 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-09 22:18:39 -0500 |
commit | 01e5b17e08cc9bde4d8bfbefb09828ae897a6df0 (patch) | |
tree | 8ea0bd38181d9c7ed458bfe023c58f96b5fc2868 | |
parent | c87e85af0cd812c6e1c138d4d1e48c23e3aa6bd3 (diff) |
gpu: nvgpu: gv11b: 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: I8e7b542642b620f161d62954400777079065f49d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1593692
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 22377522..9d97a61f 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -2104,11 +2104,11 @@ void gr_gv11b_detect_sm_arch(struct gk20a *g) | |||
2104 | { | 2104 | { |
2105 | u32 v = gk20a_readl(g, gr_gpc0_tpc0_sm_arch_r()); | 2105 | u32 v = gk20a_readl(g, gr_gpc0_tpc0_sm_arch_r()); |
2106 | 2106 | ||
2107 | g->gpu_characteristics.sm_arch_spa_version = | 2107 | g->params.sm_arch_spa_version = |
2108 | gr_gpc0_tpc0_sm_arch_spa_version_v(v); | 2108 | gr_gpc0_tpc0_sm_arch_spa_version_v(v); |
2109 | g->gpu_characteristics.sm_arch_sm_version = | 2109 | g->params.sm_arch_sm_version = |
2110 | gr_gpc0_tpc0_sm_arch_sm_version_v(v); | 2110 | gr_gpc0_tpc0_sm_arch_sm_version_v(v); |
2111 | g->gpu_characteristics.sm_arch_warp_count = | 2111 | g->params.sm_arch_warp_count = |
2112 | gr_gpc0_tpc0_sm_arch_warp_count_v(v); | 2112 | gr_gpc0_tpc0_sm_arch_warp_count_v(v); |
2113 | } | 2113 | } |
2114 | 2114 | ||