Steam Deck OLED: permanent hang in ttm_global_swapout under GPU memory pressure, 7.2.8 TTM bulk_move fix missing in linux-neptune-72 7.2.7
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 46/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- c, linux
调研方向
Start by comparing ttm_bo_swapout_cb() in linux-neptune-72 7.2.7 with upstream commits fcfe64715b425262af1b36f498f9197f3537ceed and 1169fe8c11ca45e3f91d59a73eb271d0ca8a7fb0; the issue identifies the skipped bulk-move bookkeeping and provides disassembly of ttm.ko. Check which SteamOS kernel package includes the fix, then verify the reported hang under GPU memory pressure or ask the reporter to test a Beta or Preview image.
由索引模型根据 Issue 内容生成。
描述
Your system information
- Hardware: Steam Deck OLED (DMI product
Galileo, familySephiroth, BIOSF7G0114) - SteamOS 3.9.5 stable, BUILD_ID
20261023.100. No newer Beta or Preview image was offered inSettings > Systemafter the failure, so this is the newest kernel available to me. - Kernel
7.2.7-valve2-2-neptune-72-g31504582a073, packagelinux-neptune-72 7.2.7.valve2-2 - Mesa
26.1.2.221562.radeonsi_26.1.2-2.1, gamescope3.16.30.1-2 - Steam client
1794424036 - Opted into Steam client beta?: Yes (
steamdeck_publicbeta) - Opted into SteamOS beta?: No
- Have you checked for updates in Settings > System?: Yes
- Steam ID:
76561199163978993([U:1:1203713265]) - Kernel command line:
amd_iommu=off amdgpu.lockup_timeout=5000,10000,10000,5000 ttm.pages_min=2097152 amdgpu.sched_hw_submission=4 amdgpu.dcdebugmask=0x20000
Please describe your issue in as much detail as possible:
Long Cyberpunk 2077 sessions end in a permanent kernel lock convoy in the TTM swapout path. The game stops rendering (gpu_busy_percent 0, GPU clock 200 MHz), the process keeps burning kernel CPU, and the kernel prints INFO: task ... blocked for more than N seconds warnings that grow from 122 to 368 seconds and never resolve. There is no GPU reset, no Oops, no OOM kill and no thermal or power-limit message. The session never recovers and the game has to be killed. While it is stuck, the Steam client process also sits in __access_remote_vm against the game, which makes ps, pgrep -a and reading smaps_rollup hang on the device.
At the moment of the hang the device looked like this:
mem_info_gtt_used 8183 MB of 8192 MB
mem_info_vram_used 1001 MB of 1024 MB
game DRM/GEM total 9178 MB (from /proc/<pid>/fdinfo drm-total-*)
game RSS 3419 MB, game swap 1774 MB
MemAvailable 470 MB, zram swap 3533 MB used
gpu_busy_percent 0
pp_dpm_sclk 0: 200Mhz *
The game settings are already minimal: textures Low, FSR2 Performance at 1024x768, no ray tracing, no frame generation, FPS uncapped, display at 90 Hz with the gamescope limiter disabled. The device has 16 GB shared between CPU and GPU with a 1 GB VRAM carve-out and 8 GB GTT, so the game's GPU buffers alone take more than half of system RAM.
It happened twice:
- Boot ending 2026-11-12 01:13:
redDispatcher7blocked onvkd3d_queue:11818,khugepagedblocked in the same TTM path. - Boot ending 2026-11-12 22:00:
redDispatcher1/2/3blocked onvkd3d_queue:4281.
Kernel log from the second occurrence, full excerpt in the gist:
Nov 12 21:20:24 INFO: task redDispatcher1:4152 blocked for more than 122 seconds.
task:redDispatcher1 state:D pid:4152 tgid:4132 ppid:4003
Call Trace:
__mutex_lock.constprop.0+0x3dc/0x920
ttm_global_swapout+0x21/0xd0 [ttm]
ttm_tt_populate+0x91/0x160 [ttm]
ttm_bo_populate+0x4f/0xe0 [ttm]
ttm_bo_vm_fault_reserved+0x271/0x4a0 [ttm]
amdgpu_gem_fault+0x95/0x100 [amdgpu]
__handle_mm_fault+0x9d4/0x1110
INFO: task redDispatcher1:4152 is blocked on a mutex likely owned by task vkd3d_queue:4281.
task:vkd3d_queue state:S pid:4281 tgid:4132 ppid:4003
Call Trace:
__ww_mutex_lock.constprop.0+0x7d2/0xd10
__drm_exec_lock_obj+0x75/0x130 [drm_exec]
__ttm_bo_lru_cursor_next+0xfa/0x330 [ttm]
ttm_device_swapout+0x104/0x180 [ttm]
ttm_global_swapout+0x50/0xd0 [ttm]
ttm_tt_populate+0x91/0x160 [ttm]
ttm_bo_populate+0x4f/0xe0 [ttm]
ttm_bo_handle_move_mem+0x16f/0x180 [ttm]
ttm_bo_bounce_temp_buffer+0x9b/0xc0 [ttm]
ttm_bo_validate+0xd6/0x240 [ttm]
amdgpu_cs_bo_validate+0x1bb/0x2d0 [amdgpu]
amdgpu_vm_validate+0x312/0x470 [amdgpu]
amdgpu_cs_ioctl+0x1412/0x2140 [amdgpu]
This path matches the upstream TTM bulk_move regression from b2ed01e7ad3d ("drm/ttm: Fix ttm_bo_swapout() infinite LRU walk on swapout failure", v7.1+). That commit moved the bookkeeping in ttm_bo_swapout_cb() under if (!ret), but ttm_tt_swapout() returns the number of swapped pages on success and a negative error code on failure, so it never returns zero. The ttm_resource_del_bulk_move_unevictable() / ttm_resource_move_to_lru_tail() pair is therefore skipped on every successful swapout, a swapped-out resource stays inside its BO's bulk_move range while it is unevictable, and later freeing it or dropping it from the bulk_move through amdgpu_vm_bo_del() leaves a dangling endpoint in the LRU cursor.
Upstream fix: fcfe64715b425262af1b36f498f9197f3537ceed, public commit 1169fe8c11ca45e3f91d59a73eb271d0ca8a7fb0, in Linux 7.2.8 (2026-09-25) and 7.3-rc4, CVE-2026-98166. The 7.2.6 and 7.2.7 stable trees still carry the old condition. The 6.18 series does not contain b2ed01e7ad3d at all, which fits the fact that these hangs started after the SteamOS 3.9 kernel rebase.
ttm.ko in linux-neptune-72 7.2.7.valve2-2 still contains the unfixed branch. Disassembly of /usr/lib/modules/7.2.7-valve2-2-neptune-72-g31504582a073/kernel/drivers/gpu/drm/ttm/ttm.ko, immediately after call ttm_tt_swapout:
2cfb: call ttm_tt_swapout
2d00: cltq
2d02: test %rax,%rax
2d05: jne <error path> ; skips bookkeeping when ret != 0
2d0c: (spin_lock)
2d1c: call ttm_resource_del_bulk_move_unevictable
2d2b: call ttm_resource_move_to_lru_tail
Related public reports: amd-gfx "[REGRESSION] drm/ttm: NULL dereference in ttm_resource_add_bulk_move after OOM on Navi32", Ubuntu bug 2168554 ("any amdgpu system that swaps out GPU memory is exposed, APU or dGPU") and drm/amd issue 5387, which has APU reporters. Those are Oops cases on other hardware. On this APU the same defect shows up as a permanent lock convoy without an Oops.
Additional observation, probably a separate bug but part of the same user impact: after the hung game process was killed, the session did not recover. The last game frame stayed on screen, and at 22:47:43 gamescope aborted:
gamescope-session[1543]: gamescope: types/seat/wlr_seat_keyboard.c:309: wlr_seat_keyboard_notify_enter: Assertion `surface' failed.
systemd-coredump[97733]: Process 1543 (gamescope-wl) of user 1000 terminated abnormally with signal 6/ABRT
The device then showed a frozen image and needed a full power cycle. Filed separately with the coredump and stack traces: #3071.
Steps for reproducing this issue:
- Start Cyberpunk 2077 (AppID 1091500) through Proton 11.0 with textures Low, FSR2 Performance at 1024x768, no RT, no frame generation, uncapped FPS on a 90 Hz display with the limiter disabled.
- Play for roughly an hour while the game's GPU buffers grow.
- Watch
/sys/class/drm/card0/device/mem_info_gtt_usedreach about 8.2 GB of 8.2 GB andmem_info_vram_usedreach about 1 GB of 1 GB.MemAvailablefalls below 0.5 GB with several GB in zram swap. - Frame rate degrades from 60-90 FPS to 30 and then 20 in the same scene.
- The game freezes permanently.
journalctl -kprints the hung task reports above and the GPU stays idle at 200 MHz.
Request
Please backport fcfe647 / 1169fe8c11ca into linux-neptune-72, or tell me which linux-neptune-72 package first carries it. I can test a Beta or Preview image on this Deck and report whether the hang still reproduces, and I can build a patched ttm.ko out of tree for a direct before/after comparison if that helps.
Gist with the full journalctl -k -b excerpt around the hung task reports, lspci -v, lsb_release -a, package versions and journalctl -b -u earlyoom (no OOM kill): https://gist.github.com/basuev/25ef7c42979163726c4c59afa9a784c3
I have not uploaded a Steam system report yet. Tell me if you need one and I will create it from this device.
- 主要语言
- 没有语言数据
- 星标
- 2.7k
- 派生
- 89
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ValveSoftware/SteamOS 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
ValveSoftware/SteamOS#3037 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
ValveSoftware/SteamOS#2983 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
ValveSoftware/SteamOS#2927 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
ValveSoftware/SteamOS#2875 · 1 条评论 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair未关闭
难度 2/5 1-3 小时 新手友好度 80/100
ValveSoftware/SteamOS#2829 ·
查看 ValveSoftware/SteamOS 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
OpenPrinting/cups#1833 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing可能已有人在做 @chaitanya0305 今天认领。 未关闭bug P2
难度 2/5 1-3 小时 新手友好度 62/100
BaaRai/ARTEX#652 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug effort:S P3
难度 2/5 1-3 小时 新手友好度 62/100
nightscout/nocturne#4563 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复