Imagination_BXE-2-32

Clean-room process

This document defines how the reimplementation must be carried out to keep the clean-room separation.

The two teams

The firewall

The clean team must not, at any time:

The clean team may:

What goes into the spec (allowed)

This spec contains interface and behaviour facts, which are not protected creative expression of the original firmware and are needed to interoperate:

What does NOT go into the spec (forbidden)

Source hierarchy

For the clean room, sources have decreasing confidence:

  1. Public upstream headers and the public mainline driver. The clean team may read them directly.
  2. Observed behaviour (black box: firmware trace, dEQP, sequences captured on the board).
  3. Firmware analysis, which reaches the clean team only in the form of this spec, already converted into behaviour and interface facts.

The target is the open variant of the firmware. Items of this spec that came from analysis are marked with provenance D. See open-vs-closed.

Question flow

  1. The clean team finds a gap or ambiguity while implementing.
  2. It opens a functional question (“when the host updates a cCCB write_offset without a KICK, must the firmware react?”).
  3. The dirty team answers by extending/clarifying the spec — never by sending original code. If needed, it performs new analysis and documents the observed behaviour.

Acceptance criteria for the reimplementation

The new implementation is considered conformant when, on the K1 mainline stack (powervr driver + Mesa pvr):

Validation advice. Validate on more than one DRAM configuration, including the most conservative one available. On this board, single-bit errors in command reads under marginal DRAM produce symptoms that look like logic bugs (e.g. a geometry command read as compute). If a failure disappears with the most stable DRAM setting and reappears when the frequency is raised, the cause is memory margin, not the implementation.