mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
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: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
de5899bdac
commit
35fd5b42f0
@ -25,6 +25,9 @@ int nv04_instmem_init(struct drm_device *dev)
|
||||
u32 offset, length;
|
||||
int ret;
|
||||
|
||||
/* RAMIN always available */
|
||||
dev_priv->ramin_available = true;
|
||||
|
||||
/* Setup shared RAMHT */
|
||||
ret = nouveau_gpuobj_new_fake(dev, 0x10000, ~0, 4096,
|
||||
NVOBJ_FLAG_ZERO_ALLOC, &ramht);
|
||||
@ -81,7 +84,6 @@ int nv04_instmem_init(struct drm_device *dev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
dev_priv->ramin_available = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user