Overview — PowerVR BXM-4-64 GPU on SpacemiT K3
This document presents the high-level architecture of the Imagination PowerVR Rogue BXM-4-64 MC1 GPU (BVNC 36.56.104.183), its integration in the SpacemiT K3 SoC, and the operational model of the embedded firmware.
1. Silicon Identity ([P][O])
| Attribute |
Value |
Source |
| GPU Core |
Imagination PowerVR Rogue BXM-4-64 MC1 (Rogue XE) |
[P][O] |
| BVNC |
36.56.104.183 (Branch 36, Version 56, Config 104, Customer 183) |
[P][O] |
ROGUE_CR_CORE_ID__PBVNC (0x0020) |
0x00240038006800B7 (0x0024=36, 0x0038=56, 0x0068=104, 0x00B7=183) |
[O] |
ROGUE_CR_CORE_REVISION (0x0028) |
0x00010000 (rev 1.0) |
[O] |
ROGUE_CR_DESIGNER_REV_FIELD1 (0x0030) |
0x00000000 |
[O] |
| Firmware Processor |
MIPS32 Release 2 / microMIPS (little-endian, 1 thread) |
[P][O] |
| Physical Bus Width |
36 bits (64 GiB physical space addressable by the GPU) |
[P] |
| GPU Virtual Address Width |
40 bits (1 TiB per memory context) |
[P] |
| Hardware Virtualization |
8 OSIDs (OSID 0 = primary host; supports IRQ_PER_OS and COREID_PER_OS) |
[P] |
| USC Clusters / Raster Pipes |
1 cluster, 1 raster pipe |
[P] |
| ISP / IPP Pipes |
6 pipes (NUM_ISP_IPP_PIPES = 6, ISP_MAX_TILES_IN_FLIGHT = 6) |
[P][O] |
| Tile Size / Partitions |
16×16 pixels, MAX_PARTITIONS = 12, COMMON_STORE_SIZE_IN_DWORDS = 19456 |
[P] |
| SLC (System Level Cache) |
1 bank, 512-bit cache line, HW-configurable size (128 KiB on K3; read from 0x3970) |
[P][O][D] |
| Framebuffer Compression |
FBCDC v50 (architecture 7), TFBC v10, 0 default/large FBC descriptors |
[P] |
| Stream Formats |
SIMPLE_PARAMETER_FORMAT_VERSION = 2, CDM_CONTROL_STREAM_FORMAT = 1 |
[P] |
| Coherency / Bus |
AXI_ACELITE, SYS_BUS_SECURE_RESET, LAYOUT_MARS = 1, SOC_TIMER, PERFBUS |
[P] |
Present vs. Absent Features on K3 ([P])
| Feature |
Status on K3 (36.56.104.183) |
Impact on Firmware |
MIPS |
Present |
MIPS32r2 / microMIPS ISA; MIPS_WRAPPER + REMAP1..5 + 16-entry TLB |
COMPUTE + COMPUTE_OVERLAP |
Present |
DM4 (CDM) active and can overlap execution with TA/3D |
GS_RTA_SUPPORT |
Present |
Render Target Arrays supported on TA/3D (0x0CB0, 0x0D20, RT loop) |
TPU_DM_GLOBAL_REGISTERS |
Present |
CDM programs 0x1858 (tpu_tag_cdm_ctrl) on every kick |
TPU_CEM_DATAMASTER_GLOBAL_REGISTERS |
Present |
Per-Data-Master TPU edge-mode control |
XE_ARCHITECTURE = 1, XE_MEMORY_HIERARCHY, XE_TPU2, PBE2_IN_XE |
Present |
Defines specific unit-defaults table and BIF/TPU/PBE layout |
GPU_MULTICORE_SUPPORT |
Present (capability; 1 physical core MC1 on K3) |
Registers 0xF308/F310/F318/F330/F338 exist; MULTICORE_SYSTEM = 1 |
SLC_SIZE_CONFIGURABLE |
Present |
Firmware reads 0x3970 at init to configure bypass in 0x3828/0x382C |
TLA |
Absent |
No 2D TLA engine; transfers use 3D-TQ on DM3 |
FASTRENDER_DM (TDM) |
Absent |
DM1 (TDM) does not exist; never program or enable DM1 |
RAY / CDM_USER_MODE_QUEUE |
Absent |
No Ray Tracing and no CDM user-mode queues |
Relevant Hardware Errata (BRNs) and Enhancements (ERNs) ([P])
| Code |
Description and Direct Impact on Firmware |
| BRN 44079 |
Sequencing restriction in hardware control / state clearing on Rogue cores |
| BRN 63553 |
Critical on K3 (36-bit bus): requires the MIPS_ADDR_REMAP5 (0x1880/0x1888) slot to map physical address 0x0 (64 KiB) to the firmware boot code DMA address |
| BRN 71317 |
Erratum present in the 36.56.104.183 silicon definition (referenced in core revision) |
| ERN 35421, 38748, 42290, 42606, 47025, 57596 |
Hardware enhancement sets present in the 36.56.104.183 silicon (including PBVNC_COREID_REG and XE features) |
2. SpacemiT K3 SoC Integration ([P][O])
In the SpacemiT K3 Device Tree, the GPU is exposed as a single platform device:
| Resource |
Specification on SpacemiT K3 |
Notes |
compatible |
"spacemit,k3-gpu", "img,img-bxm-4-64", "img,img-rogue" |
Mainline fallback order |
MMIO (reg) |
0xCAC00000, size 0x80000 (512 KiB) |
XPU_MAX_REGBANKS_ADDR_WIDTH = 19, XPU_MAX_SLAVES = 3, XPU_REGISTER_BROADCAST = 1 |
Interrupt (interrupts) |
APLIC hwirq 75 (IRQ_TYPE_LEVEL_HIGH) |
Mapped in observed Linux as IRQ 53 |
Clock (clocks) |
CLK_APMU_GPU (clk_rgx) |
Single main GPU clock source |
Reset (resets) |
RESET_APMU_GPU |
GPU domain reset in APMU |
Power Domain (power-domains) |
K3_PMU_GPU_PWR_DOMAIN (gpu@1) |
Platform power gate in the SoC PMU |
| Thermal Zone |
thermal_gpu |
Associated thermal sensor for cooling/DVFS |
| DMA Coherency |
Not dma-coherent in DT (shared memory uses explicit cache maintenance + Write-Through policy on MIPS) |
See memory-model.md and host-interface.md |
Observed OPP (DVFS) Table on K3 ([P][O])
| OPP |
Frequency (clk_rgx) |
Voltage |
State Observed on Board |
| 0 |
409.6 MHz (409600000 Hz) |
800 mV |
Idle / post-boot frequency |
| 1 |
491.5 MHz |
— |
Intermediate step |
| 2 |
614.4 MHz |
— |
Intermediate step |
| 3 |
819.2 MHz |
— |
Intermediate step |
| 4 |
1000.0 MHz |
— |
Intermediate step |
| 5 |
1228.8 MHz (1228800000 Hz) |
950 mV |
Frequency reached under Compute/3D load |
3. Role of the Firmware in the PowerVR Rogue Architecture
The host kernel driver (SpacemiT K3 RISC-V CPU) does not directly program the GPU rendering or compute blocks (VDM, TE, ISP, PBE, CDM, PM, dynamic BIF). Instead, there is a clear division of responsibilities:
┌─────────────────────────────────────────────────────────────────────────┐
│ Host CPU (RISC-V — Linux drm/imagination) │
│ • Manages GEM memory, GPU page tables (40b→36b), and contexts │
│ • Packs kick commands into per-context cCCB rings │
│ • Sends control commands in the KCCB ring and rings MTS_SCHEDULE(0xB00)│
│ • Receives FWCCB notifications and interrupts (hwirq 75) │
│ • Controls external SoC clock/reset/power-domain (APMU/PMU) │
└───────────────────────────────┬─────────────────────────────────────────┘
│ Shared memory + MTS (0x0B00) + IRQ
┌───────────────────────────────▼─────────────────────────────────────────┐
│ Embedded Firmware (MIPS32r2 / microMIPS internal to the GPU) │
│ • Background Task (BG, HW0): drains KCCB, schedules cCCBs, │
│ checks UFOs/Sync Checkpoints, activates MemCtx in BIF, launches kicks│
│ • Interrupt Task (IRQ, HW1): handles DM completion (TA/3D/CDM), │
│ PM OOM / SPM, MMU Page Fault, CSW store, HWR, and Idle/APM │
│ • Watchdog / Timer (HW2): HWR deadline counting and APM timeout │
└───────────────────────────────┬─────────────────────────────────────────┘
│ CR registers (0xCF800000 / 0xCFA00000)
┌───────────────────────────────▼─────────────────────────────────────────┐
│ BXM-4-64 GPU Hardware Units │
│ DM2 GEOM (VDM/TE/PPP) • DM3 FRAG (ISP 6 pipes/PBE/ZLS) • DM4 CDM │
│ PM (Parameter Manager) • BIF/MMU (8 banks) • SLC (128 KiB) • USC/PDS │
└─────────────────────────────────────────────────────────────────────────┘
Summarized Lifecycle
- Cold Boot: Host brings GPU out of reset, configures
MIPS_ADDR_REMAP1..5, loads the .fw image into DRAM, writes MIPS_BOOT_DATA, and releases the MIPS core (MTS_GARTEN_WRAPPER_CONFIG + SOFT_RESET).
- Firmware Init: MIPS initializes stack, caches, and TLB, maps shared memory, runs
boot-gpu-init, enables MTS routing, and writes firmware_started = 1.
- Continuous Operation:
- Host writes to KCCB/cCCB and kicks the
MTS_SCHEDULE (0x0B00) register.
- MTS wakes the BG (
HW0) context, which consumes commands and triggers hardware (DM2/DM3/DM4).
- When a unit finishes (or raises OOM/Page Fault), MTS wakes the IRQ (
HW1) context, which clears events, retires commands, updates UFOs, notifies the host, and reschedules.
- Idle / APM: After
100 ms (configurable via active_pm_latency_ms) with no pending work, the firmware transitions sysdata.pow_state to ROGUE_FWIF_POW_IDLE and interrupts the host; the driver verifies POW_IDLE + idle KCCB, sends KCCB_CMD_POW (ROGUE_FWIF_POW_OFF_REQ), and the firmware executes the final shutdown sequence and enters WAIT. The host then clock/power-gates the SoC domain.
- Warm Boot: When new work arrives, the host re-enables clock/power, reprograms
MIPS_ADDR_REMAP*, and releases MIPS; the firmware detects that sysinit/osinit are already configured, reinitializes the GPU units, and resumes operation without recreating contexts.