summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gp10b.c
diff options
context:
space:
mode:
authorDavid Li <davli@nvidia.com>2017-08-11 00:44:28 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-31 21:44:54 -0400
commita199baede7e59fd0b303c50d4a25fc0ee7c290d9 (patch)
tree8ea5a03f27b5aa980136889300166681b91c9ac6 /drivers/gpu/nvgpu/gp10b/gp10b.c
parent4995389f6806433c65549250b5ab953611febc40 (diff)
gpu: nvgpu: add NVGPU_SUBMIT_GPFIFO_FLAGS_RESCHEDULE_RUNLIST
NVGPU_SUBMIT_GPFIFO_FLAGS_RESCHEDULE_RUNLIST causes host to expire current timeslice and reschedule from front of runlist. This can be used with NVGPU_RUNLIST_INTERLEAVE_LEVEL_HIGH to make a channel start sooner after submit rather than waiting for natural timeslice expiration or block/finish of currently running channel. Bug 1968813 Change-Id: I632e87c5f583a09ec8bf521dc73f595150abebb0 Signed-off-by: David Li <davli@nvidia.com> Reviewed-on: http://git-master/r/#/c/1537198 Reviewed-on: https://git-master.nvidia.com/r/1537198 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gp10b.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gp10b.c b/drivers/gpu/nvgpu/gp10b/gp10b.c
index e4a8b02e..4c18ef58 100644
--- a/drivers/gpu/nvgpu/gp10b/gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gp10b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP10B Graphics 2 * GP10B Graphics
3 * 3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-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,
@@ -108,6 +108,7 @@ int gp10b_init_gpu_characteristics(struct gk20a *g)
108{ 108{
109 gk20a_init_gpu_characteristics(g); 109 gk20a_init_gpu_characteristics(g);
110 g->gpu_characteristics.flags |= gp10b_detect_ecc_enabled_units(g); 110 g->gpu_characteristics.flags |= gp10b_detect_ecc_enabled_units(g);
111 111 g->gpu_characteristics.flags |=
112 NVGPU_GPU_FLAGS_SUPPORT_RESCHEDULE_RUNLIST;
112 return 0; 113 return 0;
113} 114}