mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 18:40:09 +01:00
nouveau: Workaround mysterious PRAMIN clobbering by the card.
This commit is contained in:
parent
a6ea60c77e
commit
ee01d3755a
1 changed files with 8 additions and 0 deletions
|
|
@ -94,6 +94,14 @@ int nv04_instmem_init(struct drm_device *dev)
|
||||||
* the space that was reserved for RAMHT/FC/RO.
|
* the space that was reserved for RAMHT/FC/RO.
|
||||||
*/
|
*/
|
||||||
offset = dev_priv->ramfc_offset + dev_priv->ramfc_size;
|
offset = dev_priv->ramfc_offset + dev_priv->ramfc_size;
|
||||||
|
|
||||||
|
/* On my NV4E, there's *something* clobbering the 16KiB just after
|
||||||
|
* where we setup these fixed tables. No idea what it is just yet,
|
||||||
|
* so reserve this space on all NV4X cards for now.
|
||||||
|
*/
|
||||||
|
if (dev_priv->card_type >= NV_40)
|
||||||
|
offset += 16*1024;
|
||||||
|
|
||||||
ret = nouveau_mem_init_heap(&dev_priv->ramin_heap,
|
ret = nouveau_mem_init_heap(&dev_priv->ramin_heap,
|
||||||
offset, dev_priv->ramin_rsvd_vram - offset);
|
offset, dev_priv->ramin_rsvd_vram - offset);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue