Status and experiments

Board: Banana Pi BPI-F3 (SpacemiT K1), kernel 7.4.0-rc1-img (branch IMG-BXE-2-32), mainline powervr, Mesa pvr.

What works

Feature

Verification

.fw container & device info

FW version v1.1 (build 1 OS); SLC 16 KiB, 6 ERNs, LAYOUT_MARS, SYS_BUS_SECURE_RESET (E001)

MIPS boot, wired/dynamic TLB, wrapper remap

Boot markers in 0x1A00, refill count in 0x1A08

firmware_started handshake & Vulkan enum

[drm] Initialized powervr 1.0.0; PowerVR B-Series BXE-2-32 MC1

GPU bring-up (gpu_init.c)

Dust power, SLC bypass, PDS/USC exec bases, unit defaults, init handshakes, MTS association (E013)

KCCB, return slots, MTS BG & IRQ tasks

BG task per KCCB batch (E016), HW2 IRQ task on every completion (E018)

Runtime PM & warm boot

Full IDLE → FORCED_IDLE → OFF → power off → warm boot cycle (E005)

Compute (CDM) jobs

compute.pipeline.basic 73/73 supported, indirect_dispatch 24/24, builtin_var 11/11 (E021, E023)

Transfer (TQ_3D) jobs

api.fill_and_update_buffer 72/72, buffer_to_buffer 8/8, image compute cases pass (E023); most of api.copy_and_blit.core passes (E026)

Per-DM completion flush

Front-end, USC/PDS, TPU, MCU fence and SLC flush before retirement (E023)

Hardware recovery (HWR)

MMU fault or watchdog (max_deadline_ms) in ~0.28 ms; 13 recoveries in one dEQP run without a hang (E019)

Statistics, HWR log & reset notifications

Utilisation, time correlation, HWR log, FWCCB context-reset notification decoded by host (E025)

3D rendering (default since E041)

simple_draw 4/4, api.smoke 8/8, basic_draw 203 pass / 0 fail (128 not supported), depth load/store, out-of-memory grow and resume (E038, E041, E042)

Open items and next steps

  • testGpuFwVulkan against the manufacturer firmware (E044, docsClean/testGpuFwVulkan-results.md): on the same mainline + Mesa pvr stack the manufacturer open firmware gets 18 pass / 18 fail / 3 skip, ours 16 / 20 / 3. Both agree on 36 of 39 tests. The renders that write nothing (second render on a device, after a parameter-buffer OOM, after a transfer) fail the same way with the reference, so they are not firmware work. Only three tests differ:

    • queries: our occlusion count is 0 (the visibility-result base is probably not programmed);

    • indirect frame 1 and vertex-ext divisor 4: a later render on the device fails with ours and passes with the reference.

  • Partial renders: the first partial render of a frame runs and the TA restarts; the restart after the second one faults, and one restart variant hung the board (Q30, E043). bigpb passes up to 2 M triangles.

  • Render-target arrays / firmware 1.1 (Q27): answered, not implemented.

  • Acceptance oracle (E043): stages A and C pass; stage B passes except bigpb frame 3 (Q30). The second HWRTData of a dataset and the input-attachment renders work since E043.

  • Runtime suspend after compute/sync work: after compute.pipeline.basic or synchronization.basic the firmware keeps reporting ON and the GPU never suspends (stage D fails when run after stage C); present since at least E041.

  • Stability run: repeat tools/stab-run.sh (interrupted by external reboot in E026).

Clean-room rules

Every experiment in docs/logRefs/ observes this firmware and the GPU hardware it drives through the public host driver and /dev/mem:

  • Never read, run or disassemble the vendor firmware (rogue_*.fw, rgx.fw*), its dumps or captures.

  • Never read vendor DDK / proprietary driver sources or headers.

  • Never modify docsClean/; send specification gaps back via docs/questions.md.

Experiment index (docs/logRefs/36.29.52.182/, BXE-2-32)

ID

Date

Topic

Finding

E001

2026-11-08

MIPS stalls after reset

SYS_BUS_SECURE_RESET required in device info

E002

2026-11-08

TLB miss inside IRQ handler

C handlers must clear EXL before running

E003

2026-11-08

TLB flush crashes FW

tlb_flush_dynamic must execute from unmapped KSEG0

E004

2026-11-08

SoC hang on register read

Never read RGX registers with the GPU power domain off

E005

2026-11-08

Runtime PM & warm boot

Full boot runs on every power-on; pow_state must track idle

E006

2026-11-08

First compute kick

CDM starts, faults at 0x26C0 (PDS exec base missing)

E007

2026-11-08

Register survey 0x0000–0x2000

Boot/idle register values (docs/logRefs/36.29.52.182/data/survey-0-2000.txt)

E008

2026-11-08

Writable-bit probe

Mapped 40-bit address registers; found 0x0610 and 0x0FC8

