gpu: nvgpu: Expose more config info for SM

This patch exposes the following fields to userspace for
each SM, indexed by its global SM index:
- Logical GPC index
- Virtual GPC index
- Local Logical TPC index
- Global Logical TPC index
- Migratable TPC index
- Local SM index

Bug 4115114

Change-Id: Ie596c8f617d46d7b6f1563f7afb210b59f250f3c
Signed-off-by: Martin Radev <mradev@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2909784
Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com>
Reviewed-by: Ankur Kishore <ankkishore@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Martin Radev
2023-05-24 13:11:48 +03:00
committed by mobile promotions
parent d6359b5adc
commit 78bef566dd
2 changed files with 60 additions and 11 deletions

View File

@@ -586,8 +586,23 @@ struct nvgpu_gpu_num_vsms {
};
struct nvgpu_gpu_vsms_mapping_entry {
__u8 gpc_index;
__u8 tpc_index;
/* Logical GPC index */
__u8 gpc_logical_index;
/* Virtual GPC index */
__u8 gpc_virtual_index;
/* Local Logical index in TPC */
__u8 tpc_local_logical_index;
/* Global Logical index in GPU */
__u8 tpc_global_logical_index;
/* Local SM index in TPC */
__u8 sm_local_id;
/* Migratable TPC index */
__u8 tpc_migratable_index;
};
struct nvgpu_gpu_vsms_mapping {