[Issue]: amdgpu-dkms ships invalid udev rule: GROUP=="video"

未关闭 适合新手
#244 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
linux
领域
devops

调研方向

首先找到安装/etc/udev/rules.d/70-amdgpu.rules的打包源,并检查KERNEL=="kfd"规则。报告指出了无效的GROUP运算符,并给出了修正后的赋值;检查源文件是否与已安装的文件一致。完成标准是打包后的规则采用报告中给出的修正形式,且不再产生所述的udev错误。

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

描述

Problem Description

OS:
NAME="Ubuntu"
VERSION="26.04.1 LTS (Resolute Raccoon)"
CPU:
model name : AMD Ryzen 9 5950X 16-Core Processor
GPU:
Name: gfx1010
Marketing Name: AMD Radeon RX 5700
Name: amdgcn-amd-amdhsa--gfx1010:xnack-
Name: amdgcn-amd-amdhsa--gfx10-1-generic:xnack-

Package: amdgpu-dkms 6.16.13.30300400
File: /etc/udev/rules.d/70-amdgpu.rules
Incorrect: KERNEL=="kfd", GROUP=="video", MODE="0660"
Correct: KERNEL=="kfd", GROUP="video", MODE="0660"
Error: Invalid operator for GROUP

RELATED:
https://askubuntu.com/questions/1315436/new-gpu-amd-kernel-driver-issues-with-kfd-rules
https://unix.stackexchange.com/questions/626002/etc-udev-rules-d-70-amdgpu-rules1-invalid-operator-for-group-found-in-error-l

MORE INFO :
=== OS ===
PRETTY_NAME="Ubuntu 26.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION="26.04.1 LTS (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=resolute
LOGO=ubuntu-logo
Linux 7.0.0-43-generic #43-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 23 13:25:25 UTC 2026 x86_64 GNU/Linux

=== GPU ===
03:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 xHCI Compliant Host Controller [1022:43d5] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:1142]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
03:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller [1022:43c8] (rev 01)

28:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c4)
Subsystem: Sapphire Technology Limited Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1da2:e411]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
28:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]

=== AMDGPU / ROCm versions ===
amdgpu-dkms 1:6.16.13.30300400-2341068.24.04
amdgpu-dkms-firmware 1:6.1.5.50600-1609671.22.04
amdgpu-install 30.30.4.0.30300400-2341068.24.04
hsa-rocr
rocm-core
rocm-core5.2.0
rocm-llvm5.2.0
rocm-opencl 2.0.0.70204-93~24.04
rocm-opencl-icd
rocm-opencl-icd-loader
rocminfo 7.1.1-0ubuntu1

=== ROCm installation ===
bash: /opt/rocm/bin/rocminfo: No such file or directory

=== AMDGPU kernel driver ===
filename: /lib/modules/7.0.0-43-generic/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.zst
srcversion: DDB33AF6FA14152D93F2400
vermagic: 7.0.0-43-generic SMP preempt mod_unload modversions

=== UDEV rule and package ownership ===
KERNEL=="kfd", GROUP="video", MODE="0660"
amdgpu-dkms: /etc/udev/rules.d/70-amdgpu.rules

=== Previous UDEV errors ===
nov 10 17:43:09 systemd-udevd[1202]: /etc/udev/rules.d/70-amdgpu.rules:1 Invalid operator for GROUP.
nov 10 17:43:11 systemd-udevd[1202]: /etc/udev/rules.d/70-amdgpu.rules:1 Invalid operator for GROUP.
nov 10 17:43:15 systemd-udevd[1202]: /etc/udev/rules.d/70-amdgpu.rules:1 Invalid operator for GROUP.
nov 10 18:56:04 systemd-udevd[1202]: /etc/udev/rules.d/70-amdgpu.rules:1 Invalid operator for GROUP.

Operating System

Ubuntu 26.04.1 LTS (Resolute Raccoon)

CPU

AMD Ryzen 9 5950X 16-Core Processor

GPU

AMD Radeon RX 5700

ROCm Version

amdgpu-dkms 1:6.16.13.30300400-2341068.24.04 amdgpu-dkms-firmware 1:6.1.5.50600-1609671.22.04 amdgpu-install 30.30.4.0.30300400-2341068.24.04 hsa-rocr rocm-core rocm-core5.2.0 rocm-llvm5.2.0 rocm-opencl 2.0.0.70204-93~24.04 rocm-opencl-icd rocm-opencl-icd-loader rocminfo 7.1.1-0ubuntu1

Installation Method

Package manager

