Repository navigation
Description
Summary
The intro movie, loading screens and account picker all run at 7–10 fps on an RX 9070 XT, while the GPU is about 5% busy. Profiling shows that the frame rate is limited by the kernel cost of each command submission. In every DRM_IOCTL_AMDGPU_CS, amdgpu re-walks the page tables of every userptr BO in the submission. Those BOs are the title memory that TuxBox imports through OpenExistingHeapFromAddress* (vkd3d-proton maps that to VK_EXT_external_memory_host). At the intro the game's GTT (drm-total-gtt) is about 1.4 GiB, and each submission costs about 13 ms of CPU time in the kernel, so the queue thread can't submit faster than about 70 times per second. The cost grows linearly with the imported size: a standalone Vulkan program reproduces it at about 8.4 ms per GiB, and after a new game the in-game cost climbs to 56 ms per submission until the title's watchdog fires (tables below).
System
- TuxBox 106120c (2026-12-02), packaged build, offline
- RX 9070 XT (gfx1201), RADV from Mesa 26.3.1, kernel 7.3.5 (Fedora 45 based)
- GE-Proton through umu
- Ryzen 7 5800X3D, 32 GB RAM
Measurements (intro movie and loading screen, 2560x1440)
- Frame rate: presented frames fall from about 600 per 10 s during startup to 72–84 per 10 s once the intro starts. The loading screen after it runs at the same rate.
- Thread load (
top -H): onevkd3d_queuethread at about 99% and one title thread at about 93%. The two Bink decode threads are at about 4% each. GPU busy is about 5%. - Time split (
/proc/<tid>/stat, utime vs stime):vkd3d_queue: about 0% user, about 98% kernel.- Title thread: about 64% user, 36% kernel.
- Page faults: about 500/s on the queue thread, about 3/s on the title thread, so faults are not the cost.
perf record -g, 10 s, cpu-clock, both threads (inclusive shares of thevkd3d_queuethread's samples):~100% ioctl -> amdgpu_cs_ioctl (90% under thunk64_vkQueueSubmit2, the rest has unresolved user frames) ~94% amdgpu_cs_parser_bos ~90% amdgpu_ttm_tt_get_user_pages -> amdgpu_hmm_range_get_pages -> hmm_range_fault self time: hmm_vma_handle_pte 43%, vm_normal_page 26%, hmm_vma_walk_pmd 12%strace -T -e ioctlon the queue thread, 10 s:- 685
DRM_IOCTL_AMDGPU_CScalls (about 68 per second, about 9 per frame). - Each call: median 13.6 ms, p10 13.4 ms, p90 15.3 ms, max 19.5 ms.
- Total: 9.61 s of the 10 s inside CS ioctls. The other ioctls (syncobj waits, GEM mmap) are microseconds.
- 685
- Imported size: the DRM client's
drm-total-gttis about 1.4 GiB (TuxBox's ledger reportstitle pages 7131 MiB, so only part of the title memory is imported). - No huge pages: the process has
AnonHugePages: 0 kB, and THP is set tomadvise. Every page costs a PTE-level walk. - The title thread is mostly waiting: its samples are dominated by a yield loop (
NtYieldExecution→sched_yield, plusgetrusage) in title code. It appears to be waiting on GPU work that is queued behind the slow submissions.
Why this happens
Measured: the walk happens inside every CS (profile above), and its cost scales with the imported size (test below). My reading of the kernel and RADV, not verified in their source: amdgpu_cs_parser_bos calls amdgpu_ttm_tt_get_user_pages for every userptr BO in the submission's BO list, on every CS. It does this whether or not the range was invalidated. RADV appears to put every imported (userptr) allocation into every submission's BO list; the standalone test shows the cost even for an empty command buffer, with or without bufferDeviceAddress. The cost therefore grows with the total size of imported host memory times the number of submissions, and doesn't depend on what is drawn.
The UserptrRanges comment in runtime/d3d12/src/device/placement/lazy.rs already notes that amdgpu HMM validation rejects a CS when any page of a bound userptr BO is inaccessible. This report is about the time that validation takes.
Standalone reproduction (no TuxBox, no game)
A small native Vulkan program (about 110 lines of C, below) reproduces the problem without the game:
- It imports anonymous, resident memory through
VK_EXT_external_memory_hostin 256 MiB chunks. - It then times 100 submit-and-wait cycles of an empty command buffer.
- Same machine, RADV from Mesa 26.3.1, kernel 7.3.5.
4 KiB pages (MADV_NOHUGEPAGE), median per submission:
| Imported | Submit + wait | Kernel CPU per submit |
|---|---|---|
| 0 | 0.04 ms | 0.02 ms |
| 0.25 GiB | 2.2 ms | 2.1 ms |
| 1 GiB | 8.6 ms | 8.7 ms |
| 2 GiB | 16.9 ms | 16.8 ms |
| 4 GiB | 33.7 ms | 33.7 ms |
| 8 GiB | 67.7 ms | — |
- The cost grows in a straight line: about 8.4 ms per GiB imported, about 33 ns per 4 KiB page, on every submission. The empty command buffer doesn't reference that memory at all.
- Turning off
bufferDeviceAddresschanges nothing (1 GiB: 8.5 ms, 4 GiB: 33.7 ms). RADV puts every imported allocation into every submission either way. - 2 MiB transparent huge pages (
MADV_HUGEPAGE) cut the cost sharply: 1 GiB goes from 8.6 to 0.53 ms, and 4 GiB to 12.4 ms. At 4 GiB probably only part of the memory got huge pages, because RAM was fragmented with the game running at the same time.
The game's ~14 ms per submission therefore matches roughly 1.6 GiB of 4 KiB-page memory being imported through userptr at that point, out of the 7 GiB of title pages. Not all title pages seem to be imported.
userptr_submit.c
// Measures how vkQueueSubmit cost grows with the amount of host memory imported
// through VK_EXT_external_memory_host (amdgpu userptr BOs on RADV).
//
// For each size it imports anonymous memory in fixed-size chunks, keeps it
// resident, then submits an empty command buffer N times and reports the time
// per submit+wait and the kernel CPU time per submit.
//
// usage: userptr_submit [--no-bda] [--chunk-mib M] [--submits N] SIZE_GIB...
// --no-bda don't enable bufferDeviceAddress (vkd3d-proton enables it; on
// RADV that puts every allocation into every submission)
// --thp back the imported memory with 2 MiB transparent huge pages
#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <time.h>
#include <vulkan/vulkan.h>
#define CK(x) do { VkResult r_ = (x); if (r_ != VK_SUCCESS) { fprintf(stderr, "%s:%d %s = %d\n", __FILE__, __LINE__, #x, r_); exit(1); } } while (0)
static double now(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec + t.tv_nsec / 1e9; }
static void cpu(double *u, double *s) {
struct rusage r; getrusage(RUSAGE_THREAD, &r);
*u = r.ru_utime.tv_sec + r.ru_utime.tv_usec / 1e6;
*s = r.ru_stime.tv_sec + r.ru_stime.tv_usec / 1e6;
}
static int cmp(const void *a, const void *b) { double x = *(const double *)a, y = *(const double *)b; return (x > y) - (x < y); }
int main(int argc, char **argv) {
int bda = 1, thp = 0, submits = 200; size_t chunk_mib = 256;
int first = 1;
for (; first < argc && argv[first][0] == '-'; first++) {
if (!strcmp(argv[first], "--no-bda")) bda = 0;
else if (!strcmp(argv[first], "--thp")) thp = 1;
else if (!strcmp(argv[first], "--chunk-mib") && first + 1 < argc) chunk_mib = strtoul(argv[++first], 0, 10);
else if (!strcmp(argv[first], "--submits") && first + 1 < argc) submits = atoi(argv[++first]);
else { fprintf(stderr, "unknown option %s\n", argv[first]); return 2; }
}
if (first >= argc) { fprintf(stderr, "usage: %s [--no-bda] [--chunk-mib M] [--submits N] SIZE_GIB...\n", argv[0]); return 2; }
VkApplicationInfo app = { VK_STRUCTURE_TYPE_APPLICATION_INFO, .apiVersion = VK_API_VERSION_1_2 };
VkInstanceCreateInfo ici = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, .pApplicationInfo = &app };
VkInstance inst; CK(vkCreateInstance(&ici, 0, &inst));
uint32_t n = 1; VkPhysicalDevice pd; vkEnumeratePhysicalDevices(inst, &n, &pd);
if (!n) { fprintf(stderr, "no Vulkan device\n"); return 1; }
VkPhysicalDeviceExternalMemoryHostPropertiesEXT hostp = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT };
VkPhysicalDeviceVulkan12Properties p12 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES, .pNext = &hostp };
VkPhysicalDeviceProperties2 props = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2, .pNext = &p12 };
vkGetPhysicalDeviceProperties2(pd, &props);
printf("device: %s, driver: %s %s\n", props.properties.deviceName, p12.driverName, p12.driverInfo);
printf("huge pages: %s, bufferDeviceAddress: %s, chunk: %zu MiB, submits per size: %d\n", thp ? "on" : "off", bda ? "on" : "off", chunk_mib, submits);
float prio = 1;
VkDeviceQueueCreateInfo qci = { VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, .queueFamilyIndex = 0, .queueCount = 1, .pQueuePriorities = &prio };
VkPhysicalDeviceVulkan12Features f12 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, .bufferDeviceAddress = bda };
const char *ext[] = { "VK_EXT_external_memory_host" };
VkDeviceCreateInfo dci = { VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, .pNext = &f12, .queueCreateInfoCount = 1, .pQueueCreateInfos = &qci, .enabledExtensionCount = 1, .ppEnabledExtensionNames = ext };
VkDevice dev; CK(vkCreateDevice(pd, &dci, 0, &dev));
VkQueue q; vkGetDeviceQueue(dev, 0, 0, &q);
PFN_vkGetMemoryHostPointerPropertiesEXT getHostProps = (PFN_vkGetMemoryHostPointerPropertiesEXT)vkGetDeviceProcAddr(dev, "vkGetMemoryHostPointerPropertiesEXT");
VkCommandPoolCreateInfo pci = { VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, .queueFamilyIndex = 0 };
VkCommandPool pool; CK(vkCreateCommandPool(dev, &pci, 0, &pool));
VkCommandBufferAllocateInfo cai = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, .commandPool = pool, .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, .commandBufferCount = 1 };
VkCommandBuffer cb; CK(vkAllocateCommandBuffers(dev, &cai, &cb));
VkCommandBufferBeginInfo bi = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO };
CK(vkBeginCommandBuffer(cb, &bi)); CK(vkEndCommandBuffer(cb));
VkFenceCreateInfo fci = { VK_STRUCTURE_TYPE_FENCE_CREATE_INFO };
VkFence fence; CK(vkCreateFence(dev, &fci, 0, &fence));
size_t chunk = chunk_mib << 20, imported = 0;
VkDeviceMemory *mems = 0; size_t nmem = 0;
double *t = malloc(sizeof(double) * submits);
printf("\n%9s %8s %10s %10s %10s %14s\n", "imported", "chunks", "median_ms", "p10_ms", "p90_ms", "kernel_ms/sub");
for (int a = first; a < argc; a++) {
size_t want = (size_t)(atof(argv[a]) * (1 << 30));
while (imported + chunk <= want) {
void *p = mmap(0, chunk, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (p == MAP_FAILED) { perror("mmap"); return 1; }
madvise(p, chunk, thp ? MADV_HUGEPAGE : MADV_NOHUGEPAGE); // default 4 KiB pages, like the imported title memory
memset(p, 1, chunk); // resident, like the title memory
VkMemoryHostPointerPropertiesEXT hp = { VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT };
CK(getHostProps(dev, VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT, p, &hp));
VkMemoryAllocateFlagsInfo flags = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO, .flags = bda ? VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT : 0 };
VkImportMemoryHostPointerInfoEXT imp = { VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT, .pNext = &flags, .handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT, .pHostPointer = p };
VkMemoryAllocateInfo mai = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .pNext = &imp, .allocationSize = chunk, .memoryTypeIndex = (uint32_t)__builtin_ctz(hp.memoryTypeBits) };
mems = realloc(mems, sizeof(*mems) * (nmem + 1));
CK(vkAllocateMemory(dev, &mai, 0, &mems[nmem++]));
imported += chunk;
}
VkSubmitInfo si = { VK_STRUCTURE_TYPE_SUBMIT_INFO, .commandBufferCount = 1, .pCommandBuffers = &cb };
for (int i = 0; i < 5; i++) { CK(vkQueueSubmit(q, 1, &si, fence)); CK(vkWaitForFences(dev, 1, &fence, 1, UINT64_MAX)); CK(vkResetFences(dev, 1, &fence)); }
double u0, s0, u1, s1; cpu(&u0, &s0);
for (int i = 0; i < submits; i++) {
double t0 = now();
CK(vkQueueSubmit(q, 1, &si, fence));
CK(vkWaitForFences(dev, 1, &fence, 1, UINT64_MAX));
t[i] = (now() - t0) * 1000;
CK(vkResetFences(dev, 1, &fence));
}
cpu(&u1, &s1);
qsort(t, submits, sizeof(double), cmp);
printf("%7.2f GiB %8zu %10.3f %10.3f %10.3f %14.3f\n", imported / (double)(1 << 30), nmem,
t[submits / 2], t[submits / 10], t[submits * 9 / 10], (s1 - s0) * 1000 / submits);
fflush(stdout);
}
return 0;
}In-game check: at the loading screen, the game's DRM client reports drm-total-gtt 1.38 GiB in /proc/<pid>/fdinfo. At 8.4 ms per GiB that predicts about 11.6 ms per submission. The measurement was 12.6–13.6 ms.
Related: #666
#666 (duplicate GPU page cluster imports since 106120c, GTT growing to 18–27 GiB until RADV loses the device) is the same mechanism made worse:
- Every one of those duplicate userptr BOs is also walked on every submission.
- At 8.4 ms per GiB (standalone test), 5 GiB of imports means about 40 ms per CS, and 9.4 GiB about 80 ms. With about 9 submissions per frame, the frame rate collapses well before the device is lost.
This report is about the base cost that remains without duplicates: about 1.4 GiB of imports already costs about 12 ms per submission. That is the 7–10 fps intro and loading screen on 106120c. #667 stops the runaway, but the imported size still grows during play, and the cost with it (table below).
Measured on this card, starting a new game, sampled every minute (drm-total-gtt from fdinfo, median DRM_IOCTL_AMDGPU_CS time over 3 s, presented frames per 10 s):
| Build | GTT | CS per second | CS median | Frames per 10 s |
|---|---|---|---|---|
| 106120c | 1.4 GiB (intro) | 69 | 13.2 ms | 72 |
| 106120c | 1.7 GiB | 43 | 18.1 ms | 50 |
| 106120c | 19.2 GiB | — | — | device lost (Not enough memory for command submission), exit 3 at 750 s |
| #667 (2898c90) | 1.4 GiB (intro) | 74 | 12.6 ms | 72 |
| #667 | 1.5 GiB | 60 | 14.4 ms | 58 |
| #667 | 2.9 GiB | 17 | 26.3 ms | 17 |
| #667 | 3.0 GiB | 24 | 38.2 ms | 24 |
| #667 | 4.1 GiB | 18 | 52.0 ms | 10 |
| #667 | 4.3 GiB | 9 | 56.2 ms | 14 |
| #667 | — | — | — | watchdog exe+0x23CF683, exit 5 at 938 s |
- d3d12: cache GPU tile spans apart from single pages (#666) #667 fixes the runaway on this card: GTT topped out at 4.3 GiB instead of 19 GiB, with no device loss.
- The submission cost still follows GTT, rising from 13 ms to 56 ms. The game fell to 1–1.7 fps and then hit the title's 30 s main-thread watchdog (ProjectScarlett: 30 s main-thread watchdog (exe+0x23CF683) at the story intro from cross-queue label-wait deadlocks #215's address).
- That watchdog may simply be how frames this slow end. The d3d12: since 106120ca, a full piece cache re-imports the same GPU page cluster windows until RADV loses the device (RX 6700 XT) #666 author also saw it after their local fix.
Checked against the latest main (106120c) and #667 on 2026-12-03.
Ideas (for the maintainers to judge)
- Import only the ranges the GPU actually reads, and drop the imports when they're no longer needed, instead of whole title regions.
- Keep GPU-only resources in device memory and copy into them, instead of aliasing title pages through userptr.
- Submit fewer, larger batches: the cost is per CS, so 9 submissions per frame means 9 full walks.
- Back the imported ranges with 2 MiB huge pages. This looks like the most promising fix: in the standalone test it made submissions about 16 times cheaper. But TuxBox has to arrange it itself, because changing the system setting doesn't help as things are. With THP set to
always, only about 1 GiB of the 6 GiB resident memory became huge pages. The median CS time went from 13.6 to 12.6 ms (737 submissions in 10 s), and the intro stayed at 74–75 frames per 10 s. The imported title ranges apparently stay at 4 KiB pages, perhaps because of their alignment or per-page protection changes. Huge-page backing that TuxBox arranges itself (2 MiB-aligned reservations, no per-page protection changes) might do better.
Activity
JeffreyBytes commentedon Dec 3, 2026
Same thing here on an RX 6700 XT (RDNA 2, 12 GB), RADV from Mesa 26.3.1, GE-Proton11-15, 32 GB RAM. I spent tonight bisecting it, so here's where the AMD side broke.
To keep shader prep out of the way I ran each older commit's providers with today's translator and DXC helper (
TUXBOX_XSHADER/TUXBOX_PERSISTENT_DXCpointed at the current build). The only translator change between these commits and main is #534, so every run used the same runtime shader cache and only the providers differ.6d4f1cd7(parent of9c3cf86f)PERMISSION_FAULTS 0x3), which I also see on #667 builds, so I think that one is separate.9c3cf86fE_NOTIMPL).a789a4e4(right before106120ca)int3atexe+0x5149AEC(exit 3) at 881 s.106120ca+ #667exe+0x23CF683watchdog (exit 5), 150–300 s after the account picker.So
6d4f1cd7is the last commit before the AMD regression.9c3cf86fbreaks it (green screens), and106120cafixes the refusals by moving RADV to private backing, which turns it into the submission cost described here.What I measured on
106120ca+ #667 lines up with the numbers above:vkd3d_queuethread is 85–90% kernel time for most of the run. perf has nearly all of it inamdgpu_cs_ioctl, mostlyhmm_range_faultandamdgpu_vm_bo_update.drm-total-gttpeaks at 4.3–4.5 GiB, vs ~3.5 GiB on6d4f1cd7.dma_fence_wait_any_timeout,mmu_interval_read_begin). The queues are stuck behind a texture publication fence whose reader signal sits in avkQueueSubmit2that hasn't returned.Things that didn't help: THP
never(page migration down about two-thirds, still exit 5 at 546 s) andTUXBOX_LAZY_PUBLICATION=0(exit 5 at 372 s). One run each.JeffreyBytes commentedon Dec 3, 2026
@gtb-sbe I timed the view-creation wait you described in #533 (comment), and it's large. Posting here since it's the same submission cost.
RX 6700 XT, RADV / Mesa 26.3.1, GE-Proton11-15,
106120ca+ #667 with a temporary trace around the shared init queue indevice/allocation.rs(with_init_transition): per kind, the call count, the time waiting for the queue's mutex, the time inWaitForSingleObjecton the fence, and the slowest call. One run, new game, from the account picker through the load (about 250 s) until it ended in the gfx ring page fault (TCPPERMISSION_FAULTS 0x3) that I also see on other #667 runs.initialize_gpu_tilesreset_gpu_tilesinitialize_gpu_tilescall, so a view-creating thread held the title up.I also tried cutting the number of imports. An experiment that imports the committed run of pages around a page, inside its 2 MiB cluster, instead of the single page, took the live single-page imports from 10–14k down to about 400. But the cluster windows grew to 3.8 GiB, GTT peaked at 4.7 GiB (4.3–4.5 GiB without it), and it still ended in the
exe+0x23CF683watchdog (exit 5) with a 49 s frame. So cutting the import count alone doesn't fix it, at least not without cutting the imported bytes too. One run.So I think your suggestion is the bigger lever: if the creating thread didn't wait on the CPU (the queues that use the buffer wait on the fence on the GPU, or several views' tile initialization goes into one submission), most of those 114 s would come off the title's threads whatever each submission costs.
gtb-sbe commentedon Dec 3, 2026
@JeffreyBytes thanks for timing it, 113.5 s of fence waits in ~250 s is more than I expected.
I read through the paths on
106120ca. The title-thread waits areinitialize_gpu_tilesfromregister_buffer(buffer creation in a GPU reservation) andreset_gpu_tilesfromrefresh_cpu_pages, which runs at the start of everyExecuteCommandLists. Both go throughInitTransition::wait_for_queue, so each call is oneSignalplus a CPU wait. With #669 eachSignalis a full CS that re-walks the userptr BOs.What I have in mind:
initialize_gpu_tiles/reset_gpu_tilesonly record theUpdateTileMappingsand mark the init queue dirty, without aSignalor a wait.Signalonce, thenqueue.Wait(init_fence, value)on the GPU. Many view creations between two submissions then cost one CS instead of one each, which I think matters more than where the wait happens.apply(initial state transitions) keeps its CPU wait, since it reuses the allocator.@brcly does this fit with the XMem/D3D12 rework you're doing, or is that path changing anyway? If it fits, I'd write it with a Lanes scenario (buffer created on one thread, written on one queue and read on another with no host wait in between) and measure it on my RX 9060 XT before opening a PR.
JeffreyBytes commentedon Dec 3, 2026
@gtb-sbe Batching to one CS per guest submission makes sense to me. I went through the provider's own queues on
106120cafor your open question (read only, nothing built yet), and found a few places outside the device init queue that rely on the CPU wait today:commands/page_mapping/retirement.rs:48) keeps a privateMutex::new(None)slot, runsbind_published→reset_native_gpu_tiles(buffers.rs:395) on it, and then signals the job fence to 2 from the CPU (retirement.rs:70). The guest queue GPU-waits on that 2 (buffers.rs:858). Without the CPU wait, the guest queue would be released before the binds finish, and the guest-submission flush would flush the device init queue, not this one. The worker could signal 2 on the GPU from its own init queue after the binds, or keep its wait.publishandpublish_textureson the fast path (buffers.rs:353and:844) pass&Mutex::new(None), so they create an init queue and drop it on return. A deferred mapping there would never be flushed.refresh_cpu_pages(buffers.rs:779) resets tiles on the init queue, thengpu_updatesandbind_livebind the same buffers on the guest queue. Deferred, the two binds on one resource are unordered, so it needs the flush beforebind_live.present.rs:259callsgpu_mappings.refresh()and then gathers from page-mapped backing on the guest queue inplacement::submit, so it needs the same flush.In
execute_locked,refresh()(submit.rs:226) is itself an init call, so the flush would go after it and beforeplacement::submit(:372): the gathers and scatters inqueue_use.rsand the memory-wait split lists run after that and read GPU-tile buffers.The side queues look clear: the upload/residency transfer queue, the "TuxBox texture readback" copier, the lazy-publication copy queues, the BLAS builder and the detile-table upload only touch their own memory or provider-committed buffers.
I'm happy to test your branch on the RX 6700 XT (RDNA 2) with the same init-queue timing trace, so we'd have before and after numbers from two cards: on
106120ca+ #667 it's 113.5 s of fence waits in about 250 s of loading.