Skip to content

Commit ca6adb8

Browse files
author
Ben Skeggs
committed
drm/nv50: fix RAMHT size
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 41090eb commit ca6adb8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/gpu/drm/nouveau/nv50_fifo.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ nv50_fifo_create_context(struct nouveau_channel *chan)
259259
spin_lock_irqsave(&dev_priv->context_switch_lock, flags);
260260

261261
nv_wo32(dev, ramfc, 0x48/4, chan->pushbuf->instance >> 4);
262-
nv_wo32(dev, ramfc, 0x80/4, (0xc << 24) | (chan->ramht->instance >> 4));
262+
nv_wo32(dev, ramfc, 0x80/4, (0 << 27) /* 4KiB */ |
263+
(4 << 24) /* SEARCH_FULL */ |
264+
(chan->ramht->instance >> 4));
263265
nv_wo32(dev, ramfc, 0x44/4, 0x2101ffff);
264266
nv_wo32(dev, ramfc, 0x60/4, 0x7fffffff);
265267
nv_wo32(dev, ramfc, 0x40/4, 0x00000000);

0 commit comments

Comments
 (0)