mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +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
@@ -142,7 +142,7 @@ static void gk20a_ce_delete_gpu_context(struct gk20a_gpu_ctx *ce_ctx)
|
||||
* gk20a_channel_close() will also unbind the channel from TSG
|
||||
*/
|
||||
gk20a_channel_close(ce_ctx->ch);
|
||||
nvgpu_ref_put(&ce_ctx->tsg->refcount, gk20a_tsg_release);
|
||||
nvgpu_ref_put(&ce_ctx->tsg->refcount, nvgpu_tsg_release);
|
||||
|
||||
/* housekeeping on app */
|
||||
if ((list->prev != NULL) && (list->next != NULL)) {
|
||||
@@ -467,7 +467,7 @@ u32 gk20a_ce_create_context(struct gk20a *g,
|
||||
ce_ctx->vm = g->mm.ce.vm;
|
||||
|
||||
/* allocate a tsg if needed */
|
||||
ce_ctx->tsg = gk20a_tsg_open(g, nvgpu_current_pid(g));
|
||||
ce_ctx->tsg = nvgpu_tsg_open(g, nvgpu_current_pid(g));
|
||||
if (ce_ctx->tsg == NULL) {
|
||||
nvgpu_err(g, "ce: gk20a tsg not available");
|
||||
err = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user