diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2015-01-30 08:22:11 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:05:59 -0400 |
commit | adb33505b21a8e75267bb74d602becf8db51946b (patch) | |
tree | 6b8d674e5c098ec0b85b692c5d50c59c749bc177 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | 24ddf71b9009291b829e6c30eb1b22e8838f7367 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 9982b1e0..c028e3b1 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -185,6 +185,8 @@ int gk20a_channel_resume(struct gk20a *g); | |||
185 | 185 | ||
186 | /* Channel file operations */ | 186 | /* Channel file operations */ |
187 | int gk20a_channel_open(struct inode *inode, struct file *filp); | 187 | int gk20a_channel_open(struct inode *inode, struct file *filp); |
188 | int gk20a_channel_open_ioctl(struct gk20a *g, | ||
189 | struct nvgpu_channel_open_args *args); | ||
188 | long gk20a_channel_ioctl(struct file *filp, | 190 | long gk20a_channel_ioctl(struct file *filp, |
189 | unsigned int cmd, | 191 | unsigned int cmd, |
190 | unsigned long arg); | 192 | unsigned long arg); |