From 6c6aab952e91c9f15265af04be78c5a49934a823 Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Tue, 10 Apr 2018 14:58:09 +0530 Subject: gpu: nvgpu: Add conversion function for uapi submit gpfifo flags The submit gpfifo flags are splattered everywhere inside the nvgpu code. Though the usage is inside nvgpu Linux code only, still it needs to be gotten rid of and replaced with the defines present in common code. VQRM-3465 Change-Id: I901b33565b01fa3e1f9ba6698a323c16547a8d3e Signed-off-by: Sourab Gupta Reviewed-on: https://git-master.nvidia.com/r/1691979 Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 2008c471..7fcc54cc 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -47,6 +47,15 @@ struct fifo_profile_gk20a; #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) #define NVGPU_GPFIFO_FLAGS_USERMODE_SUPPORT (1 << 3) +/* Flags to be passed to gk20a_submit_channel_gpfifo() */ +#define NVGPU_SUBMIT_FLAGS_FENCE_WAIT (1 << 0) +#define NVGPU_SUBMIT_FLAGS_FENCE_GET (1 << 1) +#define NVGPU_SUBMIT_FLAGS_HW_FORMAT (1 << 2) +#define NVGPU_SUBMIT_FLAGS_SYNC_FENCE (1 << 3) +#define NVGPU_SUBMIT_FLAGS_SUPPRESS_WFI (1 << 4) +#define NVGPU_SUBMIT_FLAGS_SKIP_BUFFER_REFCOUNTING (1 << 5) +#define NVGPU_SUBMIT_FLAGS_RESCHEDULE_RUNLIST (1 << 6) + /* * The binary format of 'struct nvgpu_channel_fence' introduced here * should match that of 'struct nvgpu_fence' defined in uapi header, since -- cgit v1.2.2