summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-07 13:41:09 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-12 14:34:03 -0500
commit4c451b06bd0b771da2ff4612626a81adea0e3be2 (patch)
treedadc4da74b1e1664a717af0951baff5462a74424 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
parent01c98eb68055f0b18d4f5b9dc4aa78601a00bc1e (diff)
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 <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593689 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Peter Daifuku <pdaifuku@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c2
1 files changed, 2 insertions, 0 deletions
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(
230 pgpu->sm_arch_spa_version = g->params.sm_arch_spa_version; 230 pgpu->sm_arch_spa_version = g->params.sm_arch_spa_version;
231 pgpu->sm_arch_warp_count = g->params.sm_arch_warp_count; 231 pgpu->sm_arch_warp_count = g->params.sm_arch_warp_count;
232 232
233 pgpu->max_css_buffer_size = g->gr.max_css_buffer_size;
234
233 if (request->gpu_characteristics_buf_size > 0) { 235 if (request->gpu_characteristics_buf_size > 0) {
234 size_t write_size = sizeof(*pgpu); 236 size_t write_size = sizeof(*pgpu);
235 237