mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: move parameter of .vm_bind_channel from as_share to vm
as_share is more os specific and not yet used on other OSes. Jira VQRM-2344 Change-Id: Ie2ed007125400484352fbab602c37a198e8a64ae Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1699842 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> 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
98dce7eaac
commit
3d0ddb8c4a
@@ -1306,7 +1306,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
}
|
||||
|
||||
/* bind the channel to the vm */
|
||||
err = __gk20a_vm_bind_channel(g->mm.cde.vm, ch);
|
||||
err = g->ops.mm.vm_bind_channel(g->mm.cde.vm, ch);
|
||||
if (err) {
|
||||
nvgpu_warn(g, "cde: could not bind vm");
|
||||
goto err_commit_va;
|
||||
|
||||
@@ -63,7 +63,7 @@ static int gk20a_as_ioctl_bind_channel(
|
||||
}
|
||||
|
||||
/* this will set channel_gk20a->vm */
|
||||
err = ch->g->ops.mm.vm_bind_channel(as_share, ch);
|
||||
err = ch->g->ops.mm.vm_bind_channel(as_share->vm, ch);
|
||||
|
||||
out:
|
||||
gk20a_channel_put(ch);
|
||||
|
||||
Reference in New Issue
Block a user