summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/tsg_vgpu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c
index 3553bf51..d6060e06 100644
--- a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2020, 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"),
@@ -128,12 +128,8 @@ int vgpu_tsg_unbind_channel(struct channel_gk20a *ch)
128 128
129 nvgpu_log_fn(g, " "); 129 nvgpu_log_fn(g, " ");
130 130
131 err = gk20a_fifo_tsg_unbind_channel(ch);
132 if (err)
133 return err;
134
135 msg.cmd = TEGRA_VGPU_CMD_TSG_UNBIND_CHANNEL; 131 msg.cmd = TEGRA_VGPU_CMD_TSG_UNBIND_CHANNEL;
136 msg.handle = vgpu_get_handle(ch->g); 132 msg.handle = vgpu_get_handle(g);
137 p->ch_handle = ch->virt_ctx; 133 p->ch_handle = ch->virt_ctx;
138 err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); 134 err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg));
139 err = err ? err : msg.ret; 135 err = err ? err : msg.ret;