Two workarounds I ended up with on a GeForce RTX 3050 6 GB Laptop GPU running the open kernel modules 615.71.09, under Proton 11.0-100 with DXVK. Both are temporary mitigations, not fixes: the underlying behaviour is still there, they just stop it from being hit.
I worked these out with the assistance of Claude (Anthropic). The testing, the logs and the measurements are from my own machine.
1. Xid 109 CTX SWITCH TIMEOUT while shaders precache
Symptom is a burst of
NVRM: nvAssertFailedNoLog: Assertion failed: vaddr < (baseVirtAddr + virtSize) @ dma.c:159
followed, anywhere from seconds to a few minutes later, by
NVRM: Xid (PCI:…): 109, pid=…, name=<game>.exe, Ch …, … CTX SWITCH TIMEOUT
The GPU itself survives; only the game loses its context.
Workaround:
dxvk.enableGraphicsPipelineLibrary = True
As Steam launch options:
DXVK_CONFIG="dxvk.enableGraphicsPipelineLibrary=True" %command%
or a dxvk.conf next to the executable. Lutris, Heroic and Bottles take the same DXVK_CONFIG environment variable.
With the default Auto, DXVK already uses Graphics Pipeline Library but also compiles an optimised monolithic variant of every pipeline in the background. Skipping those variants is what avoids the failure here. The cost is that linked pipelines lose cross-stage optimisation; I did not measure the fps impact. It does not apply to vkd3d-proton or to native Vulkan titles, which have no equivalent switch.
To confirm the option was actually picked up:
DXVK_LOG_LEVEL=info DXVK_CONFIG="dxvk.enableGraphicsPipelineLibrary=True" %command%
and look for info: Found config env: dxvk.enableGraphicsPipelineLibrary=True in the log.
2. In-game GPU temperature reads 0 °C
Cause: Proton ships no nvml.dll, so NvAPI_GPU_GetThermalSettings has nothing to query and the game displays 0 °C.
Workaround: build wine-nvml and place the DLL in the prefix at $STEAM_COMPAT_DATA_PATH/pfx/drive_c/windows/system32/nvml.dll. I do it from a small wrapper script:
SRC="$HOME/.local/share/wine-nvml/usr/lib64/wine/x86_64-windows/nvml.dll"
PFX="$STEAM_COMPAT_DATA_PATH/pfx/drive_c/windows/system32"
Launch options, combined with the first workaround:
WINEDLLPATH=$HOME/.local/share/wine-nvml/usr/lib64/wine DXVK_CONFIG="dxvk.enableGraphicsPipelineLibrary=True" ~/.local/bin/ow-pre %command%
Verify with grep -i thermal ~/steam-<appid>.log; you want to see NvAPI_GPU_GetThermalSettings: OK.
Full write-up, with the exact commands and sanitised logs: Avoiding Xid 109 on NVIDIA under Linux without rebuilding the driver — Xeese Xariot