From 1b539a33d8dca88dafffda8f410d6847a891c7e4 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Tue, 6 Dec 2016 16:54:07 -0800 Subject: 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 Reviewed-on: http://git-master/r/1266174 (cherry picked from commit e28882c05491cb8f9573ff71c2d7309e5714e385) Reviewed-on: http://git-master/r/1269623 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvgpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/uapi') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 649cdf02..052bebc8 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -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; }; -- cgit v1.2.2