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/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/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 9769ac99..60b9b80e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -40,6 +40,7 @@ struct acr_gm20b; | |||
40 | #include "as_gk20a.h" | 40 | #include "as_gk20a.h" |
41 | #include "clk_gk20a.h" | 41 | #include "clk_gk20a.h" |
42 | #include "fifo_gk20a.h" | 42 | #include "fifo_gk20a.h" |
43 | #include "tsg_gk20a.h" | ||
43 | #include "gr_gk20a.h" | 44 | #include "gr_gk20a.h" |
44 | #include "sim_gk20a.h" | 45 | #include "sim_gk20a.h" |
45 | #include "pmu_gk20a.h" | 46 | #include "pmu_gk20a.h" |
@@ -308,6 +309,11 @@ struct gk20a { | |||
308 | struct device *node; | 309 | struct device *node; |
309 | } prof; | 310 | } prof; |
310 | 311 | ||
312 | struct { | ||
313 | struct cdev cdev; | ||
314 | struct device *node; | ||
315 | } tsg; | ||
316 | |||
311 | struct mutex client_lock; | 317 | struct mutex client_lock; |
312 | int client_refcount; /* open channels and ctrl nodes */ | 318 | int client_refcount; /* open channels and ctrl nodes */ |
313 | 319 | ||