mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Add characterstics field to expose max ctxsw ring buffer size
NVGPU_CTXSW_IOCTL_RING_SETUP can be used to setup a custom ring buffer and it accepts size via arguments. nvgpu driver will return an error if size requested is greater than 128 * 4096 but this value is hardcoded and not exposed anywhere. Add characteristics field in nvgpu.h to expose this size so that corresponding nvrm_gpu API can use it. Bug 2169674 Change-Id: Icf9465d4eec6ba3a307ea9490bd5da563944e4f6 Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1967596 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7e68e5c83d
commit
75ff0feeff
@@ -326,6 +326,7 @@ gk20a_ctrl_ioctl_gpu_characteristics(
|
||||
gpu.sm_arch_warp_count = g->params.sm_arch_warp_count;
|
||||
|
||||
gpu.max_css_buffer_size = g->gr.max_css_buffer_size;
|
||||
gpu.max_ctxsw_ring_buffer_size = g->gr.max_ctxsw_ring_buffer_size;
|
||||
|
||||
gpu.gpu_ioctl_nr_last = NVGPU_GPU_IOCTL_LAST;
|
||||
gpu.tsg_ioctl_nr_last = NVGPU_TSG_IOCTL_LAST;
|
||||
|
||||
Reference in New Issue
Block a user