Valve's new AMDGPU patches target the stutter some Windows games get under Proton on Linux
Natalie Vock of Valve's Linux graphics team posted a reworked set of AMD kernel driver patches on 17 November, aimed at games that lean hard on sparse memory bindings. No benchmark figures yet.
AI-drafted from 3 sources. This story was written with AI from the outside reporting listed under Sources, and checked by automated tools before it went up. The originals have the full detail.
Some newer Windows games hitch and stutter when they run on Linux through Steam Play, and new patches from a Valve developer go after one cause in AMD's kernel graphics driver. On 17 November Natalie Vock, who works on Valve's Linux graphics driver team, sent out a new version of a patch series for the AMDGPU driver that she says brings "significant reductions in stuttering" in the games affected, Phoronix reports.
What goes wrong now
The patches are about sparse bindings, a way for a game to map pieces of graphics memory in and out as it needs them rather than all at once. According to Vock's notes on the series, quoted by Phoronix, many games now use sparse bindings heavily, and they expect that mapping work to run on the GPU's copy engine at the same time as they draw the frame on the graphics and compute queues.
The driver does not let that happen. It currently syncs those mapping changes against every other piece of work sent to the GPU, so when a game makes a lot of them, the frame it is trying to draw can stall for "quite a long while", which shows up as visible stutters and hitches. There is a CPU cost too: each binding change needs its own call into the kernel, so the processor spends time hopping between the game and the kernel to apply the changes one by one.
The fix
The series adds what Vock calls a "VM update context", which keeps track of state across the driver's memory update functions. That lets the driver clear only the mappings an update actually freed, which it needs before it can sync that one change explicitly instead of against everything. Later patches have the context hold a set of pending changes, so a new call, AMDGPU_GEM_VA2, can change many mappings at once: every change is checked first, then all of them are applied together if they pass.
Phoronix notes that the patches give no figures for how much difference this makes in any particular game under Proton. It also follows earlier work by Vock on how the driver manages video memory on graphics cards that do not have much of it.
When it could land
This is a patch series on the kernel mailing list, not a finished feature, and it still has to get through review. Phoronix says it could make Linux 7.5, or it may need more time. Until it is merged into the mainline kernel and reaches a distribution's kernel, players will not see any change.
Sources
- New AMDGPU Linux Patches From Valve Aim To Reduce Stuttering With Steam Play Games (Phoronix)
- Discussion: New AMDGPU Linux Patches From Valve Aim To Reduce Stuttering With Steam Play Games (Reddit)
- Discussion: New AMDGPU Linux Patches From Valve Aim To Reduce Stuttering With Steam Play Games (Reddit)