From a67ac8bac95541f020a2bde2ea2c53eb613e05a4 Mon Sep 17 00:00:00 2001 From: Martin Radev Date: Tue, 30 May 2023 11:11:42 +0300 Subject: [PATCH] gpu: nvgpu: update logical and physical gpc map doc This patch fixes the documentation for logical and physical gpc map. The earlier version incorrectly documents the expected buffer size. Bug 3944943 Change-Id: I5c3921dea58732407737cebfa8697fc7010b5b95 Signed-off-by: Martin Radev Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2912376 Tested-by: mobile promotions Reviewed-by: mobile promotions --- include/uapi/linux/nvgpu-ctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/nvgpu-ctrl.h b/include/uapi/linux/nvgpu-ctrl.h index f3cac5d7a..3f70029a9 100644 --- a/include/uapi/linux/nvgpu-ctrl.h +++ b/include/uapi/linux/nvgpu-ctrl.h @@ -506,7 +506,7 @@ struct nvgpu_gpu_get_tpc_masks_args { struct nvgpu_gpu_get_gpc_physical_map_args { /* [in] GPC logical-map-buffer size. It must be - * sizeof(__u32) * fls(gpc_mask) + * sizeof(__u32) * popcnt(gpc_mask) */ __u32 map_buf_size; __u32 reserved; @@ -519,7 +519,7 @@ struct nvgpu_gpu_get_gpc_physical_map_args { struct nvgpu_gpu_get_gpc_logical_map_args { /* [in] GPC logical-map-buffer size. It must be - * sizeof(__u32) * fls(gpc_mask) + * sizeof(__u32) * popcnt(gpc_mask) */ __u32 map_buf_size; __u32 reserved;