search for: nouveau_channel_alloc

Displaying 20 results from an estimated 48 matches for "nouveau_channel_alloc".

2009 Oct 23
0
TTM out of aperture space
...0 on minor 0 [drm] nouveau 0000:01:00.0: Setting dpms mode 1 on vga encoder (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 DR...
2019 May 27
2
[PATCH 08/13] drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
...OCTL_DEF_DRV(NOUVEAU_GETPARAM, nouveau_abi16_ioctl_getparam, DRM_AUTH|DRM_RENDER_ALLOW), + DRM_IOCTL_DEF_DRV(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_N...
2011 Sep 09
1
[PATCH] drm/nouveau: initialize chan->fence.lock before use
...one>/-1, .owner_cpu: 0 Pid: 24134, comm: test Not tainted 3.0.0-nv+ #800 Call Trace: spin_bug+0x9c/0xa3 do_raw_spin_lock+0x29/0x13c _raw_spin_lock+0x1e/0x22 nouveau_fence_update+0x2d/0xf1 nouveau_channel_idle+0x22/0xa0 nouveau_channel_put_unlocked+0x84/0x1bd nouveau_channel_put+0x20/0x24 nouveau_channel_alloc+0x4ec/0x585 nouveau_ioctl_fifo_alloc+0x50/0x130 drm_ioctl+0x289/0x361 do_vfs_ioctl+0x4dd/0x52c sys_ioctl+0x42/0x65 system_call_fastpath+0x16/0x1b It's easily triggerable from userspace. Additionally remove double initialization of chan->fence.pending. Signed-off-by: Marcin Slusarz &l...
2009 Oct 30
4
[Bug 24810] New: TTM out of aperture space, X lockup
...0 on minor 0 [drm] nouveau 0000:01:00.0: Setting dpms mode 1 on vga encoder (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 DR...
2010 Apr 13
1
Spurious TV load detection on GeForce 6150 (no TV connector)
...0000:00:05.0: Output TV-1 is running on CRTC 1 using output B -Console: switching to colour frame buffer device 90x36 +Console: switching to colour frame buffer device 160x64 fb0: nouveaufb frame buffer device (...) [drm] nouveau 0000:00:05.0: Allocating FIFO number 1 [drm] nouveau 0000:00:05.0: nouveau_channel_alloc: initialised FIFO 1 -[drm] nouveau 0000:00:05.0: Setting dpms mode 3 on TV encoder (output 2) [drm] nouveau 0000:00:05.0: Allocating FIFO number 2 [drm] nouveau 0000:00:05.0: nouveau_channel_alloc: initialised FIFO 2 (...) Although this may seem like a hardware quirk (it may be, partially), the...
2010 Feb 07
3
[PATCH] drm/nouveau: don't hold spin lock while calling kzalloc with GFP_KERNEL
...+ 7 files changed, 22 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c index d25ed61..f7ca950 100644 --- a/drivers/gpu/drm/nouveau/nouveau_channel.c +++ b/drivers/gpu/drm/nouveau/nouveau_channel.c @@ -113,7 +113,6 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret, struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph; struct nouveau_fifo_engine *pfifo = &dev_priv->engine.fifo; struct nouveau_channel *chan; - unsigned long flags; int channel, user; int ret; @@ -204,8...
2010 Feb 24
2
[TEST REQUEST] NV50/NV8x/NV9x/NVAx ctxprog and ctxvals generator
http://0x04.net/~mwk/0001-drm-nv50-Implement-ctxprog-state-generation.patch This patch makes nouveau generate its own ctxprogs out of thin air on NV50 family cards and allows us to get rid of nvidia's firmware. It differs quite a bit from nvidia progs and needs thorough testing on as many chipsets and applications as possible, including gallium3d. Anything that works with nvidia firmware,
2010 May 01
4
[Bug 27928] New: Nouveau / Mesa sometimes gets libraries overwritten
...there's a copy of the part I cut out of the logs attached with this e-mail. On trying to start X, I subsequently observed the following in the logs May 1 09:46:27 lithium kernel: [drm] nouveau 0000:01:00.0: Allocating FIFO number 1 May 1 09:46:27 lithium kernel: [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1 May 1 09:46:27 lithium kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 3 on vga encoder (output 0) May 1 09:46:27 lithium kernel: [drm] DAC-7: set mode 1600x1200 44 May 1 09:46:27 lithium kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 0 on vga encoder (output 0)...
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
2009 Dec 19
1
[PATCH] drm/nouveau: always do buffer object moves on bo->channel
...0644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c @@ -321,46 +321,10 @@ static int nouveau_card_init_channel(struct drm_device *dev) { struct drm_nouveau_private *dev_priv = dev->dev_private; - struct nouveau_gpuobj *gpuobj; - int ret; - ret = nouveau_channel_alloc(dev, &dev_priv->channel, + return nouveau_channel_alloc(dev, &dev_priv->channel, (struct drm_file *)-2, NvDmaFB, NvDmaTT); - if (ret) - return ret; - - gpuobj = NULL; - ret = nouveau_gpuobj_dma_new(dev_priv->channel, NV_CLASS_DMA_IN_MEMORY, - 0, nouveau_m...
2019 Jun 06
0
[PATCH 08/13] drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
...uveau_abi16_ioctl_getparam, DRM_AUTH|DRM_RENDER_ALLOW), > + DRM_IOCTL_DEF_DRV(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), > -...
2010 May 14
1
Kernel module fails to initialize on AMD751 based system with NV34
...x40 May 14 19:17:28 max-desktop kernel: [ 3.741610] [<d8a2a243>] nouveau_fence_update+0xa3/0xb0 [nouveau] May 14 19:17:28 max-desktop kernel: [ 3.741655] [<d8a21420>] nouveau_channel_free+0x60/0x1f0 [nouveau] May 14 19:17:28 max-desktop kernel: [ 3.741700] [<d8a21a8e>] nouveau_channel_alloc+0x39e/0x450 [nouveau] May 14 19:17:28 max-desktop kernel: [ 3.741745] [<d8a207fb>] nouveau_card_init_channel+0x3b/0x170 [nouveau] May 14 19:17:28 max-desktop kernel: [ 3.741839] [<d891ac44>] ? drm_vblank_init+0x104/0x190 [drm] May 14 19:17:28 max-desktop kernel: [ 3.741884]...
2010 Apr 27
0
GeForce GTS 250M: Mplayer freezes machine when playing openGL
...m] nouveau 0000:01:00.0: 0xBE2A: parsing output script 0 [drm] nouveau 0000:01:00.0: 0xC225: parsing output script 0 [drm] nouveau 0000:01:00.0: Detected 1024MiB VRAM [drm] nouveau 0000:01:00.0: 512 MiB GART (aperture) [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: Detected a LVDS output [drm] nouveau 0000:01:00.0: Detected a TMDS output [drm] nouveau 0000:01:00.0: Detected a DAC output [drm] nouveau 0000:01:00.0: Detected a LVDS connector [drm] nouveau 0000:01:00.0: Detected a HDMI connector [drm] nouveau 0000:...
2009 Aug 26
1
[PATCH] drm/nouveau: init some list_heads
...o->no_vm = no_vm; nvbo->tile_mode = tile_mode; diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c index 382c5b5..6c31d7f 100644 --- a/drivers/gpu/drm/nouveau/nouveau_channel.c +++ b/drivers/gpu/drm/nouveau/nouveau_channel.c @@ -138,6 +138,7 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret, return -ENOMEM; dev_priv->fifo_alloc_count++; chan = dev_priv->fifos[channel]; + INIT_LIST_HEAD(&chan->nvsw.vbl_wait); chan->dev = dev; chan->id = channel; chan->file_priv = file_priv; diff --git a/drivers...
2019 May 22
3
[PATCH 2/2] drm/nouveau: remove open-coded drm_invalid_op()
...L_DEF_DRV(NOUVEAU_GETPARAM, nouveau_abi16_ioctl_getparam, DRM_AUTH|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_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 Jun 04
1
PFIFO_DMA_PUSHER + Xen + NV30 + questions.
...u_ramht_hash_handle:75 - ch0 handle=0x80000006 [ 13.271499] [drm] nouveau 0000:01:00.0: nouveau_ramht_hash_handle:86 - hash=0x000000b0 [ 13.271499] [drm] nouveau 0000:01:00.0: nouveau_ramht_insert:141 - insert ch0 0x000000b0: h=0x80000006, c=0x8000163a [ 13.271499] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 0 [ 13.760068] [drm] nouveau 0000:01:00.0: PFIFO_DMA_PUSHER - Ch 0 [ 13.271499] [drm] nouveau 0000:01:00.0: nouveau_gpuobj_dma_new:679 - ch0 class=0x003d offset=0x0 size=0x8000000 the error is for the blobs that have been inserted via _ramht_insert? Or should I interogate som...
2010 Jun 14
0
NV30 (FX 5200 Ultra) OUT_RINGp and initial four GEM objects are mapped to the GART instead of System RAM - is that proper?
...n, allocates two bo pools: VRAM (io offset f0000000), and the TT (io offset ec000000). The ec000000 is the GART: [ 3.871709] intel_845_configure: ec000000 [ 3.881255] agpgart-intel 0000:00:00.0: AGP aperture is 64M @ 0xec000000 1). Xorg starts calls the NvInitDma which ends up calling nouveau_channel_alloc which does DRM_NOUVEAU_CHANNEL_ALLOC ioctl. 2). Kernel nouveau driver function nouveau_channel_alloc gets called. During its execution it: a). creates a chan->pushbuf (64kB), which is done by the TTM layer using page_alloc. The TTM layer allocates 16 4K pages from System RAM, and...
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
2009 Sep 17
1
[PATCH 1/3] drm/nouveau: change channel regs mapping to ioremap
...3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c index 65810d4..8661b68 100644 --- a/drivers/gpu/drm/nouveau/nouveau_channel.c +++ b/drivers/gpu/drm/nouveau/nouveau_channel.c @@ -167,13 +167,12 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret, else user = NV50_USER(channel); - ret = drm_addmap(dev, drm_get_resource_start(dev, 0) + user, - PAGE_SIZE, _DRM_REGISTERS, _DRM_DRIVER | - _DRM_READ_ONLY, &chan->user); - if (ret) { - NV_ERROR(dev, "regs %d\n&quot...
2010 Feb 28
1
Nouveau [vanilla 2.6.33] + GeForce FX 5200 = blank screen
...:03:00.0: Parsing VBIOS init table 5 at offset 0xEAF0 [drm] nouveau 0000:03:00.0: Parsing VBIOS init table 6 at offset 0xEC74 [drm] nouveau 0000:03:00.0: 128 MiB VRAM [drm] nouveau 0000:03:00.0: 128 MiB GART (aperture) [drm] nouveau 0000:03:00.0: Allocating FIFO number 0 [drm] nouveau 0000:03:00.0: nouveau_channel_alloc: initialised FIFO 0 [drm] nouveau 0000:03:00.0: Initial CRTC_OWNER is 0 [drm] nouveau 0000:03:00.0: Saving VGA fonts [drm] nouveau 0000:03:00.0: Detected a VGA connector [drm] nouveau 0000:03:00.0: Detected a DVI-I connector [drm] nouveau 0000:03:00.0: Detected a TV connector [drm] nouveau 0000:03:...