Notes on Mali T700 series GPUs
Cafe 332b0b16f4 Decode one uniform as a half-float vec4 | 7 gadi atpakaļ | |
---|---|---|
notes | 7 gadi atpakaļ | |
src | 7 gadi atpakaļ | |
.gitignore | 7 gadi atpakaļ | |
LICENSE | 7 gadi atpakaļ | |
README.md | 7 gadi atpakaļ |
Chai is a project to reverse engineer the Mali T-series of GPUs. It focuses on the T760 which is found in the RK3288 SoC. This SoC is notably used in the Veyron design for Chromebooks, which are supported in Libreboot.
Chai has its roots in lima by Luc Verhaegen et al. Lima targets the older Mali cores; chai is for the newer cores like its unreleased successor Tamil. At the time of writing, no code is shared with lima, although limare was useful for illustrative purposes. One of lima's authors, Connor Abbott, did release reverse-engineered documentation for the T6xx ISA, which will be used in chai, along with his disassembler.
Documentation about the GPU is in notes/. Supporting source code is in src/. Source code is under the GPLv2.
This list is in flux as project requirements change.
The shim is free (GPLv2) and is modified for chai. No other ARM code is used in chai.
Initial reverse engineering used a combination of fuzzing and reading
through the shim source code. Later notes observe communication between
the shim and the blob. A tracer was written that hooks into the shim
function kbase_ioctl
, called for each message. It decodes the message
and dumps it to the console for inspection and replay.
The Mali Offline Shader Compiler may be useful for ISA reverse engineering. See the Lima wiki which discusses legal aspects here.
None of chai's authors are or were affiliated with ARM Limited.
Chai, oolong, and black are for T GPUs. It's a joke. Get it?