mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: move open/release from fifo to tsg
Moved the following HALs from fifo to tsg: - tsg.open - tsg.release They are used only in vgpu case. Jira NVGPU-2979 Change-Id: Icda6f6cfea063ea326b1874b7f15b57a8ea0d5b9 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2087184 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
75963b47f1
commit
bf5ed9fd9f
@@ -119,7 +119,7 @@ __must_hold(&cde_app->mutex)
|
||||
* gk20a_channel_close() will also unbind the channel from TSG
|
||||
*/
|
||||
gk20a_channel_close(ch);
|
||||
nvgpu_ref_put(&cde_ctx->tsg->refcount, gk20a_tsg_release);
|
||||
nvgpu_ref_put(&cde_ctx->tsg->refcount, nvgpu_tsg_release);
|
||||
|
||||
/* housekeeping on app */
|
||||
nvgpu_list_del(&cde_ctx->list);
|
||||
@@ -1331,7 +1331,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
tsg = gk20a_tsg_open(g, nvgpu_current_pid(g));
|
||||
tsg = nvgpu_tsg_open(g, nvgpu_current_pid(g));
|
||||
if (!tsg) {
|
||||
nvgpu_err(g, "cde: could not create TSG");
|
||||
err = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user