Imagination_BXM-4-64

Open Contract (Mainline) vs. Closed Contract (Vendor)

On the SpacemiT K3 there are two Linux drivers capable of operating the PowerVR BXM-4-64 (36.56.104.183) GPU:

  1. Open mainline driver (drivers/gpu/drm/imagination) — primary target of this specification.
  2. Proprietary vendor driver (img-rogue, DDK 24.2) — historically used in the board’s original BSP for hardware validation, clock/DVFS measurements, HWPerf, and physical register verification.

This document explains exactly what is common in hardware, what changes in the host↔firmware ABI, and why the clean-room implementation must target the mainline contract.


1. Why the Mainline Contract Is the Primary Target ([P])


2. Surface Comparison: Mainline vs. Vendor ([P][O])

Aspect Mainline (drm/imagination) — TARGET Legacy Vendor Driver (img-rogue)
Firmware filename powervr/rogue_36.56.104.183_v1.fw Legacy firmware distributed in the BSP
FWIF ABI version 1.1 (v3 header with device_info) Proprietary DDK 24.x ABI
device_info in .fw container Present (version 1, 29 u64 parameters, 232 B payload) Vendor-driver-specific format
DM identification in KCCB PVR_FWIF_DM_GP=0, GEOM=2, FRAG=3, CDM=4 Vendor-specific numbering
KCCB / FWCCB command rogue_fwif_kccb_cmd (88 B) / rogue_fwif_fwccb_cmd (88 B) Vendor-specific format
cCCB command header rogue_fwif_ccb_cmd_header (40 bytes) Vendor-specific format
rogue_fwif_sysinit structure 544 bytes (fixed offsets in pvr_rogue_fwif_check.h) Different layout
rogue_fwif_osinit structure 104 bytes Different layout
rogue_fwif_fwcommoncontext structure 152 bytes Different layout
Synchronization UFOs + Sync Checkpoints (0xAC1/0x519/0xEFF) UFOs + DDK Sync Primitives / Checkpoints
Physical GPU mapping and CR registers Identical (same 36.56.104.183 silicon) Identical (same 36.56.104.183 silicon)
Unit init, PM, BIF, SLC, MTS, CSW, SPM, HWR sequences Identical at the hardware register level Identical at the hardware register level

3. How Evidence from the Vendor Environment Was Used Without Contamination

During investigation on a SpacemiT K3 Pico ITX board, physical measurements (such as OPP frequencies 409–1228 MHz, active register snapshots CORE_ID, SLC_IDLE, ISP_CTL, APM latency, HWPerf capture, and reboot/power-cycle behavior) were collected in both mainline and vendor environments for cross-corroboration of hardware:


4. Summary of Adopted Naming Conventions

To avoid any ambiguity during implementation: