mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 17:30:09 +01:00
Leave the bottom 64kb of RAMIN untouched.
The binary driver will screw up either it's init or shutdown, leaving the screen(s) in an unusable state without this. Something important in there?
This commit is contained in:
parent
94ab96c4d8
commit
0c34d0f31a
1 changed files with 6 additions and 2 deletions
|
|
@ -302,8 +302,12 @@ void nouveau_hash_table_init(drm_device_t* dev)
|
||||||
dev_priv->objs.inst_bmap = drm_calloc
|
dev_priv->objs.inst_bmap = drm_calloc
|
||||||
(1, dev_priv->objs.num_instance/32, DRM_MEM_DRIVER);
|
(1, dev_priv->objs.num_instance/32, DRM_MEM_DRIVER);
|
||||||
|
|
||||||
/* clear all of RAMIN */
|
/* clear all of RAMIN
|
||||||
for (i=0x00700000; i<0x00800000; i+=4)
|
* NOTE: except the bottom 0x10000 bytes, the binary driver doesn't
|
||||||
|
* like this and will die either sometime during init, or during
|
||||||
|
* shutdown - leaving the screen in an unusable state...
|
||||||
|
*/
|
||||||
|
for (i=0x00710000; i<0x00800000; i+=4)
|
||||||
NV_WRITE(i, 0x00000000);
|
NV_WRITE(i, 0x00000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue