From 4c451b06bd0b771da2ff4612626a81adea0e3be2 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 7 Nov 2017 10:41:09 -0800 Subject: gpu: nvgpu: Move max_css_buffer_size to gr_gk20a max_css_buffer_size was accessed directly from GPU characteristics, which added a dependency to Linux. Move the field to gr_gk20a and copy it to GPU characteristics at query time. JIRA NVGPU-259 Change-Id: Ied19e33bf1a79a9ce45e33df57fe5bbe3a3c4f9d Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1593689 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu Reviewed-by: Peter Daifuku GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index cff889fb..3c6b1b26 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c @@ -230,6 +230,8 @@ gk20a_ctrl_ioctl_gpu_characteristics( pgpu->sm_arch_spa_version = g->params.sm_arch_spa_version; pgpu->sm_arch_warp_count = g->params.sm_arch_warp_count; + pgpu->max_css_buffer_size = g->gr.max_css_buffer_size; + if (request->gpu_characteristics_buf_size > 0) { size_t write_size = sizeof(*pgpu); -- cgit v1.2.2