[3.10.0 Preview] ROCm/KFD process hangs forever in amdgpu_vm_validate on RX 9070 XT (regression from 3.9.6, kernel 7.2.7)

未关闭
#3,091 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux

调研方向

Compare SteamOS 3.9.6 (kernel 7.2.7) with 3.10.0 Preview (kernel 7.3.1) and begin with the reported amdgpu_vm_validate → amdgpu_amdkfd_gpuvm_map_memory_to_gpu stack in the AMDGPU/KFD kernel code. Reproduce with the listed RX 9070 XT, ROCm workload, and rootless Podman device setup; confirm the process blocks during its first GPU memory mapping and identify the regression before proposing a fix.

由索引模型根据 Issue 内容生成。

描述

Your system information
  • Steam client version: not relevant (kernel-level issue, reproduced over SSH without Steam involved)
  • SteamOS version: 3.10.0 Preview, build 20261113.101, kernel 7.3.1-valve2-1-neptune-73
  • Opted into Steam client beta?: not relevant
  • Opted into SteamOS beta?: Yes (preview channel)
  • Have you checked for updates in Settings > System?: Yes

Hardware (not a Steam Deck):

  • GPU: Radeon RX 9070 XT 16 GB (1002:7550), plus iGPU Radeon 610M (1002:164e)
  • CPU / board: Ryzen 9 8945HX, Minisforum BD895i SE, 92 GB RAM
Please describe your issue in as much detail as possible:

Regression between SteamOS 3.9.6 and 3.10.0 Preview:

  • Works: SteamOS 3.9.6 (beta, build 20261112.101), kernel 7.2.7-valve2-2-neptune-72
  • Broken: SteamOS 3.10.0 Preview (build 20261113.101), kernel 7.3.1-valve2-1-neptune-73
  • Same container image, model and settings on both; only the OS update changed.

Expected: a ROCm compute workload in a container starts and uses the GPU, as on 3.9.6.

Actual: the ROCm process blocks forever in the kernel on its first GPU memory mapping. It sits in state D (uninterruptible) in amdgpu_vm_validate, uses 0% CPU and cannot be killed. Because of it the container never stops and a normal shutdown or reboot never finishes; only a hard power reset helps. Reproduced on 3 of 3 starts. Graphics (desktop, HDMI 2.1 4K120 with VRR available) keep working at the same time, and there are no amdgpu errors or GPU resets in the kernel log before the hang.

Kernel log, hung task report (partial; the full trace was lost to the hard resets, I can capture it again if needed):

INFO: task strata:9308 blocked for more than 122 seconds.
 ? __pfx_amdgpu_amdkfd_validate_vm_bo+0x10/0x10 [amdgpu]
 amdgpu_vm_validate+0x297/0x470 [amdgpu]
 amdgpu_amdkfd_gpuvm_map_memory_to_gpu+0x21b/0x420 [amdgpu]
 kfd_ioctl_map_memory_to_gpu+0xe6/0x2f0 [amdgpu]
 kfd_ioctl+0x2ea/0x5c0 [amdgpu]

Ruled out: the iGPU. With ROCR_VISIBLE_DEVICES=0 (RX 9070 XT only) the process hangs in the same place.

Steps for reproducing this issue:
  1. On SteamOS 3.10.0 Preview with an RX 9070 XT, run a ROCm/HIP workload in rootless Podman with --device /dev/kfd --device /dev/dri. Here: image ghcr.io/niko1221/strata:0.2.13-rocm-gfx120x (an LLM inference engine built on ROCm).
  2. Start the container. The engine process hangs within the first seconds, before loading any model data (about 0.9 GB of VRAM in use).
  3. Check ps: the process is in state D waiting in amdgpu_vm_validate; after about 2 minutes the kernel logs the hung task report above. Stopping the container or shutting down then hangs as well.
主要语言
没有语言数据
星标
2.7k
派生
89
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/SteamOS 的其他 Issue

查看 ValveSoftware/SteamOS 的全部 Issue

相似的 Issue

更多 Operating Systems Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。