diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2016-05-12 12:05:11 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-16 16:43:27 -0400 |
commit | 74f5aa0ad07a2499df6bd727f92ff4a170da6501 (patch) | |
tree | 1d6ac8114159350d6fc664e2e3bf3b3826bd29e1 /drivers/gpu | |
parent | 211edaefb71d06d34c2835a93249da58673bff8a (diff) |
gpu: nvgpu: reset TSG timeslice params on open
The TSG timeslice params were not being reset on open,
resulting in timeslices being incorrectly inherited across
close->open cycles.
Bug 1617046
Change-Id: I5124634fbf058f9f1b57c5c9cc1428db8df4ad43
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/1146849
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 5f4cf931..5b77bf80 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -406,6 +406,8 @@ int gk20a_tsg_open(struct gk20a *g, struct file *filp) | |||
406 | tsg->vm = NULL; | 406 | tsg->vm = NULL; |
407 | tsg->interleave_level = NVGPU_RUNLIST_INTERLEAVE_LEVEL_LOW; | 407 | tsg->interleave_level = NVGPU_RUNLIST_INTERLEAVE_LEVEL_LOW; |
408 | tsg->timeslice_us = 0; | 408 | tsg->timeslice_us = 0; |
409 | tsg->timeslice_timeout = 0; | ||
410 | tsg->timeslice_scale = 0; | ||
409 | 411 | ||
410 | filp->private_data = tsg; | 412 | filp->private_data = tsg; |
411 | 413 | ||