search for: nouveau_vm_del

Displaying 4 results from an estimated 4 matches for "nouveau_vm_del".

Did you mean: nouveau_vma_del
2013 Jul 29
0
[PATCH] drm/nouveau: protect vm refcount with mutex
...au/core/subdev/vm/base.c b/drivers/gpu/drm/nouveau/core/subdev/vm/base.c index 3b90b42..afc5106 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/vm/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/vm/base.c @@ -28,6 +28,8 @@ #include <subdev/fb.h> #include <subdev/vm.h> +static void nouveau_vm_del(struct nouveau_vm *vm); + void nouveau_vm_map_at(struct nouveau_vma *vma, u64 delta, struct nouveau_mem *node) { @@ -335,10 +337,10 @@ nouveau_vm_get(struct nouveau_vm *vm, u64 size, u32 page_shift, return ret; } } + ++vm->refcount; + vma->vm = vm; mutex_unlock(&nv_subdev(vm...
2013 Mar 05
4
[RFC PATCH] drm/nouveau: use vmalloc for pgt allocation
...7 @@ nouveau_vm_create(struct nouveau_vmmgr *vmm, u64 offset, u64 length, ret = nouveau_mm_init(&vm->mm, mm_offset >> 12, mm_length >> 12, block >> 12); if (ret) { - kfree(vm->pgt); + vfree(vm->pgt); kfree(vm); return ret; } @@ -446,7 +446,7 @@ nouveau_vm_del(struct nouveau_vm *vm) } nouveau_mm_fini(&vm->mm); - kfree(vm->pgt); + vfree(vm->pgt); kfree(vm); } -- 1.8.1.4
2013 Jun 11
0
[RFC PATCH] drm/nouveau: use vmalloc for pgt allocation
...vmm, u64 offset, u64 length, > ret = nouveau_mm_init(&vm->mm, mm_offset >> 12, mm_length >> 12, > block >> 12); > if (ret) { > - kfree(vm->pgt); > + vfree(vm->pgt); > kfree(vm); > return ret; > } > @@ -446,7 +446,7 @@ nouveau_vm_del(struct nouveau_vm *vm) > } > > nouveau_mm_fini(&vm->mm); > - kfree(vm->pgt); > + vfree(vm->pgt); > kfree(vm); > } Could this patch be upstreamed? I was hitting the same allocation failure on my fermi after keeping my system running for a a week, and doing...
2014 May 16
2
Machine freeze on latest Linus kernel, seems related to nouveau
...t;ffffffff81041603>] warn_slowpath_common+0x73/0x90 May 16 08:32:14 brouette kernel: [<ffffffff810416d5>] warn_slowpath_null+0x15/0x20 May 16 08:32:14 brouette kernel: [<ffffffffa047d459>] nouveau_mm_fini+0x59/0x60 [nouveau] May 16 08:32:14 brouette kernel: [<ffffffffa04bc2bc>] nouveau_vm_del+0x4c/0x70 [nouveau] May 16 08:32:14 brouette kernel: [<ffffffffa04bcbed>] nouveau_vm_ref+0x13d/0x180 [nouveau] May 16 08:32:14 brouette kernel: [<ffffffffa04f9ff0>] nouveau_cli_destroy+0x20/0x50 [nouveau] May 16 08:32:14 brouette kernel: [<ffffffffa04fa0c2>] nouveau_drm_postclose+...