summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-09-11 10:31:23 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:14 -0400
commitf9cb1a93d1f861ffd56aa8cfc710dd2659934f8b (patch)
tree35e6d606c3bdc0702376a545f76bf70c1205a421 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
parent27b94dfafdb0903981ebc437abda85ffdb828668 (diff)
gpu: nvgpu: do not bind already active channels to TSG
If a channel is already scheduled as regular channel, we should not allow it to be marked as TSG since it will fail book keeping of number of active channels in a TSG This way we can force to bind the channels first and then only make them active Also, remove duplicate function declaration added during branch merge and one unnecessary comparison with zero Bug 1470692 Change-Id: I88f9678919e4b76de472c6dda21e4537520241c4 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/497903 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index 56ff4c87..6383b8c8 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -1779,7 +1779,7 @@ static int gk20a_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
1779 if (test_and_set_bit(hw_chid, 1779 if (test_and_set_bit(hw_chid,
1780 runlist->active_channels) == 1) 1780 runlist->active_channels) == 1)
1781 return 0; 1781 return 0;
1782 if (tsg && ++tsg->num_active_channels > 0) 1782 if (tsg && ++tsg->num_active_channels)
1783 set_bit(f->channel[hw_chid].tsgid, 1783 set_bit(f->channel[hw_chid].tsgid,
1784 runlist->active_tsgs); 1784 runlist->active_tsgs);
1785 } else { 1785 } else {