Installed ROCm Packages / Versions
Installed ROCm packages / versions

amdgpu-dkms-firmware/now 1:6.1.5.50600-1609671.22.04 all [installed,local]
amdgpu-dkms/now 1:6.16.13.30300400-2341068.24.04 all [installed,local]
amdgpu-install/now 30.30.4.0.30300400-2341068.24.04 all [installed,local]
libdrm-amdgpu1/resolute,now 2.4.131-1 amd64 [installed,automatic]
libdrm-amdgpu1/resolute,now 2.4.131-1 i386 [installed,automatic]
pytorch-rocm-gfx1010/now 2.15.0 amd64 [installed,local]
rocminfo/resolute,now 7.1.1-0ubuntu1 amd64 [installed]
whiptail/resolute,now 0.52.25-1ubuntu3 amd64 [installed,automatic]
xserver-xorg-video-amdgpu/resolute,now 25.0.0-1 amd64 [installed,automatic]

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of rocminfo --support
rocminfo --support output

ROCk module is loaded

HSA System Attributes

Runtime Version: 1.1
Runtime Ext Version: 1.14
System Timestamp Freq.: 1000.000000MHz
Sig. Max Wait Duration: 18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model: LARGE
System Endianness: LITTLE
Mwaitx: DISABLED
XNACK enabled: NO
DMAbuf Support: YES
VMM Support: YES

==========
HSA Agents


Agent 1


Name: AMD Ryzen 9 5950X 16-Core Processor
Uuid: CPU-XX
Marketing Name: AMD Ryzen 9 5950X 16-Core Processor
Vendor Name: CPU
Feature: None specified
Profile: FULL_PROFILE
Float Round Mode: NEAR
Max Queue Number: 0(0x0)
Queue Min Size: 0(0x0)
Queue Max Size: 0(0x0)
Queue Type: MULTI
Node: 0
Device Type: CPU
Cache Info:
L1: 32768(0x8000) KB
Chip ID: 0(0x0)
ASIC Revision: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 5086
BDFID: 0
Internal Node ID: 0
Compute Unit: 32
SIMDs per CU: 0
Shader Engines: 0
Shader Arrs. per Eng.: 0
WatchPts on Addr. Ranges:1
Memory Properties:
Features: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 82268488(0x4e75148) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size: 82268488(0x4e75148) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 3
Segment: GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size: 82268488(0x4e75148) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 4
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 82268488(0x4e75148) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
ISA Info:


Agent 2


Name: gfx1010
Uuid: GPU-XX
Marketing Name: AMD Radeon RX 5700
Vendor Name: AMD
Feature: KERNEL_DISPATCH
Profile: BASE_PROFILE
Float Round Mode: NEAR
Max Queue Number: 128(0x80)
Queue Min Size: 64(0x40)
Queue Max Size: 131072(0x20000)
Queue Type: MULTI
Node: 1
Device Type: GPU
Cache Info:
L1: 16(0x10) KB
L2: 4096(0x1000) KB
Chip ID: 29471(0x731f)
ASIC Revision: 2(0x2)
Cacheline Size: 128(0x80)
Max Clock Freq. (MHz): 1750
BDFID: 10240
Internal Node ID: 1
Compute Unit: 36
SIMDs per CU: 2
Shader Engines: 2
Shader Arrs. per Eng.: 2
WatchPts on Addr. Ranges:4
Coherent Host Access: FALSE
Memory Properties:
Features: KERNEL_DISPATCH
Fast F16 Operation: TRUE
Wavefront Size: 32(0x20)
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Max Waves Per CU: 40(0x28)
Max Work-item Per CU: 1280(0x500)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
Max fbarriers/Workgrp: 32
Packet Processor uCode:: 146
SDMA engine uCode:: 35
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 8372224(0x7fc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size: 8372224(0x7fc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 3
Segment: GROUP
Size: 64(0x40) KB
Allocatable: FALSE
Alloc Granule: 0KB
Alloc Recommended Granule:0KB
Alloc Alignment: 0KB
Accessible by all: FALSE
ISA Info:
ISA 1
Name: amdgcn-amd-amdhsa--gfx1010:xnack-
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
ISA 2
Name: amdgcn-amd-amdhsa--gfx10-1-generic:xnack-
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
*** Done ***

Additional Information

I've already fixed the issue manually on my PC, but the fix could be overwritten by a future update or if I reinstall the driver.

Please fix this in the package so it doesn't happen again.

Thanks!

主要语言
C
星标
472
派生
153
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

ROCm/amdgpu 的其他 Issue

查看 ROCm/amdgpu 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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