diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-07-21 03:13:26 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:32 -0400 |
commit | 61e918910326e84ca652649ee3b5036949d36fc3 (patch) | |
tree | 20b1473d21ffc3901a9788880195044d19d76d38 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | a84dc62b5ef54d6f714172359a4e0fe68f8802ca (diff) |
gpu: nvgpu: gk20a: Allow in-kernel channel alloc
This patch modifies channel interfaces to allow allocating the
channel for kernel use. This is needed if we want to run a shader
from kernel space.
Bug 1409151
Change-Id: I3544186bb1541120f85e01a19de106ef011c1b11
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/440261
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lauri Peltonen <lpeltonen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 08bc06c2..161d2b83 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -178,5 +178,16 @@ void gk20a_channel_update(struct channel_gk20a *c, int nr_completed); | |||
178 | void gk20a_init_channel(struct gpu_ops *gops); | 178 | void gk20a_init_channel(struct gpu_ops *gops); |
179 | 179 | ||
180 | int gk20a_wait_channel_idle(struct channel_gk20a *ch); | 180 | int gk20a_wait_channel_idle(struct channel_gk20a *ch); |
181 | struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g); | ||
182 | void channel_gk20a_unbind(struct channel_gk20a *ch_gk20a); | ||
183 | |||
184 | int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, | ||
185 | struct nvhost_gpfifo *gpfifo, | ||
186 | u32 num_entries, | ||
187 | struct nvhost_fence *fence, | ||
188 | u32 flags); | ||
189 | |||
190 | int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c, | ||
191 | struct nvhost_alloc_gpfifo_args *args); | ||
181 | 192 | ||
182 | #endif /*__CHANNEL_GK20A_H__*/ | 193 | #endif /*__CHANNEL_GK20A_H__*/ |