E009

2026-11-08

pds_exec_base → 0x0610

0x26C0 fault gone (0x0610 = PDS_EXEC_BASE); reload hang hazard

E010

2026-11-08

Truncated .fw after hang

Kernel falls back silently to /lib/firmware/powervr/

E011

2026-11-08

0x0128 event enable

EVENT_ENABLE routes to host IRQ; must remain 0

E012

2026-11-08

usc_exec_base → 0x0FC8

0x0FC8 is an ISP register, not the USC exec base

E013

2026-11-08

Full GPU units bring-up

First compute jobs pass (empty_shader, copy_ssbo_*, etc.)

E014

2026-11-08

First TQ_3D kick

0x06A0..0x06B8 = PDS_BGRND0..3; launch trigger missing

E015

2026-11-08

Fault in new memory context

Flush and invalidate SLC before MMU invalidation

E016

2026-11-08

Completion delivery counters

BG task confirmed; IRQ conclusion later superseded by E018

E017

2026-11-08

TQ_3D launch 0x0F00 = 1

3D pipe starts, then faults writing to address 0

E018

2026-11-08

MTS IRQ task delivery

HW2 fires on every completion; timer poll only raced it

E019

2026-11-08

HWR + compute.pipeline.basic

Recovery in ~0.28 ms; 67/82 pass (6 image fails pending TQ)

E020

2026-11-08

TQ_3D two-bank PBE

Two PBE banks & event_pixel_pds_* verified; addr-0 fault remains

E021

2026-11-08

Watchdog & wider compute

Uses max_deadline_ms; indirect_dispatch 24/24, builtin_var 11/11

E022

2026-11-09

Full Q13 TQ_3D table

Conditional regs fixed addr-0 fault; multi-tile lost first tile

E023

2026-11-09

TQ launch order + per-DM flush

ISP_RENDER right before 0x0F00; 0 failures across 5 groups

E024

2026-11-09

testGpuFwVulkan workloads

Compute/transfer clean; graphics waiting on TA/3D kicks

E025

2026-11-09

Stats, HWR log, FWCCB reset

Time correlation, utilisation, HWR log and reset notifications verified

E026

2026-11-09

SLCFLUSHINVAL, copy_and_blit

Real SLC flush added; copy_and_blit mostly passes

E027

2026-11-09

Render structures by value

Mapped hwrtdata_common & context state to observed geometry regs

E028

2026-11-09

First TA kick (-DEXP_TA)

Canary found 0x0CB0 TA context-state base; VDM runs, PM idle

E029

2026-11-09

Q16b/Q16c TA registers

0x0420 counts kicks; PM still allocates nothing

E030

2026-11-09

Global FL bank & CONTEXT_PB_BASE

0x0D00 = 0x0F; PM catalogue setup remaining gap

E031

2026-11-09

Live PM stack pointers

Live SPs and counters are read-only and stay 0

E032

2026-11-09

PM live SP load variants

0x02A8 acks PM_PAGE_MANAGEOP; writes inside 0x0250 fault

E033

2026-11-09

First-load PM flags

Idle PM state matches reference; live SP copy still missing

E034

2026-11-09

Q16i PM copy variants

0xF320 = 0, catalogue index after PM writes; load trigger missing

E035

2026-11-09

Free-list load commands

0x0208/0x0200/0x20B0/0x20A8 load live SPs; TA finishes

E036

2026-11-09

First 3D render

First correct triangle rendered; PM pages not yet freed

E037

2026-11-09

ALIST/MLIST SP load commands

0x0288/0x0190 fix page freeing; simple_draw 4/4, smoke 8/8

E038

2026-11-10

ZLS, MSAA & PM_3D_MEM_FREE

basic_draw 203/331 (0 fails), depth works; input attachments fault

E039

2026-11-10

Input-attachment diff

Non-first kicks skip PM load; 0x0F18 stays isp_mtile_size

E040

2026-11-10

Input-attachment dump diff

Dumped ranges match; shared-PB rule added; still faults / board hang

E041

2026-11-26

Rendering by default, PM module, SPM, tools

Default build draws; oracle C/D pass (NPOT aside); hang fixed; OOM resume (Q28) and second render (Q29) open

E042

2026-11-27

Spec fab1fc9: init defaults, TPC flush, OOM resume

copy_and_blit 23/23; bigpb frame 0 completes; second HWRTData still fails (Q29b)

E043

2026-11-27

PM-MMU invalidation, first-kick PM reset, HWR teardown

pre-3d/pre-ta and input attachments pass; stage C complete; first partial render runs; one variant hung the board (Q30)

E044

2026-11-27

testGpuFwVulkan pixel-checking harness

pre-cdm, xfer, stage D pass; full battery 16/20/3 vs the manufacturer firmware’s 18/18/3; only queries, indirect and vertex-ext differ