Hi all,
I’ve spent the last few months getting full GPU acceleration on the Cubie A7A (PowerVR BXM-4-64, BVNC 36.56.104.183) under Fedora 44 KDE on Wayland. I’ve published the result as an image (https://github.com/Rabs9/radxa-a7a-fedora44), and I’m sharing what I found on both drivers, in the hope we can put together the pieces for a fully open-source stack.
1. Imagination’s closed driver (Radxa’s DDK 24.2@6603887)
What it gives:
-
OpenGL ES 3.2, and Vulkan 1.3.
-
No desktop OpenGL and no GLX.
-
The EGL and Vulkan libraries are built for X11 only, with no Wayland window system.
What I did to run a Wayland desktop on it:
-
Two fixes to the
pvrsrvkmkernel module: an fdinfo NULL guard, and a dma-buf mapping for importers. Without the second one, the display engine’s IOMMU domain got corrupted. -
A Wayland build of the DDK’s Mesa layer, with a lenient EGL config choice.
With those, KWin, Plasma and Qt run on the GPU: a GL test window went from 283 to 2010 fps. Firefox gets hardware WebRender and WebGL 2.0, and SuperTuxKart runs natively at about 30 fps.
Still missing, and only a DDK licensee can build them:
-
libGL_PVR_MESA.so(desktop OpenGL), -
a Wayland-capable
libVK_IMG.so, -
a fix for
vkcube --wsi xcbcrashing inwsi_common_get_images.
Asked in radxa-pkg/allwinner-prebuilt-extra#24.
2. The open driver (drm/imagination and Mesa’s PowerVR driver)
What it took on the A7A:
-
The kernel side: I back-ported
drm/imaginationfrom Linux 6.16 into Radxa’s 6.6 kernel, and fixed a recovery bug that wedged the GPU. The GPU is kept powered, because context resets followed runtime power-off. -
The firmware: the A733’s firmware isn’t in linux-firmware yet. The open driver loads the DDK’s own
rgx.fw.36.56.104.183under the upstream namerogue_36.56.104.183_v1.fw, and it runs. -
Mesa 26.1.8’s PowerVR Vulkan driver, with patches for this GPU: scratch-buffer reuse, a render-state cache, a load-op program cache, and a sub-allocator free list.
What works: Vulkan 1.2 with Wayland windows, Wayland and X11 programs on the GPU with no configuration, and KWin composited on the GPU.
What’s missing:
-
OpenGL comes only through zink: OpenGL 2.1 and OpenGL ES 2.0, and slow.
-
Compared with the DDK’s Vulkan, the open driver lacks 74 features, 51 extensions and 71 formats.
3. The next pieces for a fully open stack
From a gap report comparing the two drivers on this board (a7a-gpu-gap report, included in the image):
-
OpenGL ES 3.0 and OpenGL 3.0 are blocked by one feature: Vulkan transform feedback (
VK_EXT_transform_feedback). The hardware has it: the DDK’s GLES 3.0 proves it. That single feature would unlock the GTK 4 GL renderer, Firefox WebRender and WebGL 2, Chromium/Electron, and SuperTuxKart’s modern renderer, all on open drivers. -
OpenGL 3.3 then needs: dual-source blending, the 10-bit vertex formats, and timestamp queries.
-
The A733’s firmware (
rogue_36.56.104.183_v1.fw) needs to be in linux-firmware, so distributions can ship the open driver as is.
Questions for anyone who can help:
-
Is anyone else working on the A7A’s GPU, with either driver? I’d gladly compare notes.
-
Does anyone know whether A733 DDK builds with Wayland or desktop GL are planned?
-
Is anyone working on transform feedback in Mesa’s PowerVR driver? I can test patches on real A7A hardware and report back.
-
Does anyone know how GPU firmware gets into linux-firmware for a new chip, Allwinner or Imagination?
If you have an A7A, a7a-gpu-check and a7a-gpu-gap report in the image show where your board stands; I’d love to see results from other boards.
Thanks to Radxa for the board and the BSP,
Rabs9