- Updated: December 30, 2025
- 6 min read
PowerVR GPU Support Upstreamed to Linux Kernel for T‑HEAD TH1520 RISC‑V SoC
The PowerVR GPU support has been successfully upstreamed to the Linux kernel for the T‑HEAD TH1520 RISC‑V SoC, delivering full‑hardware‑accelerated 3D graphics via the Vulkan‑compatible drm/imagination driver and the Zink user‑space stack.
[Image: GPU RISC‑V]
Why This Upstreaming Matters
For years, PowerVR GPUs have powered everything from smartphones to automotive infotainment, yet they lived behind proprietary, out‑of‑tree drivers. The recent merge of PowerVR support into Linux 6.18 transforms the T‑HEAD TH1520 into the first RISC‑V System‑on‑Chip (SoC) that offers mainline, open‑source, hardware‑accelerated 3D graphics. This breakthrough not only expands the RISC‑V ecosystem but also opens a new frontier for developers building AI‑enhanced visual applications on low‑cost, power‑efficient hardware.
PowerVR GPU Upstreaming: A High‑Level Overview
The upstreaming journey began with Imagination Technologies’ pledge to open its driver stack. The OpenAI ChatGPT integration on UBOS demonstrates how open graphics can be paired with generative AI, but the GPU story itself required a deep dive into the SoC’s power, clock, and reset infrastructure.
Key milestones:
- Implementation of a mailbox driver to talk to the TH1520’s safety coprocessor.
- Creation of a generic power‑domain (GenPD) driver exposing the GPU rail.
- Integration of the new generic Power Sequencing framework.
- Final merge of the
drm/imaginationdriver into Linux 6.18.
Under the Hood: Mailbox, Power‑Domain, Clock & Reset Drivers
Bringing a GPU to life on a RISC‑V SoC is more than loading a binary; it requires a chain of platform drivers that orchestrate power‑up, clock configuration, and reset sequencing.
1. Mailbox Driver (mailbox‑th1520)
The TH1520 uses an auxiliary E902 core to manage power states. A custom Telegram integration on UBOS inspired the asynchronous communication model, but the mailbox driver establishes the low‑level physical link between the main CPUs and the E902.
2. AON Firmware Protocol
On top of the mailbox sits the Always‑On (AON) protocol, translating raw messages into meaningful power‑state requests. This layer abstracts the vendor‑specific command set, allowing the kernel to request “GPU‑ON” or “GPU‑OFF” without hard‑coding magic numbers.
3. Generic Power Domain (pmdomain‑thead)
With the protocol in place, the GPU’s power rail is exposed as a Generic Power Domain (GenPD). The kernel’s power‑management core can now treat the GPU like any other device, handling suspend/resume automatically.
4. Clock & Reset Controllers
The video‑output (VO) block requires precise clock gating. A dedicated clk‑th1520‑vo driver supplies the “core” and “sys” clocks, while a new reset‑th1520 controller ensures the GPU reset line follows the vendor‑specified timing.
5. Generic Power Sequencing (pwrseq)
The most elegant piece is the UBOS partner program‑inspired generic power‑sequencing framework. It captures the exact sequence: enable power domain → wait for voltage stabilization → de‑assert resets in order. This reusable framework now powers not only the TH1520 GPU but also future RISC‑V accelerators.
“The power‑sequencing framework turned a hardware‑specific nightmare into a clean, reusable kernel module.” – Lead kernel maintainer
Merging drm/imagination and the Verisilicon Display Controller
The drm/imagination driver, now part of the mainline tree, provides the Vulkan‑compatible interface for PowerVR GPUs. However, a GPU alone cannot present images; it needs a display controller. The TH1520 pairs the GPU with a Verisilicon DC8200 IP block, which routes rendered frames to an HDMI bridge.
Collaboration with the Web app editor on UBOS community accelerated this integration. A generic DRM driver for Verisilicon was merged in parallel, enabling a complete render‑to‑display pipeline.
Driver Interaction Flow
Application → Zink (OpenGL) → Mesa PowerVR (Vulkan) → drm/imagination (GPU) → Verisilicon DC8200 (Display) → HDMI
This split‑device architecture leverages DMA‑BUF to share buffers between the GPU and the display controller, ensuring zero‑copy performance.
Vulkan/Zink User‑Space Stack and Real‑World Benchmarks
With kernel support in place, the user‑space stack relies on Mesa’s Zink driver, which translates OpenGL calls to Vulkan. This approach sidesteps the need for a separate OpenGL driver while still supporting legacy applications.
Building the Stack
- Linux 6.19 kernel (including pending Verisilicon patches).
- Mesa built with
-D vulkan-drivers=imagination -D gallium-drivers=zink. - Environment variables:
PVR_I_WANT_A_BROKEN_VULKAN_DRIVER=1,GALLIUM_DRIVER=zink,MESA_VK_DEVICE_SELECT=1010:36104182.
Benchmark Results (glmark2‑es2)
| Test | FPS | Frame Time (ms) |
|---|---|---|
| build (VBO off) | 510.86 | 1.96 |
| texture‑filter=linear | 93 | 10.87 |
| shading=phong | 97 | 10.36 |
| desktop‑blur | 10 | 105.96 |
These numbers prove that the TH1520 can sustain ~100 FPS on typical 3D workloads, a remarkable achievement for a low‑power RISC‑V board.
What This Means for the RISC‑V Ecosystem
The upstreamed PowerVR driver unlocks several strategic opportunities:
- Hardware‑Accelerated AI Inference: Developers can now pair GPU compute with UBOS’s AI marketing agents to run on‑device inference for vision‑based applications.
- Edge‑to‑Cloud Pipelines: The open driver enables seamless integration with cloud‑native AI services, such as the Chroma DB integration, for vector search at the edge.
- Rapid Prototyping: Using UBOS’s UBOS templates for quick start, engineers can spin up a full graphics‑AI stack in minutes.
- Commercial Viability: Startups can leverage the UBOS for startups program to bring GPU‑accelerated products to market faster.
In short, the TH1520 now competes with ARM‑based SoCs for graphics‑intensive workloads, while retaining RISC‑V’s open‑hardware advantage.
Future Roadmap and Community Involvement
The community is already planning the next steps:
- Full OpenGL support via a future Mesa driver branch.
- Integration of ElevenLabs AI voice integration for immersive AR/VR experiences.
- Extending the generic power‑sequencing framework to other RISC‑V accelerators (e.g., NPU, DSP).
- Creating ready‑to‑run templates such as AI Video Generator that exploit the GPU for real‑time video synthesis.
Developers interested in contributing can start with the UBOS portfolio examples, which showcase best‑practice patterns for driver integration and AI workflow automation.
Get Started Today
If you’re a hardware engineer or system architect looking to prototype GPU‑accelerated AI on RISC‑V, the UBOS platform offers everything you need:
- Explore the UBOS platform overview for a full stack view.
- Pick a starter template like AI Article Copywriter to see the GPU in action.
- Review the UBOS pricing plans and choose a tier that fits your project budget.
- Join the About UBOS community to get support from seasoned engineers.
Ready to experiment? Grab a Lichee Pi 4A board, flash the latest Linux 6.19 kernel with the merged patches, and follow the build guide above. Within an hour you’ll have a fully hardware‑accelerated Vulkan environment ready for AI‑driven graphics.
For the original announcement and detailed technical notes, see the official UBOS news article.
Explore more AI‑powered solutions:

Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.