diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-06-11 07:15:54 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:16 -0400 |
commit | e6eb4b59f6e8753c64133a4b86c6278ceef98e93 (patch) | |
tree | 9c718a8a033e559daf4fc90cee2bc4429c788c32 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | 6f492c3834fe18fe3d00d0024b8178250bed7276 (diff) |
gpu: nvgpu: add kernel APIs for TSG support
Add support to create/destroy TSGs using node "/dev/nvhost-tsg-gpu"
Provide below IOCTLs to bind/unbind channels to/from TSGs :
NVGPU_TSG_IOCTL_BIND_CHANNEL
NVGPU_TSG_IOCTL_UNBIND_CHANNEL
Bug 1470692
Change-Id: Iaf9f16a522379eb943906624548f8d28fc6d4486
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/416610
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 36697e02..4d236a70 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -83,6 +83,9 @@ struct channel_gk20a { | |||
83 | bool vpr; | 83 | bool vpr; |
84 | pid_t pid; | 84 | pid_t pid; |
85 | 85 | ||
86 | int tsgid; | ||
87 | struct list_head ch_entry; /* channel's entry in TSG */ | ||
88 | |||
86 | struct list_head jobs; | 89 | struct list_head jobs; |
87 | struct mutex jobs_lock; | 90 | struct mutex jobs_lock; |
88 | struct mutex submit_lock; | 91 | struct mutex submit_lock; |