Hi Nikolai,
I merged your patches - thank you very much !
Vladimir Dergachev
On Tue, 25 May 2004, Nicolai Haehnle wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
As you may be aware, I was trying to get R300 support into a state where it is possible to start OpenGL applications, let them hang the CP and *not* bring down the entire machine.
Looks like I was successful :)
The attached patch ati.unlock.1.patch against the DDX makes sure the RBBM (whatever that means; I'm guessing Ring Buffer something or other) is reset in RADEONEngineReset(), before any other register is accessed that could potentially cause a final crash (DSTCACHE_* is the major offender in this category).
Now since I don't have any Radeon-related documentation at all, I have no idea whether this patch will work on any other chip. For all that I know, it might totally break the driver on R100/R200. I'm especially confused by the fact that the bottom half of EngineReset() treats RBBM_SOFT_RESET differently for the R300. Can anybody explain why? Maybe it would even be safest/cleanest to move the entire RBBM_SOFT_RESET block to the top of the function?
I can now launch glxgears several times in a row. It will be killed a few seconds later (during this time the GUI will hang), and as far as I can tell, everything continues to work normally. Of course, for all I know the 3D part of the chip might still be wedged internally, which would make this patch (partially) useless for working on the driver. I guess I'll find out soon enough.
Important: You'll need my watchdog patch for the DRM from that other thread. Otherwise, the reset code in the X server will never be called, and this patch will have no effect.
I would also like to point out that the modified xf86 driver that was posted on this list (see http://volodya-project.sourceforge.net/R300.php) does not check the version of the DRM. I know, this is really a silly, minor point to make at this time, but I've attached a small patch to fix this anyway.
cu, Nicolai -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAs6SssxPozBga0lwRAsKwAJ0eyDj01OjMybqe18du3Qs06peOSACaAkVL B9hN0+nizrYWhM6/nXcf6uE= =4tp0 -----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel
