The ati-vga device does not currently implement the CCE/CP/PM4 microengine.
This is a small packet processor that reads command packets from a ring buffer
and turns them into a series of register writes. Many drivers require this
but at the moment we're limited to MMIO.

The processor requires drivers to load a small microcode on initialization but
it has been an open question as to how this microcode works. I've been doing
some work to understand it. It's still a work in progress with a lot of
unknowns, but I thought it would be worth posting what I've learned at this
point:

https://chad.jablonski.xyz/r100-microcode.html

The short story is that the microcode is a horizontal microcode. I go into a lot
more detail in the writeup. There's also a full listing of the partially
disassembled stock microcode at the end. I've found it easiest to view as a
table.

The source for this and some cli tools for (dis)assembling the microcode
live here: https://codeberg.org/cjab/ati-tests/src/branch/main/microcode

Also, thanks to Zoltan, a summary of the previous discussions around this lives
here: https://codeberg.org/qmiga/pages/issues/3

I currently have a series in flight implementing the r100 CP engine:
https://lore.kernel.org/qemu-devel/[email protected]/

It takes the approach of implementing the packet handlers in C. I'm deciding
between that approach and implementing an interpreter for the microcode. Either
way the RE work should be helpful.

Chad Jablonski
[email protected]

Reply via email to