Arm Mali "Valhall" Reverse-Engineering Started

Written by Michael Larabel in Arm on 20 July 2021 at 03:00 PM EDT. 22 Comments
ARM
The Panfrost open-source Linux graphics driver stack has matured nicely for Arm Mali Midgard and Bifrost generations but for the past two years now there has been Valhall as the latest-generation Arm Mali microarchitecture. There is now work underway on reverse-engineering Valhall for ultimately wiring up with open-source graphics driver support.

Panfrost lead developer Alyssa Rosenzweig commented today that reverse-engineering work has begun for Valhall with a focus on the Mali G78 in particular. This reverse engineering has been going on for just about one month but there is already some instruction set documentation made as well as an XML-based representation.

An assembler and disassembler for the Valhall instruction set has also been made to help in the reverse-engineering effort to get the latest Mali GPUs working with an open-source driver.

This reverse engineering has been hampered by the lack of Linux-friendly devices with Valhall graphics and thus having to use an Android smartphone (Samsung Galaxy S21) for the reverse engineering to date.

More reverse engineering is still ahead but at least enough information learned so far to begin work on Valhall compiler support. Ultimately the existing Bifrost support within the Mesa OpenGL/Vulkan drivers will ultimately be adapted to work with Mali Valhall but will still take some time as well as for Linux-friendly (non-Android) devices to come to market with these newer graphics.

More details on the reverse-engineering effort via this blog post.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week