.. | .. |
---|
22 | 22 | #include "nouveau_vmm.h" |
---|
23 | 23 | #include "nouveau_drv.h" |
---|
24 | 24 | #include "nouveau_bo.h" |
---|
| 25 | +#include "nouveau_svm.h" |
---|
25 | 26 | #include "nouveau_mem.h" |
---|
26 | 27 | |
---|
27 | 28 | void |
---|
.. | .. |
---|
68 | 69 | } |
---|
69 | 70 | list_del(&vma->head); |
---|
70 | 71 | kfree(*pvma); |
---|
71 | | - *pvma = NULL; |
---|
72 | 72 | } |
---|
| 73 | + *pvma = NULL; |
---|
73 | 74 | } |
---|
74 | 75 | |
---|
75 | 76 | int |
---|
.. | .. |
---|
119 | 120 | void |
---|
120 | 121 | nouveau_vmm_fini(struct nouveau_vmm *vmm) |
---|
121 | 122 | { |
---|
122 | | - nvif_vmm_fini(&vmm->vmm); |
---|
| 123 | + nouveau_svmm_fini(&vmm->svmm); |
---|
| 124 | + nvif_vmm_dtor(&vmm->vmm); |
---|
123 | 125 | vmm->cli = NULL; |
---|
124 | 126 | } |
---|
125 | 127 | |
---|
126 | 128 | int |
---|
127 | 129 | nouveau_vmm_init(struct nouveau_cli *cli, s32 oclass, struct nouveau_vmm *vmm) |
---|
128 | 130 | { |
---|
129 | | - int ret = nvif_vmm_init(&cli->mmu, oclass, PAGE_SIZE, 0, NULL, 0, |
---|
130 | | - &vmm->vmm); |
---|
| 131 | + int ret = nvif_vmm_ctor(&cli->mmu, "drmVmm", oclass, false, PAGE_SIZE, |
---|
| 132 | + 0, NULL, 0, &vmm->vmm); |
---|
131 | 133 | if (ret) |
---|
132 | 134 | return ret; |
---|
133 | 135 | |
---|