drm/nv50: fix RAMHT size
authorBen Skeggs <bskeggs@redhat.com>
Mon, 12 Jul 2010 03:45:51 +0000 (13:45 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Jul 2010 00:14:02 +0000 (10:14 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_fifo.c

index c4467b04cf1dcff62902f33f6923db302ca6771e..fb0281ae8f90569508711a5edd275cea064da6df 100644 (file)
@@ -259,7 +259,9 @@ nv50_fifo_create_context(struct nouveau_channel *chan)
        spin_lock_irqsave(&dev_priv->context_switch_lock, flags);
 
        nv_wo32(dev, ramfc, 0x48/4, chan->pushbuf->instance >> 4);
-       nv_wo32(dev, ramfc, 0x80/4, (0xc << 24) | (chan->ramht->instance >> 4));
+       nv_wo32(dev, ramfc, 0x80/4, (0 << 27) /* 4KiB */ |
+                                   (4 << 24) /* SEARCH_FULL */ |
+                                   (chan->ramht->instance >> 4));
        nv_wo32(dev, ramfc, 0x44/4, 0x2101ffff);
        nv_wo32(dev, ramfc, 0x60/4, 0x7fffffff);
        nv_wo32(dev, ramfc, 0x40/4, 0x00000000);