From 7405cd9a6dcd22d04f48be07be4839c735994ada Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Mon, 3 Sep 2018 15:50:09 +0300 Subject: gpu: nvgpu: move usermode buffer alloc to os_channel Allocation of usermode submit buffers is not chip specific but is operating system specific; the API belongs to the os_channel layer, not in the fifo ops HAL. Bug 200145225 Change-Id: I90adb47103ab4b2e888c3db191d78ceda35e777d Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1812287 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/fifo/channel.c') diff --git a/drivers/gpu/nvgpu/common/fifo/channel.c b/drivers/gpu/nvgpu/common/fifo/channel.c index 58b62ce7..45f5b736 100644 --- a/drivers/gpu/nvgpu/common/fifo/channel.c +++ b/drivers/gpu/nvgpu/common/fifo/channel.c @@ -1145,8 +1145,8 @@ int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, } if (gpfifo_args->flags & NVGPU_GPFIFO_FLAGS_USERMODE_SUPPORT) { - if (g->ops.fifo.alloc_usermode_buffers) { - err = g->ops.fifo.alloc_usermode_buffers(c, + if (g->os_channel.alloc_usermode_buffers) { + err = g->os_channel.alloc_usermode_buffers(c, gpfifo_args); if (err) { nvgpu_err(g, "Usermode buffer alloc failed"); -- cgit v1.2.2