The session cycle test's probe stops in IP discovery, before upstream
takes the DMA mappings, pages and threads the cycle checks watch. With
the card's IP discovery binary and VBIOS it gets further:
- test_session_cycles --deep: upstream reads the discovery binary as a
file (amdgpu_discovery=2) and the VBIOS through SMUIO's ROM_INDEX and
ROM_DATA registers, as on the card ("Fetched VBIOS from ROM"); VRAM
(BAR0) and the doorbells (BAR2) map; registers keep what was written
to them. Each cycle must read the whole VBIOS, and every resource must
return to its baseline as in the shallow mode.
- scripts/capture-r9700-fixtures.py records the inputs from a running
driver, read-only, through upstream's own exports: the ip_discovery
sysfs tree and AMDGPU_INFO_DEV_INFO through the observer,
mem_info_vram_total, AMDGPU_INFO_VBIOS on the render node through
libmlg_drm (only after the observer reads show the driver running),
and the BAR sizes from the I/O Registry. The driver exports the raw
discovery binary only in debugfs, so scripts/ip_discovery_builder.py
rebuilds it from the sysfs export (no variant or sub-revision, no
harvest/VCN/MALL/NPS table, gc_info v1.0 from DEV_INFO).
- The capture goes to tests/fixtures/local/r9700/, which git ignores:
the VBIOS is AMD's copyrighted image and the repository is public.
tests/fixtures/local/README.md says how to capture.
- scripts/test-session-cycles.sh runs the deep cycles when a capture is
present and prints SKIP otherwise (as on CI). On every run it also
self-checks the deep harness with a synthetic RDNA4-shaped table and
a ROM without ATOM tables: upstream must find SMUIO, read the whole
ROM, refuse it and unwind the same way every cycle.