summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/cde.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/cde.c')
-rw-r--r--drivers/gpu/nvgpu/os/linux/cde.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/cde.c b/drivers/gpu/nvgpu/os/linux/cde.c
index a15ef560..7b2cba7d 100644
--- a/drivers/gpu/nvgpu/os/linux/cde.c
+++ b/drivers/gpu/nvgpu/os/linux/cde.c
@@ -1272,7 +1272,7 @@ __releases(&cde_app->mutex)
1272 nvgpu_log_info(g, "double finish cde context %p on channel %p", 1272 nvgpu_log_info(g, "double finish cde context %p on channel %p",
1273 cde_ctx, ch); 1273 cde_ctx, ch);
1274 1274
1275 if (ch->has_timedout) { 1275 if (gk20a_channel_check_timedout(ch)) {
1276 if (cde_ctx->is_temporary) { 1276 if (cde_ctx->is_temporary) {
1277 nvgpu_warn(g, 1277 nvgpu_warn(g,
1278 "cde: channel had timed out" 1278 "cde: channel had timed out"
@@ -1299,8 +1299,9 @@ __releases(&cde_app->mutex)
1299 msecs_to_jiffies(CTX_DELETE_TIME)); 1299 msecs_to_jiffies(CTX_DELETE_TIME));
1300 } 1300 }
1301 1301
1302 if (!ch->has_timedout) 1302 if (!gk20a_channel_check_timedout(ch)) {
1303 gk20a_cde_ctx_release(cde_ctx); 1303 gk20a_cde_ctx_release(cde_ctx);
1304 }
1304} 1305}
1305 1306
1306static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx) 1307static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)