Displaying 20 results from an estimated 39 matches for "nouveau_channel_free".
2010 Jul 10
1
deadlock possiblity introduced by "drm/nouveau: use drm_mm in preference to custom code doing the same thing"
...e thing"
in nouveau tree introduced new deadlock possibility, for which lockdep complains loudly:
[ 1541.070202] [drm] nouveau 0000:02:00.0: Allocating FIFO number 3
[ 1541.084772] [drm] nouveau 0000:02:00.0: nouveau_channel_alloc: initialised FIFO 3
[ 2417.733440] [drm] nouveau 0000:02:00.0: nouveau_channel_free: freeing fifo 3
[ 2417.746638]
[ 2417.746639] ======================================================
[ 2417.746642] [ INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected ]
[ 2417.746644] 2.6.35-rc4-nv+ #379
[ 2417.746645] ------------------------------------------------------
[ 2417.746648...
2019 May 27
2
[PATCH 08/13] drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
...RV(NOUVEAU_GETPARAM, nouveau_abi16_ioctl_getparam, DRM_RENDER_ALLOW),
DRM_IOCTL_DEF_DRV(NOUVEAU_SETPARAM, nouveau_abi16_ioctl_setparam, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
- DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_ALLOC, nouveau_abi16_ioctl_channel_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
- DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_FREE, nouveau_abi16_ioctl_channel_free, DRM_AUTH|DRM_RENDER_ALLOW),
- DRM_IOCTL_DEF_DRV(NOUVEAU_GROBJ_ALLOC, nouveau_abi16_ioctl_grobj_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
- DRM_IOCTL_DEF_DRV(NOUVEAU_NOTIFIEROBJ_ALLOC, nouveau_abi16_ioctl_notifierobj_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
- DRM_IOCTL_DEF_DRV(...
2010 May 01
4
[Bug 27928] New: Nouveau / Mesa sometimes gets libraries overwritten
...x88000002
May 1 09:46:31 lithium kernel: [drm] nouveau 0000:01:00.0:
PFIFO_CACHE_ERROR - Ch 2/4 Mthd 0x02fc Data 0x00000003
May 1 09:46:31 lithium kernel: [drm] nouveau 0000:01:00.0:
PFIFO_CACHE_ERROR - Ch 2/5 Mthd 0x0000 Data 0x88000004
May 1 09:46:31 lithium kernel: [drm] nouveau 0000:01:00.0:
nouveau_channel_free: freeing fifo 2
May 1 09:46:31 lithium kernel: [drm] nouveau 0000:01:00.0:
PFIFO_CACHE_ERROR - Ch 2/5 Mthd 0x0180 Data 0x88000000
May 1 09:46:31 lithium kernel: [drm] nouveau 0000:01:00.0:
PFIFO_CACHE_ERROR - Ch 2/5 Mthd 0x0198 Data 0x88000002
May 1 09:46:31 lithium kernel: [drm] nouveau 0000:01...
2010 May 14
1
Kernel module fails to initialize on AMD751 based system with NV34
...e into 1x mode
May 14 19:17:28 max-desktop kernel: [ 3.733726] [drm] nouveau
0000:01:05.0: 64 MiB GART (aperture)
May 14 19:17:28 max-desktop kernel: [ 3.734674] [drm] nouveau
0000:01:05.0: Allocating FIFO number 0
May 14 19:17:28 max-desktop kernel: [ 3.741258] [drm] nouveau
0000:01:05.0: nouveau_channel_free: freeing fifo 0
May 14 19:17:28 max-desktop kernel: [ 3.741271] ------------[ cut
here ]------------
May 14 19:17:28 max-desktop kernel: [ 3.741303] WARNING: at
/build/buildd/linux-2.6.32/lib/iomap.c:43 bad_io_access+0x45/0x50()
May 14 19:17:28 max-desktop kernel: [ 3.741314] Hardware name...
2019 Jun 06
0
[PATCH 08/13] drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
...6_ioctl_getparam, DRM_RENDER_ALLOW),
> DRM_IOCTL_DEF_DRV(NOUVEAU_SETPARAM, nouveau_abi16_ioctl_setparam, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
> - DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_ALLOC, nouveau_abi16_ioctl_channel_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
> - DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_FREE, nouveau_abi16_ioctl_channel_free, DRM_AUTH|DRM_RENDER_ALLOW),
> - DRM_IOCTL_DEF_DRV(NOUVEAU_GROBJ_ALLOC, nouveau_abi16_ioctl_grobj_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
> - DRM_IOCTL_DEF_DRV(NOUVEAU_NOTIFIEROBJ_ALLOC, nouveau_abi16_ioctl_notifierobj_alloc, DRM_AUTH|DRM_RENDER_ALLOW)...
2009 Oct 23
0
TTM out of aperture space
...coder (output 0)
[drm] nouveau 0000:01:00.0: Setting dpms mode 0 on CRTC 0
[drm] nouveau 0000:01:00.0: Setting dpms mode 0 on vga encoder (output 0)
[drm] nouveau 0000:01:00.0: Allocating FIFO number 1
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
[drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 1
[drm] nouveau 0000:01:00.0: Allocating FIFO number 1
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
[TTM] Failed moving buffer. Proposed placement 0x00070004
[TTM] Out of aperture space or DRM memory quota.
[drm] nouveau 0000:01:00.0: nouveau_channel_free: fre...
2010 Jan 12
1
[libdrm PATCH] nouveau: disable flush_notify on channel_free
...nel
might be already freed.
---
nouveau/nouveau_channel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/nouveau/nouveau_channel.c b/nouveau/nouveau_channel.c
index 14cf4c6..01d6681 100644
--- a/nouveau/nouveau_channel.c
+++ b/nouveau/nouveau_channel.c
@@ -107,6 +107,7 @@ nouveau_channel_free(struct nouveau_channel **chan)
if (!chan || !*chan)
return;
nvchan = nouveau_channel(*chan);
+ (*chan)->flush_notify = NULL;
*chan = NULL;
nvdev = nouveau_device(nvchan->base.device);
--
1.6.6.rc3
2010 Jul 28
0
mmotm 2010-07-27 - nouveau lockdep issues.
...ialised FIFO 4
> [ 103.262226] [drm:output_poll_execute] *ERROR* delayed enqueue failed 1
> [ 113.341948] [drm:output_poll_execute] *ERROR* delayed enqueue failed 1
> [ 123.421836] [drm:output_poll_execute] *ERROR* delayed enqueue failed 1
> [ 123.550520] [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 4
> [ 123.551253]
> [ 123.551253] ======================================================
> [ 123.551253] [ INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected ]
> [ 123.551253] 2.6.35-rc6-mmotm0727 #1
> [ 123.551253] ---------------------------------------...
2010 Jan 12
2
reserve_ram_pages_type failed
...type failed 0x36c5000-0x36c6000,
> track 0x8, req 0x10
> [ ?285.941944] reserve_ram_pages_type failed 0x30d2000-0x30d3000,
> track 0x8, req 0x10
> [ ?341.055291] reserve_ram_pages_type failed 0x1b90b000-0x1b90c000,
> track 0x8, req 0x10
> [ ?355.005349] [drm] nouveau 0000:03:00.0: nouveau_channel_free: freeing fifo 2
> [ ?355.074031] etracer used greatest stack depth: 5632 bytes left
>
Using a more recent nv25 classic mesa, I get no crash/bug, no validate
-12, but I still get all the reserve_ram_pages_type errors. They
always come up on every new level started in etracer.
So the game wil...
2019 May 22
3
[PATCH 2/2] drm/nouveau: remove open-coded drm_invalid_op()
...NOUVEAU_SETPARAM, nouveau_abi16_ioctl_setparam, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
+ DRM_IOCTL_DEF_DRV(NOUVEAU_SETPARAM, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_ALLOC, nouveau_abi16_ioctl_channel_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_FREE, nouveau_abi16_ioctl_channel_free, DRM_AUTH|DRM_RENDER_ALLOW),
DRM_IOCTL_DEF_DRV(NOUVEAU_GROBJ_ALLOC, nouveau_abi16_ioctl_grobj_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
--
2.21.0
2010 Feb 07
3
[PATCH] drm/nouveau: don't hold spin lock while calling kzalloc with GFP_KERNEL
...-225,8 +222,6 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,
pfifo->reassign(dev, true);
- spin_unlock_irqrestore(&dev_priv->engine.lock, flags);
-
ret = nouveau_dma_init(chan);
if (!ret)
ret = nouveau_fence_init(chan);
@@ -290,7 +285,7 @@ nouveau_channel_free(struct nouveau_channel *chan)
if (pgraph->channel(dev) == chan)
nouveau_wait_for_idle(dev);
- spin_lock_irqsave(&dev_priv->engine.lock, flags);
+ spin_lock_irqsave(&dev_priv->context_switch_lock, flags);
pgraph->fifo_access(dev, false);
if (pgraph->channel(dev) =...
2009 Oct 30
4
[Bug 24810] New: TTM out of aperture space, X lockup
...coder (output 0)
[drm] nouveau 0000:01:00.0: Setting dpms mode 0 on CRTC 0
[drm] nouveau 0000:01:00.0: Setting dpms mode 0 on vga encoder (output 0)
[drm] nouveau 0000:01:00.0: Allocating FIFO number 1
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
[drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 1
[drm] nouveau 0000:01:00.0: Allocating FIFO number 1
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
[TTM] Failed moving buffer. Proposed placement 0x00070004
[TTM] Out of aperture space or DRM memory quota.
[drm] nouveau 0000:01:00.0: nouveau_channel_free: fre...
2010 Jul 31
2
2 cards in, but work only separately
Hi list,
my thanks to developers of nouveau first: I wonder how you put it together this
far, where there's quite enough to appreciate!
This question I have: strangely I can get each of 2 cards to work separately
for a dualseat PC by toggling on/off fbcon=map: kernel option (compiled with
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY) -- by doing so I can have each card
initialized and start
2010 Mar 11
2
nv50 mouse cursor disappears hourly
I compiled linux-2.6 from git. I think my last pull/merge? is this one (git show)
commit d03ab2d78b6ab62e94f9958da50b4419c27e0f60
Author: Marcin Ko?cielnicki <koriakin at 0x04.net>
Date: Mon Mar 1 00:18:39 2010 +0000
drm/nv50: Improve PGRAPH interrupt handling.
I also compiled nouveau-drm_2.4.18-1_amd64.deb and nouveau_drv.so that day and installed them to a Debian system.
I'm
2010 Feb 24
35
[Bug 26733] New: Full-screen XV causes graphics lockup
...nouveau 0000:04:00.0: PGRAPH_ERROR - Ch 2/2 Class 0x502d Mthd 0x0844 Data
0x00104218:0x00104218
[drm] nouveau 0000:04:00.0: PGRAPH_ERROR - nSource: DATA_ERROR, nStatus:
[drm] nouveau 0000:04:00.0: PGRAPH_ERROR - Ch 2/2 Class 0x502d Mthd 0x0854 Data
0x4d6a0000:0x4d6a0000
[drm] nouveau 0000:04:00.0: nouveau_channel_free: freeing fifo 2
[drm] nouveau 0000:04:00.0: Failed to idle channel 2.
[drm] nouveau 0000:04:00.0: PFIFO_DMA_PUSHER - Ch 127
[drm] nouveau 0000:04:00.0: Allocating FIFO number 2
[drm] nouveau 0000:04:00.0: nouveau_channel_alloc: initialised FIFO 2
[drm] nouveau 0000:04:00.0: nouveau_channel_free: fr...
2009 Sep 17
1
[PATCH 1/3] drm/nouveau: change channel regs mapping to ioremap
...EGISTERS, _DRM_DRIVER |
- _DRM_READ_ONLY, &chan->user);
- if (ret) {
- NV_ERROR(dev, "regs %d\n", ret);
+ chan->user = ioremap(pci_resource_start(dev->pdev, 0) + user,
+ PAGE_SIZE);
+ if (!chan->user) {
+ NV_ERROR(dev, "ioremap of regs failed.\n");
nouveau_channel_free(chan);
- return ret;
+ return -ENOMEM;
}
chan->user_put = 0x40;
chan->user_get = 0x44;
@@ -412,7 +411,7 @@ nouveau_channel_free(struct nouveau_channel *chan)
nouveau_notifier_takedown_channel(chan);
if (chan->user)
- drm_rmmap(dev, chan->user);
+ iounmap(chan->user);...
2009 Dec 21
2
[PATCH 1/2] Unreference state/buffer objects on context/screen destruction
...FREE(pscreen);
}
Index: nouveau/nouveau_screen.c
===================================================================
--- nouveau/nouveau_screen.c (wersja 31964)
+++ nouveau/nouveau_screen.c (kopia robocza)
@@ -239,5 +239,6 @@
void
nouveau_screen_fini(struct nouveau_screen *screen)
{
+ nouveau_channel_free(&screen->channel);
}
2010 May 31
2
[PATCH] drm/nouveau: reduce usage of fence spinlock to when absolutely necessary
...-
4 files changed, 4 insertions(+), 28 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c
index 1fc57ef..f9b2acf 100644
--- a/drivers/gpu/drm/nouveau/nouveau_channel.c
+++ b/drivers/gpu/drm/nouveau/nouveau_channel.c
@@ -257,9 +257,7 @@ nouveau_channel_free(struct nouveau_channel *chan)
nouveau_debugfs_channel_fini(chan);
/* Give outstanding push buffers a chance to complete */
- spin_lock_irqsave(&chan->fence.lock, flags);
nouveau_fence_update(chan);
- spin_unlock_irqrestore(&chan->fence.lock, flags);
if (chan->fence.sequen...
2009 Dec 19
1
[PATCH] drm/nouveau: always do buffer object moves on bo->channel
...dev_priv->gart_info.aper_size,
- NV_DMA_ACCESS_RW, &gpuobj, NULL);
- if (ret)
- goto out_err;
-
- ret = nouveau_gpuobj_ref_add(dev, dev_priv->channel, NvDmaGART,
- gpuobj, NULL);
- if (ret)
- goto out_err;
-
- return 0;
-out_err:
- nouveau_gpuobj_del(dev, &gpuobj);
- nouveau_channel_free(dev_priv->channel);
- dev_priv->channel = NULL;
- return ret;
}
int
--
1.6.5.4
2019 May 23
0
[PATCH 2/2] drm/nouveau: remove open-coded drm_invalid_op()
...octl_setparam, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
> + DRM_IOCTL_DEF_DRV(NOUVEAU_SETPARAM, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
> DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_ALLOC, nouveau_abi16_ioctl_channel_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
> DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_FREE, nouveau_abi16_ioctl_channel_free, DRM_AUTH|DRM_RENDER_ALLOW),
> DRM_IOCTL_DEF_DRV(NOUVEAU_GROBJ_ALLOC, nouveau_abi16_ioctl_grobj_alloc, DRM_AUTH|DRM_RENDER_ALLOW),
> --
> 2.21.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at...