Re: [Nouveau] [PATCH] drm/nouveau: call ttm_bo_wait with the bo lock held to prevent hang

2010-01-28 Thread Luca Barbieri
Please apply or state objections to this patch.

Thanks.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] 2.6.33 vs. NVIDIA GForce GT 220

2010-01-28 Thread Pekka Paalanen
On Wed, 27 Jan 2010 18:28:06 -0800
Stephane Marchesin stephane.marche...@gmail.com wrote:

 On Tue, Jan 26, 2010 at 01:47, Pavel Machek pa...@ucw.cz wrote:
  Hi!
 
I tried enabling staging nvidia driver on GT220, but
apparently driver does not know about it. Unfortunately, I
have one of those cards here.
   
(I wonder... is there better mailing list? MAINTAINERS
only lists linux-fbdev)
 
  The list is nouv...@lists.freedesktop.org. And driver knows
  about GT220 just fine, I've been using it for a month or two
  on GT220 already. Don't bother
 
  Perhaps nouveau@lists.freedesktop.org should be added to
  MAINTAINERS?
 
  about the supported cards lists in xf86-video-nouveau or
  wherever else, the driver will happily bind to any nvidia
  video card with known generation, even if nobody has seen that
  precise model before.
 
  Unfortunately, the driver does not seem happy:
 
  Jan 18 12:56:38 pma kernel: [    0.491073] nvidiafb
  :01:00.0: PCI INT A - GSI 16 (level, low) - IRQ 16
  Jan 18 12:56:38 pma kernel: [    0.491507] nvidiafb: Device ID:
  10de0a20
  Jan 18 12:56:38 pma kernel: [    0.491546] Chipset is 10de0a20
  Jan 18 12:56:38 pma kernel: [    0.491584] nvidiafb: unknown
  NV_ARCH Jan 18 12:56:38 pma kernel: [    0.492119] vga16fb:
  initializing
 
 
 Hmm, but this is not nouveau, this is nvidiafb...

And both nvidiafb and vga16fb are known make Nouveau misbehave:
nvidiafb because it messes up the card state, and vga16fb because it
does not do the fb driver hand-over, AFAIK.

Relevant or not, I'd like to advertise our new troubleshooting page:
http://nouveau.freedesktop.org/wiki/TroubleShooting

I'm also adding the CCs that were dropped earlier.

Was the original question in this thread about nvidiafb or Nouveau?


Thanks.

-- 
Pekka Paalanen
http://www.iki.fi/pq/
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [PATCH] drm/nouveau: enlarge GART aperture

2010-01-28 Thread Luca Barbieri
This patch enlarges the PCI GART aperture to 512 MB.

The current 64MB aperture is too small and should be enlarged.
The optimal amound may be card/system-dependent, so a more sophisticated
approach may be preferable.
In particular, if RAMIN is less than 1MB, a 512MB aperture won't fit.

Signed-off-by: Luca Barbieri l...@luca-barbieri.com
---
 drivers/gpu/drm/nouveau/nouveau_sgdma.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c 
b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index 4c7f1e4..2ca44cc 100644
--- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
@@ -227,7 +227,7 @@ nouveau_sgdma_init(struct drm_device *dev)
int i, ret;
 
if (dev_priv-card_type  NV_50) {
-   aper_size = (64 * 1024 * 1024);
+   aper_size = (512 * 1024 * 1024);
obj_size  = (aper_size  NV_CTXDMA_PAGE_SHIFT) * 4;
obj_size += 8; /* ctxdma header */
} else {
-- 
1.6.6.1.476.g01ddb

___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] [PATCH] drm/nouveau: call ttm_bo_wait with the bo lock held to prevent hang

2010-01-28 Thread Maarten Maathuis
Looks sane to me, it would be nice if someone else also agreed, before
committing.

On Thu, Jan 28, 2010 at 5:28 PM, Luca Barbieri l...@luca-barbieri.com wrote:
 Please apply or state objections to this patch.

 Thanks.
 ___
 Nouveau mailing list
 Nouveau@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/nouveau

___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau