Imagination_BXE-2-32

Firmware overview

What it is

The PowerVR Rogue BXE-2-32 GPU contains a dedicated microcontroller (a MIPS core) that runs firmware. That firmware is the GPU’s conductor: the host driver (on the K1’s RISC-V CPU) does not program the GPU directly to draw — it submits work into command queues in shared memory, and the firmware:

The host does not see the GPU; it sees the firmware. All interaction goes through the shared-memory contract (see host-interface).

Identification (BVNC)

Coprocessor role — the control loop

   Host CPU (RISC-V)                  Firmware (MIPS in the GPU)          GPU hardware
   -----------------                  --------------------------          ------------
   driver builds commands
   in the context's Client CCB
   driver writes KICK into ───────►   BG task reads the Kernel CCB
   the Kernel CCB + wakes FW          resolves Client CCB fences
                                      puts the context on the run list
                                      schedules the DM       ──────────►  programs registers,
                                                                          starts the unit
                                      (GPU works)            ◄──────────  finishes → EVENT_STATUS (IRQ)
                                      IRQ task handles completion
                                      retires the command, does updates
   driver gets IRQ        ◄─────────  signals the host (UFO/IRQ)
   and releases the frame

None of these steps has a “main loop”: after boot the firmware sits in WAIT and all work happens in three interrupt contexts (timer, background task, IRQ task). See execution-environment and scheduler.

Shared memory

Host and firmware share DRAM. The firmware addresses it through a virtual window 0xC0xxxxxx in its MIPS address space; the host addresses the same memory through the GPU MMU. Control structures (CCBs, sysdata/osdata blocks, contexts) live there. The firmware’s VA→physical mapping is set up by the host (MIPS page tables managed by the driver). See memory-model.

Subsystems (mental map)

Subsystem Responsibility Document
Boot / runtime vectors, interrupts, caches/TLB, barriers execution-environment
Memory VA, remap, page tables, heap, virtualisation memory-model
Host↔FW contract shared structures, handshake host-interface, data-structures
Command queues KCCB, FWCCB, Client CCB kernel-ccb, firmware-ccb, client-ccb
Scheduling DMs, run/wait lists, preemption scheduler
Work execution TA/3D/TQ/CDM kicks data-masters
PM memory partial render, OOM, freelist partial-render-spm
Power APM, power-off, DVFS power-management
Robustness HWR, cleanup hardware-recovery
Observability trace, HWPerf hwperf-trace

Conventions of this spec