There are two variants of the firmware for the same MIPS MCU and the same BVNC
36.29.52.182:
pvr_rogue_fwif*.h (drm/imagination,
powervr driver). It is the target of the reimplementation.The high-level logic of both is the same. This spec describes only the open variant. Layout values and other details of the closed variant are deliberately not included: the target does not need them, and they come from proprietary material.
From most to least “clean”:
pvr_rogue_fwif*.h, pvr_rogue_fwif*_check.h,
pvr_rogue_cr_defs.h, pvr_rogue_mips.h, pvr_fw_info.h) and the public mainline
driver. The clean team may read them directly.When an interface fact appears in both variants, it is almost certainly imposed by the hardware or by the ABI, not a choice of one implementation. These are the most solid requirements of this spec:
ROGUE_CMD_MAGIC_DWORD, 0x2ABC in the upper 16 bits) and the
bit 15 marking a task in the cCCB (ROGUE_CCB_TYPE_TASK);MIPS_ADDR_REMAP_RANGE) and the fault page;ROGUE_CR_* registers, which belong to the hardware;The closed variant also exposes hardware capabilities the open target does not require (cancelling submitted work, extended virtualisation, a second geometry pipe on multicore). They are out of scope.
Every host↔firmware interface requirement can be labelled by provenance:
powervr driver /
Mesa. The cleanest source.The interface is stable and well covered: most KCCB/FWCCB commands, all shared
structure sizes and offsets (pvr_rogue_fwif_check.h) and the trace-ID table
(pvr_rogue_fwif_sf.h) have provenance P, and many items also have O. The clean
team implements most of the contract from public sources and observed behaviour. The D
items of this spec fill in semantics (what each field means, in what order to act).
Practical advice. Implement from P (public headers) and O (behaviour). Use the D items of this spec for semantics and ordering, always cross-checking names and layouts against the public header.