gpu_init.c — GPU bring-up
GPU bring-up at every power-on of the GPU domain (cold and warm boot),
before the first kick: docsClean boot-gpu-init.md.
gpu_power_on(): section C (XPU broadcast,SYS_BUS_SECURE, BIF fault page, MTS task-context association) and section B (event routing).gpu_units_init(): section A: powers the dusts, then runs the GPU’s own sequence (bvnc_units_initinsrc/bvnc/<bvnc>/seq.c).dust_power(section D, power-island request) is per GPU, inseq.c.
-
MTS_INT_DM0
Events routed to the interrupt task for DM0: page faults, GPIO, USC trigger, bit 19.
-
MTS_INT_DM2
Events routed for DM2 (geometry): TA finished, PM out of memory.
-
MTS_INT_DM3
Events routed for DM3 (fragment): end of render.
-
MTS_INT_DM4
Events routed for DM4 (compute): compute finished.
-
static bool units_ready
The last
gpu_units_init()succeeded.
-
void gpu_power_on(void)
Open the GPU to the firmware and route its events.
Broadcasts register writes to every core (one on the K1), opens the secure bus, points faulting reads at the host’s dummy page instead of stalling the bus, routes the completion events of each data master to the MTS interrupt task (the host interrupt path
CR_EVENT_ENABLEmust stay 0, E011), and associates the interrupt task with every data master and the background task with DM0 (KCCB kicks).
-
uint32_t gpu_num_dusts(void)
Get the number of dusts to power.
- Returns:
default_dusts_num_initfrom the runtime configuration, or 1 when it is 0 or more than 8.
-
void gpu_units_init(void)
Initialise the GPU units (
boot-gpu-init.mdsection A).Powers the dusts up, then runs the BVNC’s sequence. BXE-2-32: configures the SLC bypass, pulses the unit reset, sets the PDS and USC execution bases, writes the unit defaults before and after the init-done handshakes, and sets the TPU filter mode and the TPU, PBE, ISP and TE defaults. BXM-4-64:
units_init_xe_tpu2(). Clock gating is left in AUTO, as the host configures it.
-
bool gpu_units_ready(void)
Check whether the last unit initialisation succeeded.
- Returns:
truewhen the dusts powered up and every init-done handshake completed.