Imagination Rogue B-Series free firmware documentation
This is the project documentation for the free (GPLv3, GNU C23) firmware that
runs on the internal MIPS microcontroller of Imagination Rogue B-Series
GPUs. It is a clean-room implementation running under the unmodified mainline
Linux powervr driver (apart from the experimental BVNC entry and SoC
enablement) and the Mesa pvr Vulkan driver. One source tree builds a
firmware per GPU core (make BVNC=<b.v.n.c>, Build and toolchain):
GPU |
BVNC |
SoC |
State |
|---|---|---|---|
BXE-2-32 |
|
SpacemiT K1 |
Runs on the board (status below) |
BXM-4-64 |
|
SpacemiT K3 |
Builds (boot, exception code and GPU unit initialisation written from its specification); not run on a K3 yet |
The documentation is written directly from the implementation in src/,
the host integration on the IMG-BXE-2-32 Linux branch, and black-box
board experiments recorded in docs/logRefs/. It complements — and
never modifies — the read-only clean-room specifications, one per GPU:
docsClean/BXE-2-32/ and docsClean/BXM-4-64/.
Clean-room sources used by the clean team:
the clean specification of each GPU in
docsClean/<gpu>/;the public upstream Linux
drm/imaginationheaders and driver;public Mesa (
pvrVulkan driver androgue_cr.xml);public MIPS32r2 / microMIPS architecture documents;
black-box experiments on the board with this firmware (docs/logRefs/).
Gaps in the specification are sent back as questions in docs/questions.md
or investigated through experiments on our own firmware.
Contents
- Hardware
- Linux Driver
- Firmware (Overview)
- Acceptance tests
- Firmware (Source)
main.c— Entry point and interrupt dispatchkccb.c— Kernel CCB and firmware CCBsched.c— Client CCB schedulerkick.c— Data-master kicksgeom.c— Geometry (TA) kicksfrag.c— Fragment (3D) kickspm.c— Parameter managermmu.c— MMU, caches and GPU memory accesspower.c— Power managementhwr.c— Hardware recoverystats.c— Statistics and time correlationgpu_init.c— GPU bring-uputil.c— Utilities and tracebvnc/<bvnc>/seq.c— Per-GPU sequencesboot.Sandvectors.S— Assemblyinclude/fw.h— Internal declarationsinclude/fwif.h— Host interface structuresinclude/kick.h— Kick declarationsinclude/pm.h— Parameter-manager declarationsinclude/layout.h— Memory layoutinclude/regs.h— Register offsetsinclude/mips.h— MIPS CP0 accessinclude/sfid.h— Trace string identifiersbvnc_seq.h— Per-BVNC hardware sequencesbvnc/36.29.52.182/bvnc.h— Per-GPU constants (BXE-2-32, K1)bvnc/36.56.104.183/bvnc.h— Per-GPU constants (BXM-4-64, K3)
- Git Repository
Current status
BXE-2-32 on a Banana Pi BPI-F3 (SpacemiT K1), kernel 7.4.0-rc1-img (branch
IMG-BXE-2-32), mainline powervr, Mesa pvr.
Area |
State |
|---|---|
Boot, MIPS TLB/remap, |
Works ( |
GPU bring-up ( |
Works: dust power, SLC bypass, PDS/USC exec bases, unit defaults, init handshakes, MTS association (E013) |
Kernel CCB, FWCCB, host IRQ, trace buffer |
Works: BG task per KCCB batch (E016), host-decoded trace in debugfs |
Runtime PM (idle → power off → warm boot) |
Works: full cycle verified on the board (E005) |
Vulkan enumeration ( |
Works: |
Client CCB, UFO fences/updates, BIF slots, MTS IRQ task |
Works: HW2 IRQ task fires on every completion (E018) |
Compute (CDM) jobs |
Works: |
Transfer ( |
Works: |
Per-DM completion flush |
Works: front-end, USC/PDS, TPU, MCU fence and SLC flush before retiring every fragment/transfer/compute job (E023) |
Hardware recovery (HWR) |
Works: MMU fault or watchdog ( |
Statistics and robustness |
Works: GPU utilisation, time correlation, HWR log, FWCCB context-reset notification (E025) |
Geometry (TA) and fragment (3D) kicks |
Experimental ( |
See Status and experiments for the full experiment log summary and next steps.
Provenance labels
Register and hardware tables cite where each offset, name or behaviour comes from:
- P (public)
Public upstream Linux
drm/imaginationheaders (pvr_rogue_cr_defs.h,pvr_rogue_fwif*.h) or public Mesa (rogue_cr.xml).- S (spec) / O (spec observation) / D (spec statement)
The clean-room specification in docsClean/.
- E (experiment)
Established by black-box experiment on the board with this firmware, recorded in docs/logRefs/.
Licenses
Each part of this documentation carries its own SPDX license identifier on its first line:
hardware/—CC-BY-SA-4.0(matching docsClean/);linux-driver/—GPL-2.0-only(matching the Linux kernel);firmware/,firmware-source/and the top-level Sphinx files —GPL-3.0-or-later(matching the projectLICENSE).