diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/ioctl_channel.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_channel.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_channel.c b/drivers/gpu/nvgpu/os/linux/ioctl_channel.c index ee4ef237..fa6a02d6 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_channel.c | |||
@@ -776,6 +776,7 @@ static int gk20a_ioctl_channel_submit_gpfifo( | |||
776 | u32 submit_flags = 0; | 776 | u32 submit_flags = 0; |
777 | int fd = -1; | 777 | int fd = -1; |
778 | struct gk20a *g = ch->g; | 778 | struct gk20a *g = ch->g; |
779 | struct nvgpu_gpfifo_userdata userdata; | ||
779 | 780 | ||
780 | int ret = 0; | 781 | int ret = 0; |
781 | nvgpu_log_fn(g, " "); | 782 | nvgpu_log_fn(g, " "); |
@@ -798,7 +799,12 @@ static int gk20a_ioctl_channel_submit_gpfifo( | |||
798 | return fd; | 799 | return fd; |
799 | } | 800 | } |
800 | 801 | ||
801 | ret = gk20a_submit_channel_gpfifo_user(ch, args, args->num_entries, | 802 | userdata.entries = (struct nvgpu_gpfifo_entry __user*) |
803 | (uintptr_t)args->gpfifo; | ||
804 | userdata.context = NULL; | ||
805 | |||
806 | ret = gk20a_submit_channel_gpfifo_user(ch, | ||
807 | userdata, args->num_entries, | ||
802 | submit_flags, &fence, &fence_out, profile); | 808 | submit_flags, &fence, &fence_out, profile); |
803 | 809 | ||
804 | if (ret) { | 810 | if (ret) { |