Cubie A7A GPU: what runs on Imagination's closed driver, what works on the open one, and the missing pieces for a fully open stack

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 pvrsrvkm kernel 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 xcb crashing in wsi_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/imagination from 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.183 under the upstream name rogue_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:

  1. Is anyone else working on the A7A’s GPU, with either driver? I’d gladly compare notes.

  2. Does anyone know whether A733 DDK builds with Wayland or desktop GL are planned?

  3. Is anyone working on transform feedback in Mesa’s PowerVR driver? I can test patches on real A7A hardware and report back.

  4. 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

  1. The performance of Mesa PVR is currently not meeting expectations, and we are continuously optimizing it.
  2. The IMG DDK has not supported desktop GL for a long time and is not expected to in the foreseeable future; the SDK buildroot UMD supports Wayland.
  3. We have implemented transform feedback based on Mesa PVR.
  4. 36.56.104.183 is probably still in the experimental stage. If the Mesa PVR developers promote it to official support, they will generally submit it to linux-firmware.

Thanks, that’s very helpful.

Desktop GL: understood, I’ll stop asking for it. On the open stack, Mesa 26.3’s PowerVR Vulkan with zink now gives OpenGL 3.2 / GLES 3.1 here, and that’s what I ship for desktop-GL programs.

Wayland UMD: this is the piece I’m missing. The DDK userspace in Radxa’s Debian package can only present on X11. Where can I get the buildroot UMD that supports Wayland, and which DDK version is it? The kernel side on my board reports Rogue_DDK_Linux_WS 24.2@6603887 (firmware 24.2 @ 6603887, BVNC 36.56.104.183), so I’d need the userspace from that same build.

Transform feedback: is your work public (a branch, or merged upstream)? Mesa 26.3.1 has VK_EXT_transform_feedback for pvr, and with it zink reaches GL 3.2 on this board. If that’s yours, thank you.

Firmware: noted. I use Imagination’s 36.56.104.183 v1 from their linux-firmware repo (powervr branch) for the open driver, and will switch if it lands in mainline linux-firmware.

— Rabs9