From 585e33e4082baaf58d3714c42200f3c72bffa218 Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Tue, 10 Apr 2018 12:05:09 +0530 Subject: gpu: nvgpu: remove usage of nvgpu_fence Remove the usage of nvgpu_fence splattered across nvgpu, and replace with a struct defined in common code. The usage is still inside Linux, but this helps the subsequent unification efforts, e.g. to unify the submit path. VQRM-3465 Change-Id: Ic3737450123dfc5e1c40ca5b6b8d8f6b3070aa0d Signed-off-by: Sourab Gupta Reviewed-on: https://git-master.nvidia.com/r/1691977 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index cd5bf7d7..ab1c4a6f 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -47,6 +47,18 @@ struct fifo_profile_gk20a; #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) #define NVGPU_GPFIFO_FLAGS_USERMODE_SUPPORT (1 << 3) +/* + * The binary format of 'struct nvgpu_channel_fence' introduced here + * should match that of 'struct nvgpu_fence' defined in uapi header, since + * this struct is intended to be a mirror copy of the uapi struct. This is + * not a hard requirement though because of nvgpu_get_fence_args conversion + * function. + */ +struct nvgpu_channel_fence { + u32 id; + u32 value; +}; + struct nvgpu_gpfifo_args { u32 num_entries; u32 num_inflight_jobs; -- cgit v1.2.2