diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index cda2ce46..73a8131d 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -782,7 +782,14 @@ static int gk20a_ctrl_vsm_mapping(struct gk20a *g, | |||
782 | 782 | ||
783 | for (i = 0; i < gr->no_of_sm; i++) { | 783 | for (i = 0; i < gr->no_of_sm; i++) { |
784 | vsms_buf[i].gpc_index = gr->sm_to_cluster[i].gpc_index; | 784 | vsms_buf[i].gpc_index = gr->sm_to_cluster[i].gpc_index; |
785 | vsms_buf[i].tpc_index = gr->sm_to_cluster[i].tpc_index; | 785 | if (g->ops.gr.get_nonpes_aware_tpc) |
786 | vsms_buf[i].tpc_index = | ||
787 | g->ops.gr.get_nonpes_aware_tpc(g, | ||
788 | gr->sm_to_cluster[i].gpc_index, | ||
789 | gr->sm_to_cluster[i].tpc_index); | ||
790 | else | ||
791 | vsms_buf[i].tpc_index = | ||
792 | gr->sm_to_cluster[i].tpc_index; | ||
786 | } | 793 | } |
787 | 794 | ||
788 | err = copy_to_user((void __user *)(uintptr_t) | 795 | err = copy_to_user((void __user *)(uintptr_t) |