bvnc/36.56.104.183/bvnc.h — Per-GPU constants (BXM-4-64, K3)

The BXM-4-64 of the SpacemiT K3, from its own specification (docsClean/BXM-4-64/). The device information and the kick constants are complete, and the sequences that differ from other GPUs are in its seq.c (bvnc/<bvnc>/seq.c — Per-GPU sequences); make BVNC=36.56.104.183 builds, but nothing has run on a K3 yet. The open points for the specification team are listed at the end of the header.

BVNC_36_56_104_183_H

Per-BVNC configuration: PowerVR BXM-4-64 MC1 on the SpacemiT K3 (BVNC 36.56.104.183).

Every value comes from this GPU’s own specification, docsClean/BXM-4-64/ (commit 171f800); none is taken from the BXE-2-32 header (“never guess constants from another Rogue GPU”, clean-room-process.md). The file and section are named with each group.

Status: the device information and the kick constants are complete; the sequences that differ from other GPUs are in seq.c (this directory). It builds; nothing has run on a K3 yet. The points the specification leaves open are listed at the end.

BVNC_QUIRKS

Hardware quirks (BRNs) declared to the host (memory-model.md section 7).

BVNC_ERNS

Enhancements (ERNs) declared to the host.

BVNC_FEAT_ISP_MAX_TILES_IN_FLIGHT

Also the firmware’s cap on ISP_TILES_IN_FLIGHT (0x0FD8): 6 (README “cap in 0x0FD8 = 6”).

BVNC_INIT_MMU_INVAL_MASK

Section 2.2: MMU invalidation mask before the unit setup.

BVNC_SLC_SIZE_REG

Section 2.3: SLC bypass from the size in KiB read from CR[0x3970]: <= 0x20 (or 0): set both bits; 0x21..0x7F: set the low one, clear the high one; >= 0x80 (the K3, 128 KiB): clear both.

BVNC_INIT_PRE_POLL

Section 3.2: PDS controls and initial TPU tags, before the init-done polls ({ register, value }, broadcast writes).

BVNC_INIT_POST_POLL

Sections 4.1 to 4.3, after the init-done polls, in the specification’s order ({ register, operation, value }, broadcast writes): INIT_SET writes the value, INIT_OR ORs it into the current value (0x17B8 TPU enable, 0x1850 per-DM TPU control, 0x1858 CDM TPU control). The operation names are defined in seq.c.

BVNC_POWER_UNITS_MASK

power-management.md section 2.1: unit bits [10 + i] of the power request (0x0038), ((1 << n_units) - 1) << 10. The specification does not give n_units (open point 6), so no unit bit is set: the request carries only DIR, ALL (0x200) and the dust bits. To be replaced by the real mask.

TLB_WIRED_REGS

Wired TLB entry: register bank and broadcast bank (4 MiB pages).

TLB_WIRED_PT0

Wired TLB entry: page-table pages 0 and 1.

TLB_WIRED_PT1

Wired TLB entry: page-table pages 2 and 3.

TLB_WIRED_STACK

Wired TLB entry: stack.

TLB_NUM_WIRED

Number of wired entries (the value written to Wired).

TLB_NUM_ENTRIES

TLB size (ROGUE_MIPSFW_NUMBER_OF_TLB_ENTRIES).