Files
mac_linuxgpu/scripts
geramyloveless 2b325d4752 tests: TTM VRAM-GTT moves through the GART windows on the CS fixture
The CS fixture's software GPU now checks every system-memory page it
touches against the live DMA mappings, as the DART would: an access
outside them is counted as a DART fault and fails like a GPU fault. Its
BAR can be narrower than VRAM (the iPad's covers 256 MiB), and its SDMA
engine can be held like the compute engine.

ttm_evict_check runs TTM moves through the unmodified upstream code with
a 64 MiB BAR over 256 MiB of VRAM: a BO beyond the BAR validated to GTT
and back, then evicted under VRAM pressure, each through
amdgpu_move_blit's GART transfer windows. It checks the contents and the
window PTEs SDMA uploaded: valid, system, snooped for cached pages,
writable, exactly the ttm_tt's DMA addresses, each inside a live mapping.
No GPU or DART fault occurs.

It then holds SDMA while a kernel BO moves: the move fails after TTM's
15 s wait with the same log lines as the iPad's failure, the BO stays in
VRAM, and the pages TTM released stay mapped until the engine catches up,
so its late copy faults nothing. CS_FIXTURE_NO_DMA_HOLD=1 runs the
negative control, in which that copy hits unmapped DMA addresses.
2026-10-03 10:38:03 -07:00
..