diff options
author | David Li <davli@nvidia.com> | 2017-08-11 00:44:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-31 21:44:54 -0400 |
commit | a199baede7e59fd0b303c50d4a25fc0ee7c290d9 (patch) | |
tree | 8ea5a03f27b5aa980136889300166681b91c9ac6 /include | |
parent | 4995389f6806433c65549250b5ab953611febc40 (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 'include')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 6c113764..5b1d606a 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -144,6 +144,8 @@ struct nvgpu_gpu_zbc_query_table_args { | |||
144 | #define NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL (1ULL << 19) | 144 | #define NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL (1ULL << 19) |
145 | /* IO coherence support is available */ | 145 | /* IO coherence support is available */ |
146 | #define NVGPU_GPU_FLAGS_SUPPORT_IO_COHERENCE (1ULL << 20) | 146 | #define NVGPU_GPU_FLAGS_SUPPORT_IO_COHERENCE (1ULL << 20) |
147 | /* NVGPU_SUBMIT_GPFIFO_FLAGS_RESCHEDULE_RUNLIST is available */ | ||
148 | #define NVGPU_GPU_FLAGS_SUPPORT_RESCHEDULE_RUNLIST (1ULL << 21) | ||
147 | 149 | ||
148 | struct nvgpu_gpu_characteristics { | 150 | struct nvgpu_gpu_characteristics { |
149 | __u32 arch; | 151 | __u32 arch; |
@@ -1404,6 +1406,8 @@ struct nvgpu_fence { | |||
1404 | #define NVGPU_SUBMIT_GPFIFO_FLAGS_SUPPRESS_WFI (1 << 4) | 1406 | #define NVGPU_SUBMIT_GPFIFO_FLAGS_SUPPRESS_WFI (1 << 4) |
1405 | /* skip buffer refcounting during submit */ | 1407 | /* skip buffer refcounting during submit */ |
1406 | #define NVGPU_SUBMIT_GPFIFO_FLAGS_SKIP_BUFFER_REFCOUNTING (1 << 5) | 1408 | #define NVGPU_SUBMIT_GPFIFO_FLAGS_SKIP_BUFFER_REFCOUNTING (1 << 5) |
1409 | /* expire current timeslice and reschedule runlist from front */ | ||
1410 | #define NVGPU_SUBMIT_GPFIFO_FLAGS_RESCHEDULE_RUNLIST (1 << 6) | ||
1407 | 1411 | ||
1408 | struct nvgpu_submit_gpfifo_args { | 1412 | struct nvgpu_submit_gpfifo_args { |
1409 | __u64 gpfifo; | 1413 | __u64 gpfifo; |