summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-12-30 16:04:19 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-10 18:57:20 -0500
commit6b90684ceec6c32aed7491a059b3972b1f1be5f4 (patch)
tree0bc0fa73de0e352d8da8f360cac780c903c60d95 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent5fb7c7d8f97bbec0d01f4f26aaf7757790c8b407 (diff)
gpu: nvgpu: vgpu: get virtual SMs mapping
On gv11b we can have multiple SMs per TPC. Add sm_per_tpc in vgpu constants to properly dimension the virtual SM to TPC/GPC mapping in virtualization case. Use TEGRA_VGPU_CMD_GET_SMS_MAPPING to query current mapping. Bug 2039676 Change-Id: I817be18f9a28cfb9bd8af207d7d6341a2ec3994b Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1631203 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index a1c9c2bd..4f05ba8f 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -392,7 +392,7 @@ struct gpu_ops {
392 void (*update_boosted_ctx)(struct gk20a *g, 392 void (*update_boosted_ctx)(struct gk20a *g,
393 struct nvgpu_mem *mem, 393 struct nvgpu_mem *mem,
394 struct gr_ctx_desc *gr_ctx); 394 struct gr_ctx_desc *gr_ctx);
395 void (*init_sm_id_table)(struct gk20a *g); 395 int (*init_sm_id_table)(struct gk20a *g);
396 int (*load_smid_config)(struct gk20a *g); 396 int (*load_smid_config)(struct gk20a *g);
397 void (*program_sm_id_numbering)(struct gk20a *g, 397 void (*program_sm_id_numbering)(struct gk20a *g,
398 u32 gpc, u32 tpc, u32 smid); 398 u32 gpc, u32 tpc, u32 smid);