GPU bring-up
Every time the GPU power domain is turned on — cold boot, warm boot after
runtime PM suspend, or after SOFT_RESET during HWR — the firmware must
program the GPU-side registers before the first kick of any data master
(docsClean/BXE-2-32/boot-gpu-init, verified on silicon in E013). Omitting the
execution bases or unit defaults causes immediate MMU faults or hung data
masters (E006, E012).
Unless noted, writes in section A go through the XPU broadcast bank
(BCAST[off] at 0xCFA00000 + off); CR[off] targets the primary
core bank (0xCF800000 + off).
A. GPU units initialisation (before any kick)
Order matters wherever a poll is indicated:
Clock gating: if
ROGUE_FWIF_INICFG_DISABLE_CLKGATING_ENis set, force unit clocks on; otherwise leave clock gating enabled (mainline leavesCLK_CTRL = 0x002AAA002A22AAAA, all unitsAUTO; E007).Dust / unit power (see section D below): power on
runtime_cfg.default_dusts_num_initdusts (1on BXE-2-32) via0x0050and0x0038and wait forEVENT_STATUS.POWER_COMPLETE.SLC bypass (16 KiB SLC ≤ 32 KiB): set bypass on
ROGUE_CR_SLC_CTRL_BYPASS(0x3828): low word|= 0x01000000, high word|= 0x2000.Unit reset pulse:
BCAST[0x6000] = 1, thenBCAST[0x6000] = 0.PDS and USC execution bases (64-bit, low word first):
Register pair
Value
Notes
BCAST[0x0610]/0x0614sysinit.pds_exec_basePDS code heap base (bits 39:20 writable; E009)
BCAST[0x4008]/0x400Csysinit.usc_exec_baseUSC execution base pair 1 (E013)
BCAST[0x4010]/0x4014sysinit.usc_exec_baseUSC execution base pair 2 (E013)
BCAST[0x4028]/0x402Csysinit.usc_exec_baseUSC execution base pair 3 (E013)
Without
0x0610the CDM faults at VA0x26C0(E006); without all three USC pairs the CDM runs forever without completing (E012, E013).0x0FC8is not a USC base — it is an ISP register written by fragment/TQ kicks.Fixed block of FW-only unit defaults (no public names; required for USC, TPU, MCU and VDM units,
[spec]+ E013):Register(s)
Required value
BCAST[0x18C0],[0x18C8],[0x18D0],[0x18E0]0x007FC000BCAST[0x0600]0x403F3F00BCAST[0x0604]0x00800000BCAST[0x4050]over-allocation temp-register count
| 0x2000(0x2000when none)BCAST[0x06D8]over-allocation shared-register count (
0when none)BCAST[0x0720]0x0000000FBCAST[0x0640]/[0x0698]/[0x0630]/[0x0658]/[0x06C0]/[0x0648]/[0x0608]0x9/0xB/0x1/0xB/0xD/0x1/0x1BCAST[0x18E8],[0x18F0],[0x18F8],[0x1900]0xF(open variant)BCAST[0x1498],[0x0700]1BCAST[0x0358]5BCAST[0x20F8]/[0x2010]/[0x2100]1/0/0BCAST[0x13F8]7Note
[spec]Q16i: on the reference firmware, registers0x1500 = 0x80,0x1780 = 0x21,0x1788 = 0x20,0x178C = 0x20and0x0FA0 = 0x88also change alongside the unit defaults at the first load.Init-done handshakes (both polls must succeed before any kick):
BCAST[0x4068] = 1, then poll0x4068until bit 0 =0;BCAST[0x0660] = 1andBCAST[0x0670] = 1;BCAST[0x0CD8] = 1, then poll0x0CD8until bit 0 =0.
TPU filter flags:
BCAST[0x17B8] = sysinit.filter_flags.Multicore index registers (
0xF318/0xF338, no public names): not needed on single-core BXE-2-32.Emit trace
MAIN_69(GPU Units init (# mask: …)).
B. Event routing to MTS IRQ task (HW2)
GPU events in ROGUE_CR_EVENT_STATUS reach the firmware’s HW2 IRQ task
solely through the per-DM ROGUE_CR_MTS_DMn_INTERRUPT_ENABLE registers —
not through ROGUE_CR_EVENT_ENABLE (docsClean/BXE-2-32/boot-gpu-init, E011,
E018):
Register |
Value |
Routed |
|---|---|---|
|
|
Clear any stale pending events first |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Must stay 0 on single-core MIPS firmware (E011) |
Why EVENT_ENABLE stays 0 on BXE-2-32
ROGUE_CR_EVENT_ENABLE drives the GPU’s external event-IRQ line to the
host, which mainline powervr does not service (causing nobody cared
IRQ storms if set; E011). The reference firmware only writes
EVENT_ENABLE = 0x8EAC on multicore systems
(ROGUE_CR_MULTICORE_SYSTEM >= 2) to propagate events from secondary
cores [spec].
MTS wrapper setup and event consumption
ROGUE_CR_MTS_GARTEN_WRAPPER_CONFIG(0x0B50) is configured by the host (IDLE_CTRL_META), not the firmware.ROGUE_CR_MTS_SCHEDULE_ENABLE(0x0BC8) is left at its reset value by both host and firmware.There is no “which DM interrupted” register: the HW2 handler reads the core-local
CR[0x0130](EVENT_STATUS), dispatches each set bit (b1KERNEL_FINISHED, b2COMPUTE_FINISHED, b3PIXELBE_END_RENDER, b5TA_FINISHED, b7PM_OUT_OF_MEMORY, b9MMU_PAGE_FAULT), clears handled bits inCR[0x0138], and ends the task withCR[0x0B08] = 2+ read-back.
C. MTS context association and power-on setup
Register |
Value |
Meaning |
|---|---|---|
|
|
Enable primary core in broadcast mask |
|
|
Clear secure bus bit, then read back |
|
|
Dummy page for faulting GPU reads |
|
|
IRQ context serves all DMs (cleared by host on FW stop) |
|
|
BG context serves DM0 |
|
|
Enable wrapper host-IRQ generation |
After units init and scheduler init complete, the firmware writes
sysinit.firmware_started_timestamp = ROGUE_CR_TIMER, executes a write
barrier, and sets sysinit.firmware_started = 1 (polled by the host with a
5 s timeout).
D. Dust / power-island control
While the host controls the external SoC power domain (APMU K1_PD_GPU),
internal GPU dust gating is controlled by the firmware (docsClean/BXE-2-32/boot-gpu-init,
E013):
BCAST[0x0050] = (1 << num_dusts) - 1(8-bit active-dust mask).CR[ROGUE_CR_XPU_BROADCAST] = 1.CR[0x0038] = req(bit 0 =1on,0off), thenCR[0x0038] = req | 2(bit 1 = request pulse).Poll
ROGUE_CR_EVENT_STATUSforPOWER_COMPLETE(bit 10) orPOWER_ABORT(bit 11).Restore
CR[ROGUE_CR_XPU_BROADCAST] = 1.
When ROGUE_FWIF_INICFG_POW_RASCALDUST (bit 4) is set, the reference
firmware gates dusts on and off around every job (traces POW_9 and
POW_7); mainline powervr does not enable POW_RASCALDUST, so
powering dusts on at boot and after HWR is sufficient (E013).