summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fifo/tsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/fifo/tsg.c')
-rw-r--r--drivers/gpu/nvgpu/common/fifo/tsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/fifo/tsg.c b/drivers/gpu/nvgpu/common/fifo/tsg.c
index e6dfbae6..6d6c322e 100644
--- a/drivers/gpu/nvgpu/common/fifo/tsg.c
+++ b/drivers/gpu/nvgpu/common/fifo/tsg.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -134,6 +134,8 @@ int gk20a_tsg_bind_channel(struct tsg_gk20a *tsg,
134 nvgpu_rwsem_down_write(&tsg->ch_list_lock); 134 nvgpu_rwsem_down_write(&tsg->ch_list_lock);
135 nvgpu_list_add_tail(&ch->ch_entry, &tsg->ch_list); 135 nvgpu_list_add_tail(&ch->ch_entry, &tsg->ch_list);
136 ch->tsgid = tsg->tsgid; 136 ch->tsgid = tsg->tsgid;
137 /* channel is serviceable after it is bound to tsg */
138 ch->ch_timedout = false;
137 nvgpu_rwsem_up_write(&tsg->ch_list_lock); 139 nvgpu_rwsem_up_write(&tsg->ch_list_lock);
138 140
139 nvgpu_ref_get(&tsg->refcount); 141 nvgpu_ref_get(&tsg->refcount);