# Valve AMDGPU patches batch sparse memory ops to cut Proton game stuttering

> **Key takeaway:** Valve's Natalie Vock submitted AMDGPU kernel patches introducing a new VM update context and AMDGPU_GEM_VA2 ioctl to batch sparse memory binding operations, reducing CPU kernel-mode switching and GPU queue stalls that cause stuttering in Proton games.

**Published:** 2026-11-17T14:05:20+00:00 
**Source:** Phoronix Benchmarks &amp; Drivers 
**Category:** kernel-os 
**Canonical URL:** https://fosswire.org/news/valve-amdgpu-patches-batch-sparse-memory-ops-to-cut-proton-g.html 

## Summary
Natalie Vock of Valve's Linux graphics driver team has submitted a revised patch series for the AMDGPU kernel driver targeting stuttering reduction in Windows games running through Steam Play (Proton). The patches address a bottleneck where per-ioctl sparse memory binding operations force excessive CPU context switching and synchronize partially resident texture (PRT) mappings with graphics/compute submissions, causing queue stalls.

The solution introduces a 'VM update context' structure that accumulates pending mapping changes across multiple operations, then applies them atomically after validation. A new AMDGPU_GEM_VA2 ioctl enables batching many sparse binding updates in a single call. The patches are under review for potential inclusion in Linux 7.5, though no specific benchmark numbers were provided.

## How the VM update context reworks sparse binding
- **VM update context structure:** A new state container carries mappings freed during VM update operations across functions, enabling `amdgpu_vm_clear_freed` to clear only actually-freed mappings rather than all mappings unconditionally.
- **Explicit sync for unmap operations:** The context makes it possible to explicitly synchronize unmap operations independently, breaking the current requirement that PRT mappings sync to every other GPU submission.
- **Pending mapping batching:** Later patches expand the context to hold a set of pending mapping changes, validating each change before applying all modifications atomically if validation succeeds.
- **AMDGPU_GEM_VA2 ioctl:** A new kernel interface allows userspace to submit many sparse binding updates in a single system call, reducing transitions between user and kernel mode that currently consume significant CPU time.
- **Queue overlap restoration:** By decoupling sparse binding work on SDMA engines from gfx/compute queue synchronization, the patches restore the ability to overlap frame rendering with memory management operations that games expect.

## Why it matters
For Steam Deck and desktop Linux gaming, these patches address a growing pain point as newer Windows titles increasingly rely on sparse memory bindings for texture streaming and world geometry. The work also demonstrates Valve's continued upstream investment in kernel-level fixes rather than Proton workarounds, which benefits all AMDGPU users including those on RDNA-based desktop cards. Distribution maintainers and SteamOS developers will want to track whether this lands for Linux 7.5 or requires additional revision cycles.