Files
mac_linuxgpu/scripts
geramyloveless 4897d775de cs self-test: move the VRAM buffer to GTT and back through TTM
The self-test (selector 82, drm-selftest.py) copied VRAM into GTT only
through the client's own GPUVM, never through the path an eviction takes.
Two steps now move its VRAM buffer the way a client's submission moves
it: AMDGPU_GEM_OP SET_PLACEMENT, then an SDMA copy of the buffer whose
AMDGPU_CS validates it there. Into GTT, TTM's move goes through a GART
transfer window as an eviction's does (SDMA uploads the window PTEs,
flushes VMID 0, copies); the copy made afterwards must still hold the
buffer's known contents. The move back runs the source window. Each wait
is bounded: a move that never completes fails the step with -ETIME and
parks the test process as before.

The result is version 2 (240 bytes): the two steps, the bytes TTM moved
during each, their times and the words read back. drm-selftest.py reads
versions 1 and 2 and prints the TTM line; the dext logs the new fields.
2026-10-03 10:38:03 -07:00
..