提交 35fd5b42 编写于 作者: F Francisco Jerez 提交者: Ben Skeggs

drm/nouveau: PRAMIN is available from the start on pre-nv50.

This makes sure that RAMHT is cleared correctly on start up.
Signed-off-by: NFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 de5899bd
...@@ -25,6 +25,9 @@ int nv04_instmem_init(struct drm_device *dev) ...@@ -25,6 +25,9 @@ int nv04_instmem_init(struct drm_device *dev)
u32 offset, length; u32 offset, length;
int ret; int ret;
/* RAMIN always available */
dev_priv->ramin_available = true;
/* Setup shared RAMHT */ /* Setup shared RAMHT */
ret = nouveau_gpuobj_new_fake(dev, 0x10000, ~0, 4096, ret = nouveau_gpuobj_new_fake(dev, 0x10000, ~0, 4096,
NVOBJ_FLAG_ZERO_ALLOC, &ramht); NVOBJ_FLAG_ZERO_ALLOC, &ramht);
...@@ -81,7 +84,6 @@ int nv04_instmem_init(struct drm_device *dev) ...@@ -81,7 +84,6 @@ int nv04_instmem_init(struct drm_device *dev)
return ret; return ret;
} }
dev_priv->ramin_available = true;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册