search for: nouveau_gem_new

Displaying 20 results from an estimated 88 matches for "nouveau_gem_new".

2018 Jan 31
2
swiotlb buffer is full
...00004] ? ttm_bo_handle_move_mem+0x58/0x5c0 [ +0.000007] ttm_bo_init_reserved+0x3f4/0x490 [ +0.000010] ttm_bo_init+0x2f/0xa0 [ +0.000009] ? nouveau_bo_invalidate_caches+0x10/0x10 [ +0.000005] nouveau_bo_new+0x416/0x590 [ +0.000007] ? nouveau_bo_invalidate_caches+0x10/0x10 [ +0.000009] ? nouveau_gem_new+0x100/0x100 [ +0.000004] nouveau_gem_new+0x49/0x100 [ +0.000009] nouveau_gem_ioctl_new+0x41/0xc0 [ +0.000009] drm_ioctl_kernel+0x59/0xb0 [ +0.000008] drm_ioctl+0x2c1/0x350 [ +0.000007] ? nouveau_gem_new+0x100/0x100 [ +0.000012] ? _raw_spin_unlock_irqrestore+0x4d/0x90 [ +0.000006] ? pr...
2018 Feb 01
1
swiotlb buffer is full
...+0.000007] ttm_bo_init_reserved+0x3f4/0x490 >> [ +0.000010] ttm_bo_init+0x2f/0xa0 >> [ +0.000009] ? nouveau_bo_invalidate_caches+0x10/0x10 >> [ +0.000005] nouveau_bo_new+0x416/0x590 >> [ +0.000007] ? nouveau_bo_invalidate_caches+0x10/0x10 >> [ +0.000009] ? nouveau_gem_new+0x100/0x100 >> [ +0.000004] nouveau_gem_new+0x49/0x100 >> [ +0.000009] nouveau_gem_ioctl_new+0x41/0xc0 >> [ +0.000009] drm_ioctl_kernel+0x59/0xb0 >> [ +0.000008] drm_ioctl+0x2c1/0x350 >> [ +0.000007] ? nouveau_gem_new+0x100/0x100 >> [ +0.000012] ? _ra...
2017 Dec 18
3
nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152
...0 [drm] [ 1313.811109] ttm_bo_init_reserved+0x290/0x490 [ttm] [ 1313.811114] ttm_bo_init+0x52/0xb0 [ttm] [ 1313.811141] ? nv10_bo_put_tile_region+0x60/0x60 [nouveau] [ 1313.811163] nouveau_bo_new+0x465/0x5e0 [nouveau] [ 1313.811184] ? nv10_bo_put_tile_region+0x60/0x60 [nouveau] [ 1313.811203] nouveau_gem_new+0x66/0x110 [nouveau] [ 1313.811223] ? nouveau_gem_new+0x110/0x110 [nouveau] [ 1313.811241] nouveau_gem_ioctl_new+0x48/0xc0 [nouveau] [ 1313.811249] drm_ioctl_kernel+0x64/0xb0 [drm] [ 1313.811257] drm_ioctl+0x2a4/0x360 [drm] [ 1313.811276] ? nouveau_gem_new+0x110/0x110 [nouveau] [ 1313.811285]...
2019 May 27
2
[PATCH 08/13] drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
...ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_GPUOBJ_FREE, nouveau_abi16_ioctl_gpuobj_free, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_SVM_INIT, nouveau_svmm_init, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_SVM_BIND, nouveau_svmm_bind, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_NEW, nouveau_gem_ioctl_new, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_PUSHBUF, nouveau_gem_ioctl_pushbuf, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_CPU_PREP, nouveau_gem_ioctl_cpu_prep, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_CPU_FINI, nouveau_gem...
2017 Dec 18
0
nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152
...tm_bo_init_reserved+0x290/0x490 [ttm] > [ 1313.811114] ttm_bo_init+0x52/0xb0 [ttm] > [ 1313.811141] ? nv10_bo_put_tile_region+0x60/0x60 [nouveau] > [ 1313.811163] nouveau_bo_new+0x465/0x5e0 [nouveau] > [ 1313.811184] ? nv10_bo_put_tile_region+0x60/0x60 [nouveau] > [ 1313.811203] nouveau_gem_new+0x66/0x110 [nouveau] > [ 1313.811223] ? nouveau_gem_new+0x110/0x110 [nouveau] > [ 1313.811241] nouveau_gem_ioctl_new+0x48/0xc0 [nouveau] > [ 1313.811249] drm_ioctl_kernel+0x64/0xb0 [drm] > [ 1313.811257] drm_ioctl+0x2a4/0x360 [drm] > [ 1313.811276] ? nouveau_gem_new+0x110/0x110...
2018 Feb 01
0
swiotlb buffer is full
...em+0x58/0x5c0 > [ +0.000007] ttm_bo_init_reserved+0x3f4/0x490 > [ +0.000010] ttm_bo_init+0x2f/0xa0 > [ +0.000009] ? nouveau_bo_invalidate_caches+0x10/0x10 > [ +0.000005] nouveau_bo_new+0x416/0x590 > [ +0.000007] ? nouveau_bo_invalidate_caches+0x10/0x10 > [ +0.000009] ? nouveau_gem_new+0x100/0x100 > [ +0.000004] nouveau_gem_new+0x49/0x100 > [ +0.000009] nouveau_gem_ioctl_new+0x41/0xc0 > [ +0.000009] drm_ioctl_kernel+0x59/0xb0 > [ +0.000008] drm_ioctl+0x2c1/0x350 > [ +0.000007] ? nouveau_gem_new+0x100/0x100 > [ +0.000012] ? _raw_spin_unlock_irqrestore...
2018 Feb 22
0
[Bug 105173] [MCP79][Regression] Unhandled NULL pointer dereference in nvkm_object_unmap since kernel 4.15
...37109] ttm_bo_init_reserved+0x334/0x380 [ttm] [ 1035.437114] ? ttm_bo_init+0x62/0xd0 [ttm] [ 1035.437190] ? nouveau_bo_invalidate_caches+0x10/0x10 [nouveau] [ 1035.437226] ? nouveau_bo_new+0x401/0x580 [nouveau] [ 1035.437262] ? nouveau_bo_invalidate_caches+0x10/0x10 [nouveau] [ 1035.437298] ? nouveau_gem_new+0x120/0x120 [nouveau] [ 1035.437334] ? nouveau_gem_new+0x5d/0x120 [nouveau] [ 1035.437370] ? nouveau_gem_ioctl_new+0x53/0xe0 [nouveau] [ 1035.437381] ? drm_ioctl_kernel+0x5b/0xb0 [drm] [ 1035.437392] ? drm_ioctl+0x1c4/0x380 [drm] [ 1035.437428] ? nouveau_gem_new+0x120/0x120 [nouveau] [ 1035.43...
2014 Sep 26
0
[RFC PATCH 6/7] drm/nouveau: Support marking buffers for explicit sync
...git a/drm/nouveau_bo.h b/drm/nouveau_bo.h index f97bc26..ff1edba 100644 --- a/drm/nouveau_bo.h +++ b/drm/nouveau_bo.h @@ -25,7 +25,7 @@ struct nouveau_bo { unsigned page_shift; u32 tile_mode; - u32 tile_flags; + u32 bo_flags; struct nouveau_drm_tile *tile; /* Only valid if allocated via nouveau_gem_new() and iff you hold a @@ -68,7 +68,7 @@ extern struct ttm_bo_driver nouveau_bo_driver; void nouveau_bo_move_init(struct nouveau_drm *); int nouveau_bo_new(struct drm_device *, int size, int align, u32 flags, - u32 tile_mode, u32 tile_flags, struct sg_table *sg, + u32 tile_mode, u32 bo...
2018 Feb 28
0
[Bug 105173] [MCP79][Regression] Unhandled NULL pointer dereference in nvkm_object_unmap since kernel 4.15
...ved+0x334/0x380 [ttm] > [ 1035.437114] ? ttm_bo_init+0x62/0xd0 [ttm] > [ 1035.437190] ? nouveau_bo_invalidate_caches+0x10/0x10 [nouveau] > [ 1035.437226] ? nouveau_bo_new+0x401/0x580 [nouveau] > [ 1035.437262] ? nouveau_bo_invalidate_caches+0x10/0x10 [nouveau] > [ 1035.437298] ? nouveau_gem_new+0x120/0x120 [nouveau] > [ 1035.437334] ? nouveau_gem_new+0x5d/0x120 [nouveau] > [ 1035.437370] ? nouveau_gem_ioctl_new+0x53/0xe0 [nouveau] > [ 1035.437381] ? drm_ioctl_kernel+0x5b/0xb0 [drm] > [ 1035.437392] ? drm_ioctl+0x1c4/0x380 [drm] > [ 1035.437428] ? nouveau_gem_new+0x120/...
2015 Jan 24
1
[PATCH 1/6] make RAM device optional
...au_bo *bo; > + uint32_t domain; > int ret; > > args->pitch = roundup(args->width * (args->bpp / 8), 256); > args->size = args->pitch * args->height; > args->size = roundup(args->size, PAGE_SIZE); > > - ret = nouveau_gem_new(dev, args->size, 0, NOUVEAU_GEM_DOMAIN_VRAM, 0, 0, &bo); > + if (nvxx_fb(&nouveau_drm(dev)->device)->ram) > + domain = NOUVEAU_GEM_DOMAIN_VRAM; > + else > + domain = NOUVEAU_GEM_DOMAIN_GART; > + > + ret = nouveau_gem_n...
2017 Dec 21
1
[bug report] null ptr deref in nouveau_platform_probe (tegra186-p2771-0000)
...0006 x6 : 000000000000000a [ 16.992562] x5 : 0000000000000000 x4 : 00000000ffffffff [ 16.997860] x3 : 0000000000000004 x2 : 0000000000000005 [ 17.003157] x1 : 0000000000000006 x0 : ffff8001c8b7ce8c [ 17.008456] Call trace: [ 17.011066] nouveau_bo_new+0x450/0x4d0 [nouveau] [ 17.015924] nouveau_gem_new+0xa4/0x148 [nouveau] [ 17.020771] nouveau_gem_ioctl_new+0x48/0xd8 [nouveau] [ 17.025953] drm_ioctl_kernel+0x70/0xd8 [drm] [ 17.030343] drm_ioctl+0x180/0x3e0 [drm] [ 17.034424] nouveau_drm_ioctl+0x6c/0xc8 [nouveau] [ 17.039207] do_vfs_ioctl+0xb0/0x730 [ 17.042771] SyS_ioctl+0x8c/0x...
2018 Apr 09
0
nouveau: swiotlb buffer is full (sz: 2097152 bytes)/swiotlb: coherent allocation failed, size=2097152 spam
...0 [drm] [ 6253.341638] ttm_bo_init_reserved+0x296/0x450 [ttm] [ 6253.341643] ttm_bo_init+0x73/0xd0 [ttm] [ 6253.341675] ? nv10_bo_put_tile_region+0x50/0x50 [nouveau] [ 6253.341704] nouveau_bo_new+0x3eb/0x5c0 [nouveau] [ 6253.341731] ? nv10_bo_put_tile_region+0x50/0x50 [nouveau] [ 6253.341756] nouveau_gem_new+0x66/0x110 [nouveau] [ 6253.341779] ? nouveau_gem_new+0x110/0x110 [nouveau] [ 6253.341801] nouveau_gem_ioctl_new+0x48/0xc0 [nouveau] [ 6253.341812] drm_ioctl_kernel+0x66/0xb0 [drm] [ 6253.341822] drm_ioctl+0x2b7/0x370 [drm] [ 6253.341844] ? nouveau_gem_new+0x110/0x110 [nouveau] [ 6253.341849]...
2019 Jun 06
0
[PATCH 08/13] drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
...AU_GPUOBJ_FREE, nouveau_abi16_ioctl_gpuobj_free, DRM_AUTH|DRM_RENDER_ALLOW), > - DRM_IOCTL_DEF_DRV(NOUVEAU_SVM_INIT, nouveau_svmm_init, DRM_AUTH|DRM_RENDER_ALLOW), > - DRM_IOCTL_DEF_DRV(NOUVEAU_SVM_BIND, nouveau_svmm_bind, DRM_AUTH|DRM_RENDER_ALLOW), > - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_NEW, nouveau_gem_ioctl_new, DRM_AUTH|DRM_RENDER_ALLOW), > - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_PUSHBUF, nouveau_gem_ioctl_pushbuf, DRM_AUTH|DRM_RENDER_ALLOW), > - DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_CPU_PREP, nouveau_gem_ioctl_cpu_prep, DRM_AUTH|DRM_RENDER_ALLOW), > - DRM_IOCTL_DEF_DRV(...
2020 Oct 06
1
[RFC] gem: fix "refcount_t: underflow; use-after-free"
...;kherbst at redhat.com> --- drm/nouveau/nouveau_gem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drm/nouveau/nouveau_gem.c b/drm/nouveau/nouveau_gem.c index e11303fbc..45582a8dc 100644 --- a/drm/nouveau/nouveau_gem.c +++ b/drm/nouveau/nouveau_gem.c @@ -198,7 +198,8 @@ nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, * to the caller, instead of a normal nouveau_bo ttm reference. */ ret = drm_gem_object_init(drm->dev, &nvbo->bo.base, size); if (ret) { - nouveau_bo_ref(NULL, &nvbo); + drm_gem_object_release(&nvbo->bo.base...
2020 Jul 28
1
BUG: unable to handle page fault for address nouveau_fence_new
I've had several recent crashes of the nouveau kernel driver over the past month or so. My suspicion is that Firefox is causing it. The screen goes black and then the computer reboots. Nothing much in the syslogs, however I've managed to get netconsole output. It happens very infrequently and I'm afraid I don't know how to reproduce it, however I'll be more than happy to
2020 Aug 13
0
[PATCH 09/20] drm/nouveau: Introduce GEM object functions
...= nouveau_gem_object_del, + .open = nouveau_gem_object_open, + .close = nouveau_gem_object_close, + .pin = nouveau_gem_prime_pin, + .unpin = nouveau_gem_prime_unpin, + .get_sg_table = nouveau_gem_prime_get_sg_table, + .vmap = nouveau_gem_prime_vmap, + .vunmap = nouveau_gem_prime_vunmap, +}; + int nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, uint32_t tile_mode, uint32_t tile_flags, @@ -194,6 +205,8 @@ nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, if (IS_ERR(nvbo)) return PTR_ERR(nvbo); + nvbo->bo.base.funcs = &nouveau_gem_ob...
2020 Sep 15
0
[PATCH v2 09/21] drm/nouveau: Introduce GEM object functions
...= nouveau_gem_object_del, + .open = nouveau_gem_object_open, + .close = nouveau_gem_object_close, + .pin = nouveau_gem_prime_pin, + .unpin = nouveau_gem_prime_unpin, + .get_sg_table = nouveau_gem_prime_get_sg_table, + .vmap = nouveau_gem_prime_vmap, + .vunmap = nouveau_gem_prime_vunmap, +}; + int nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, uint32_t tile_mode, uint32_t tile_flags, @@ -186,6 +197,8 @@ nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, if (IS_ERR(nvbo)) return PTR_ERR(nvbo); + nvbo->bo.base.funcs = &nouveau_gem_ob...
2015 Feb 17
2
[PATCH v3 1/6] make RAM device optional
...au_bo *bo; > + uint32_t domain; > int ret; > > args->pitch = roundup(args->width * (args->bpp / 8), 256); > args->size = args->pitch * args->height; > args->size = roundup(args->size, PAGE_SIZE); > > - ret = nouveau_gem_new(dev, args->size, 0, NOUVEAU_GEM_DOMAIN_VRAM, 0, 0, &bo); > + if (nvxx_fb(&nouveau_drm(dev)->device)->ram) For these checks in the drm, it's probably better to use nouveau_drm(dev)->device.info.ram_size. > + domain = NOUVEAU_GEM_DOMAIN_VRAM; > +...
2019 Sep 10
1
[Intel-gfx] [PATCH v6 08/17] drm/ttm: use gem vma_node
...3011bbff6d5 > Author: Thierry Reding <treding at nvidia.com> > Date: Wed Aug 14 11:00:48 2019 +0200 > > drm/nouveau: Initialize GEM object before TTM object > > breaks nouveau userspace which tries to allocate GEM objects with a > non-page-aligned size. Previously nouveau_gem_new would just call > nouveau_bo_init which would call nouveau_bo_fixup_align before > initializing the GEM object. With this change, it is done after. What > do you think -- OK to just move that bit of logic into the new > nouveau_bo_alloc() (and make size/align be pointers so that they ca...
2018 Mar 22
7
[Bug 105687] New: BUG: unable to handle kernel NULL pointer dereference at 0000000000000ca0
...ttm_bo_init+0x52/0xc0 [ttm] [ 132.907093] ? nouveau_bo_invalidate_caches+0x10/0x10 [nouveau] [ 132.907117] ? nouveau_gem_ioctl_pushbuf+0x9bf/0x1600 [nouveau] [ 132.907141] nouveau_bo_new+0x416/0x590 [nouveau] [ 132.907164] ? nouveau_bo_invalidate_caches+0x10/0x10 [nouveau] [ 132.907188] ? nouveau_gem_new+0x100/0x100 [nouveau] [ 132.907210] nouveau_gem_new+0x49/0x100 [nouveau] [ 132.907233] nouveau_gem_ioctl_new+0x41/0xc0 [nouveau] [ 132.907243] drm_ioctl_kernel+0x5b/0xb0 [drm] [ 132.907253] drm_ioctl+0x2ad/0x350 [drm] [ 132.907276] ? nouveau_gem_new+0x100/0x100 [nouveau] [ 132.907282] ?...