summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-08-04 07:28:56 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:45 -0400
commit76993ba18c6969cd26bb500eee4ecf734deb7bcb (patch)
tree780194830cf7a2537cf06f4fd6bfcd33ade64247 /drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
parentb33020008b727d75827d670ca7a6c969769ca1a0 (diff)
gpu: nvgpu: rework TSG's channel list
Modify TSG's channel list as "ch_list" for all channels instead of "ch_runnable_list" for only runnable list We can traverse this list and check runnable status of channel in active_channels to get runnable channels Remove below APIs as they are no longer required : gk20a_bind_runnable_channel_to_tsg() gk20a_unbind_channel_from_tsg() While closing the channel, call gk20a_tsg_unbind_channel() to unbind the channel from TSG bug 1470692 Change-Id: I0178fa74b3e8bb4e5c0b3e3b2b2f031491761ba7 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/449227 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/tsg_gk20a.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
index 63113b60..dd8679be 100644
--- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
@@ -27,8 +27,7 @@ long gk20a_tsg_dev_ioctl(struct file *filp,
27 27
28int gk20a_init_tsg_support(struct gk20a *g, u32 tsgid); 28int gk20a_init_tsg_support(struct gk20a *g, u32 tsgid);
29 29
30int gk20a_bind_runnable_channel_to_tsg(struct channel_gk20a *ch, int tsgid); 30int gk20a_tsg_unbind_channel(struct channel_gk20a *ch);
31int gk20a_unbind_channel_from_tsg(struct channel_gk20a *ch, int tsgid);
32 31
33struct tsg_gk20a { 32struct tsg_gk20a {
34 struct gk20a *g; 33 struct gk20a *g;
@@ -36,8 +35,8 @@ struct tsg_gk20a {
36 bool in_use; 35 bool in_use;
37 int tsgid; 36 int tsgid;
38 37
39 struct list_head ch_runnable_list; 38 struct list_head ch_list;
40 int num_runnable_channels; 39 int num_active_channels;
41 struct mutex ch_list_lock; 40 struct mutex ch_list_lock;
42 41
43 struct gr_ctx_desc *tsg_gr_ctx; 42 struct gr_ctx_desc *tsg_gr_ctx;