summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorSachit Kadle <skadle@nvidia.com>2016-08-30 23:23:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-20 11:14:24 -0400
commit418fc5338e202c6d0b6b02d49fed736ed28279fb (patch)
treec6cd03ec94d1c9f1342e0396b3eee64b49db8b20 /include/uapi
parent733fb79b39869665addcd80ccdf1c15f4a5aaa29 (diff)
gpu: nvgpu: add deterministic submit flag
This change adds a new ioctl flag, NVGPU_SUBMIT_GPFIFO_FLAGS_DETERMINISTIC, which indicates that a gpfifo submission must exhibit deterministic behavior within the kernel. For submissions that require job tracking and also set this flag, we require the channel to have previously pre-allocated job tracking resources. Bug 1795076 Change-Id: I0496a2513c6c683fcda161b32db9e7ee6712d45c Signed-off-by: Sachit Kadle <skadle@nvidia.com> Reviewed-on: http://git-master/r/1210527 (cherry picked from commit 0a36a0ce3a6cbe398931993e742fc928f7b2c0aa) Reviewed-on: http://git-master/r/1223935 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 22e357b6..f3c75045 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -994,6 +994,8 @@ struct nvgpu_fence {
994#define NVGPU_SUBMIT_GPFIFO_FLAGS_SUPPRESS_WFI (1 << 4) 994#define NVGPU_SUBMIT_GPFIFO_FLAGS_SUPPRESS_WFI (1 << 4)
995/* skip buffer refcounting during submit */ 995/* skip buffer refcounting during submit */
996#define NVGPU_SUBMIT_GPFIFO_FLAGS_SKIP_BUFFER_REFCOUNTING (1 << 5) 996#define NVGPU_SUBMIT_GPFIFO_FLAGS_SKIP_BUFFER_REFCOUNTING (1 << 5)
997/* submit should exhibit deterministic latency */
998#define NVGPU_SUBMIT_GPFIFO_FLAGS_DETERMINISTIC (1 << 6)
997 999
998struct nvgpu_submit_gpfifo_args { 1000struct nvgpu_submit_gpfifo_args {
999 __u64 gpfifo; 1001 __u64 gpfifo;