From 03b87689025b86b145236a9c707e31a3d3214eb0 Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Tue, 27 Mar 2018 19:39:21 +0530 Subject: gpu: nvgpu: pass alloc_gpfifo args to gk20a_channel_alloc_gpfifo The patch defines 'struct nvgpu_gpfifo_args' to be filled by alloc_gpfifo(_ex) ioctls and passed to the gk20a_channel_alloc_gpfifo function. This is required as a prep towards having the usermode submission support in the core channel core. Change-Id: I72acc00cc5558dd3623604da7d716bf849f0152c Signed-off-by: Sourab Gupta Reviewed-on: https://git-master.nvidia.com/r/1683391 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (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 f2cb2ab8..eaa5f81b 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -46,6 +46,12 @@ struct fifo_profile_gk20a; #define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1) #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) +struct nvgpu_gpfifo_args { + u32 num_entries; + u32 num_inflight_jobs; + u32 flags; +}; + struct notification { struct { u32 nanoseconds[2]; @@ -324,9 +330,7 @@ struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g, bool is_privileged_channel); int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, - unsigned int num_entries, - unsigned int num_inflight_jobs, - u32 flags); + struct nvgpu_gpfifo_args *gpfifo_args); void gk20a_channel_timeout_restart_all_channels(struct gk20a *g); -- cgit v1.2.2