diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-03-27 10:09:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-05 08:22:54 -0400 |
commit | 03b87689025b86b145236a9c707e31a3d3214eb0 (patch) | |
tree | c9f1d756e50c24b69718a04778d88bb53f26ca3b /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | 077de38dfbc37ca933e0f3456397a44a49b1202e (diff) |
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 <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1683391
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 10 |
1 files changed, 7 insertions, 3 deletions
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; | |||
46 | #define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1) | 46 | #define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1) |
47 | #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) | 47 | #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) |
48 | 48 | ||
49 | struct nvgpu_gpfifo_args { | ||
50 | u32 num_entries; | ||
51 | u32 num_inflight_jobs; | ||
52 | u32 flags; | ||
53 | }; | ||
54 | |||
49 | struct notification { | 55 | struct notification { |
50 | struct { | 56 | struct { |
51 | u32 nanoseconds[2]; | 57 | u32 nanoseconds[2]; |
@@ -324,9 +330,7 @@ struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g, | |||
324 | bool is_privileged_channel); | 330 | bool is_privileged_channel); |
325 | 331 | ||
326 | int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, | 332 | int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, |
327 | unsigned int num_entries, | 333 | struct nvgpu_gpfifo_args *gpfifo_args); |
328 | unsigned int num_inflight_jobs, | ||
329 | u32 flags); | ||
330 | 334 | ||
331 | void gk20a_channel_timeout_restart_all_channels(struct gk20a *g); | 335 | void gk20a_channel_timeout_restart_all_channels(struct gk20a *g); |
332 | 336 | ||