gpu: nvgpu: update vsms_mapping ioctl

Update vsms_mapping ioctl to copy from the internal sm_to_cluster array to
new nvgpu_gpu_vsms_mapping_entry array before copying the latter back to user.

Bug 200260086

Change-Id: I0fccc6fb6e0d6b6f737b3a44818d2b47438cd3c8
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1266174
(cherry picked from commit e28882c05491cb8f9573ff71c2d7309e5714e385)
Reviewed-on: http://git-master/r/1269623
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Peter Daifuku
2016-12-06 16:54:07 -08:00
committed by mobile promotions
parent 8ef013e36e
commit 1b539a33d8
2 changed files with 20 additions and 2 deletions

View File

@@ -383,6 +383,11 @@ struct nvgpu_gpu_num_vsms {
__u32 reserved;
};
struct nvgpu_gpu_vsms_mapping_entry {
__u8 gpc_index;
__u8 tpc_index;
};
struct nvgpu_gpu_vsms_mapping {
__u64 vsms_map_buf_addr;
};