diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/channel.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/channel.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/channel.c b/drivers/gpu/nvgpu/os/linux/channel.c index cc2d525d..a84c5a1c 100644 --- a/drivers/gpu/nvgpu/os/linux/channel.c +++ b/drivers/gpu/nvgpu/os/linux/channel.c | |||
@@ -752,7 +752,7 @@ out: | |||
752 | return 0; | 752 | return 0; |
753 | } | 753 | } |
754 | 754 | ||
755 | int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, | 755 | static int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, |
756 | struct nvgpu_gpfifo_entry *gpfifo, | 756 | struct nvgpu_gpfifo_entry *gpfifo, |
757 | struct nvgpu_submit_gpfifo_args *args, | 757 | struct nvgpu_submit_gpfifo_args *args, |
758 | u32 num_entries, | 758 | u32 num_entries, |
@@ -1019,3 +1019,25 @@ clean_up: | |||
1019 | return err; | 1019 | return err; |
1020 | } | 1020 | } |
1021 | 1021 | ||
1022 | int gk20a_submit_channel_gpfifo_user(struct channel_gk20a *c, | ||
1023 | struct nvgpu_submit_gpfifo_args *args, | ||
1024 | u32 num_entries, | ||
1025 | u32 flags, | ||
1026 | struct nvgpu_channel_fence *fence, | ||
1027 | struct gk20a_fence **fence_out, | ||
1028 | struct fifo_profile_gk20a *profile) | ||
1029 | { | ||
1030 | return gk20a_submit_channel_gpfifo(c, NULL, args, num_entries, | ||
1031 | flags, fence, fence_out, profile); | ||
1032 | } | ||
1033 | |||
1034 | int gk20a_submit_channel_gpfifo_kernel(struct channel_gk20a *c, | ||
1035 | struct nvgpu_gpfifo_entry *gpfifo, | ||
1036 | u32 num_entries, | ||
1037 | u32 flags, | ||
1038 | struct nvgpu_channel_fence *fence, | ||
1039 | struct gk20a_fence **fence_out) | ||
1040 | { | ||
1041 | return gk20a_submit_channel_gpfifo(c, gpfifo, NULL, num_entries, flags, | ||
1042 | fence, fence_out, NULL); | ||
1043 | } | ||