testGpuFwLinuxPvr

testGpuFwLinuxPvr drives the firmware and the mainline powervr kernel driver through the DRM UAPI directly, without Mesa. It complements testGpuFwVulkan: a Vulkan failure can come from Mesa, the kernel or the firmware, while this suite removes Mesa from the path and covers what Mesa never sends.

It is written from the public UAPI header (pvr_drm.h) and the mainline driver source; it contains no firmware structure.

What it covers

all runs groups uapi, life and pm, and rec when a recording is given with --rec.

Group

In all

Tests

uapi

yes

Every ioctl with valid and invalid arguments: device queries, BOs and dma-buf, VM map/unmap bounds, firmware contexts of every type and priority, free lists, HWRT datasets, and 5000-operation fuzzing checked against a model. Each context create/destroy is a firmware context and a firmware cleanup command

life

yes

Object lifecycles: context and render-target churn, fds closed with everything alive, processes killed, threads racing on contexts

pm

yes

Runtime PM: suspend after each cleanup, objects alive across a suspend, the watchdog’s HEALTH_CHECK, work under changing autosuspend delays

rec

with --rec

Replays of a recorded workload (for example a testGpuFwVulkan run), compared page by page with the recording; recombined (split, merged, shrunk free lists, MMU flushes, trace-mask changes, power-off between jobs), interrupted (fd closed, process killed, contexts destroyed), in parallel and at different priorities

stream

no

Every SUBMIT_JOBS refusal, sync-object errors

hwr

no

All-zero jobs of every type, recovery storms, dependencies across contexts and processes, free-list reconstruction after a reset

device

no

Driver unbind/rebind, module reload, suspend to RAM, firmware swap and a stalled firmware

fwcmd

no

One test per KCCB command the kernel never sends (needs the test-only kernel patch of the repository)

fuzz-stream

no

Replays with mutated register values; every job must end

Run

make                                     # build/testGpuFwLinuxPvr, build/liblfwt-rec.so
sudo ./build/testGpuFwLinuxPvr -k all
sudo ./build/testGpuFwLinuxPvr record -o mf.lfwt -- testGpuFwVulkan multiframe
sudo ./build/testGpuFwLinuxPvr -k -R mf.lfwt group:rec

Results

Not yet recorded with the current stack (firmware v1.1 of 2026-11-30, kernel from patchs/linux). The firmware bugs it found earlier are fixed and logged in E061, E062 and E063.