diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-23 17:19:01 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-04 13:24:44 -0400 |
commit | a07e10f494c158ae31d6187e9be3db409528a507 (patch) | |
tree | 6ea3d49390aea1d1fb5f074d30027b184aba0cee /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | f116320137b0eb835bcbf704d34fc8f7880595d2 (diff) |
gpu: nvgpu: Move channel IOCTL code to Linux module
Move channel IOCTL specific code to Linux module. This clears some
Linux dependencies from channel_gk20a.c.
JIRA NVGPU-32
Change-Id: I41817d612b959709365bcabff9c8a15f2bfe4c60
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1330804
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 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 37b1d945..bcfdadec 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -18,13 +18,8 @@ | |||
18 | #ifndef CHANNEL_GK20A_H | 18 | #ifndef CHANNEL_GK20A_H |
19 | #define CHANNEL_GK20A_H | 19 | #define CHANNEL_GK20A_H |
20 | 20 | ||
21 | #include <linux/log2.h> | ||
22 | #include <linux/poll.h> | ||
23 | #include <linux/semaphore.h> | ||
24 | #include <linux/slab.h> | ||
25 | #include <linux/stacktrace.h> | 21 | #include <linux/stacktrace.h> |
26 | #include <linux/wait.h> | 22 | #include <linux/wait.h> |
27 | #include <uapi/linux/nvgpu.h> | ||
28 | #include <nvgpu/list.h> | 23 | #include <nvgpu/list.h> |
29 | 24 | ||
30 | #include <nvgpu/lock.h> | 25 | #include <nvgpu/lock.h> |
@@ -359,8 +354,13 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, | |||
359 | bool force_need_sync_fence, | 354 | bool force_need_sync_fence, |
360 | struct fifo_profile_gk20a *profile); | 355 | struct fifo_profile_gk20a *profile); |
361 | 356 | ||
362 | int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c, | 357 | int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, |
363 | struct nvgpu_alloc_gpfifo_ex_args *args); | 358 | unsigned int num_entries, |
359 | unsigned int num_inflight_jobs, | ||
360 | u32 flags); | ||
361 | void gk20a_channel_free_error_notifiers(struct channel_gk20a *ch); | ||
362 | void gk20a_channel_free_cycle_stats_buffer(struct channel_gk20a *ch); | ||
363 | int gk20a_channel_free_cycle_stats_snapshot(struct channel_gk20a *ch); | ||
364 | 364 | ||
365 | void gk20a_channel_timeout_restart_all_channels(struct gk20a *g); | 365 | void gk20a_channel_timeout_restart_all_channels(struct gk20a *g); |
366 | 366 | ||