summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-01-09 13:54:36 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-16 15:15:23 -0500
commitf6a634ff24194ee83579f90ab399a08d91df233a (patch)
tree56e87309729a5e926ef2fd30bb8ede2abbd23da7 /drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
parentbb5a9e1c6cfbe69b8a984439a092db7a1a75a405 (diff)
gpu: nvgpu: use HAL to set TSG timeslice
Setting timeslice for virtualized case was not effective, because both ioctls NVGPU_TSG_IOCTL_SET_TIMESLICE and NVGPU_SCHED_IOCTL_TSG_SET_TIMESLICE were calling the native function to set TSG timeslice. - Fixed wrapper function to call HAL - Defined HAL function for "native" set TSG timeslice - Also, properly update timeout_us in TSG context, in virtualized case. This change also moves the min/max bounds checking for tsg timeslice into the native function implementation. There is no sysfs node for these parameters for vgpu, as RM server is ultimately responsible for this check. Bug 200263575 Change-Id: Ibceab9427561ad58ec28abfff0c96ca8f592bdb9 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1283180 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/fifo_gm20b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
index 3ffc7103..6be6be04 100644
--- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B Fifo 2 * GM20B Fifo
3 * 3 *
4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -158,6 +158,7 @@ void gm20b_init_fifo(struct gpu_ops *gops)
158 gops->fifo.get_num_fifos = gm20b_fifo_get_num_fifos; 158 gops->fifo.get_num_fifos = gm20b_fifo_get_num_fifos;
159 gops->fifo.get_pbdma_signature = gk20a_fifo_get_pbdma_signature; 159 gops->fifo.get_pbdma_signature = gk20a_fifo_get_pbdma_signature;
160 gops->fifo.set_runlist_interleave = gk20a_fifo_set_runlist_interleave; 160 gops->fifo.set_runlist_interleave = gk20a_fifo_set_runlist_interleave;
161 gops->fifo.tsg_set_timeslice = gk20a_fifo_tsg_set_timeslice;
161 gops->fifo.force_reset_ch = gk20a_fifo_force_reset_ch; 162 gops->fifo.force_reset_ch = gk20a_fifo_force_reset_ch;
162 gops->fifo.engine_enum_from_type = gk20a_fifo_engine_enum_from_type; 163 gops->fifo.engine_enum_from_type = gk20a_fifo_engine_enum_from_type;
163 gops->fifo.device_info_data_parse = gm20b_device_info_data_parse; 164 gops->fifo.device_info_data_parse = gm20b_device_info_data_parse;