diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-08-13 02:22:41 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-08-17 03:59:24 +0200 |
commit | 46d4cae20038bcb2511cba0c86f0be2d11520369 (patch) | |
tree | 63e4570cffcc229e9621c45283e65df85b3bab61 /drivers/gpu/drm/nouveau/nvc0_instmem.c | |
parent | drm/nouveau: punt some more log messages to debug level (diff) | |
download | linux-46d4cae20038bcb2511cba0c86f0be2d11520369.tar.xz linux-46d4cae20038bcb2511cba0c86f0be2d11520369.zip |
drm/nv50-nvc0: ramht_size is meant to be in bytes, not entries
Fixes an infinite loop that can happen in RAMHT lookup.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_instmem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_instmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_instmem.c b/drivers/gpu/drm/nouveau/nvc0_instmem.c index 3ab3cdc42173..854e0d72fc0d 100644 --- a/drivers/gpu/drm/nouveau/nvc0_instmem.c +++ b/drivers/gpu/drm/nouveau/nvc0_instmem.c @@ -221,7 +221,7 @@ nvc0_instmem_init(struct drm_device *dev) /*XXX: incorrect, but needed to make hash func "work" */ dev_priv->ramht_offset = 0x10000; dev_priv->ramht_bits = 9; - dev_priv->ramht_size = (1 << dev_priv->ramht_bits); + dev_priv->ramht_size = (1 << dev_priv->ramht_bits) * 8; return 0; } |