gpu: nvgpu: add open channel ioctl to ctrl node
authorKonsta Holtta <kholtta@nvidia.com>
Fri, 30 Jan 2015 13:22:11 +0000 (15:22 +0200)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 10 Feb 2015 18:24:42 +0000 (10:24 -0800)
commita058a54fb1c974eb211a78392d5977566075941c
treeae6e36db6ebea599ab7a265274d17fda5c705bf2
parent3da5006b0f2db61d679f1cf6d1adf7520e056e3c
gpu: nvgpu: add open channel ioctl to ctrl node

Add the ioctl to open a new gpu channel to also the control node for
improved process startup performance, in addition to the current open
ioctl in the channel node. The new channel fd creation is refactored to
a separate function which is called from both ctrl and channel ioctls.

Bug 1604952

Change-Id: I3357ceec694c0e6d7a85807183884324cb725d3a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/679516
Reviewed-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c
drivers/gpu/nvgpu/gk20a/channel_gk20a.h
drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
include/uapi/linux/nvgpu.h