我有一台配置了AMD Oland [Radeon HD 8570 / R5 430 OEM R7 240/340 Radeon 520 OEM]
GPU 的 Dell R720 家庭实验室。这是一张旧的 GCN 1 卡,所以我决定使用该radeon
驱动程序而不是开源amdgpu
驱动程序,因为后者只有实验支持 GCN 1 卡(或者支持在 2024 年已经成熟,我应该切换到amdgpu
?如果是这种情况,请告诉我)。我想在 AMD 卡上运行桌面环境。该系统还有其他几张 Nvidia 卡,我打算将它们用作计算卡(因此 X.org 不应该在它们上运行)。
我尝试配置 X.org 以使用底部发布的radeon
驱动程序,但当我重新启动机器时,屏幕冻结在 Ubuntu 加载屏幕上。这是/etc/X11/xorg.conf
粘贴箱中的错误消息~/.local/share/xorg/Xorg.0.log
。这是由驱动程序引起的段错误radeon
。此外,这里是的输出dmesg
。它包含如下可疑消息UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-ZV1Qen/linux-hwe-6.5-6.5.0/drivers/gpu/drm/radeon/radeon_atombios.c:2717:34
我该如何解决这个问题?我应该切换到amdgpu
还是继续使用radeon
?哪一个维护得更积极?
$ uname -a
Linux mjollnir 6.5.0-18-generic #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 11:40:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ lsmod | grep -E 'radeon|amdgpu'
radeon 2170880 7
drm_suballoc_helper 16384 1 radeon
drm_ttm_helper 12288 1 radeon
ttm 110592 2 radeon,drm_ttm_helper
drm_display_helper 241664 1 radeon
drm_kms_helper 270336 6 drm_display_helper,mgag200,radeon,nvidia_drm
drm 761856 18 drm_kms_helper,drm_suballoc_helper,drm_shmem_helper,drm_display_helper,nvidia,mgag200,radeon,drm_ttm_helper,nvidia_drm,ttm
video 73728 2 radeon,nvidia_modeset
i2c_algo_bit 16384 3 igb,mgag200,radeon
$ lspci -k | grep -EA3 'VGA|3D|Display'
04:00.0 3D controller: NVIDIA Corporation GP102GL [Tesla P40] (rev a1)
Subsystem: NVIDIA Corporation GP102GL [Tesla P40]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
--
0a:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2
DeviceName: Embedded Video
Subsystem: Dell G200eR2
Kernel driver in use: mgag200
--
42:00.0 3D controller: NVIDIA Corporation GP102GL [Tesla P40] (rev a1)
Subsystem: NVIDIA Corporation GP102GL [Tesla P40]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
43:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R5 430 OEM / R7 240/340 / Radeon 520 OEM] (rev 87)
Subsystem: Dell Radeon R5 430 OEM (2048 MByte)
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu
--
44:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] GK208B [GeForce GT 710]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
$ inxi -G --display
Graphics:
Device-1: NVIDIA GP102GL [Tesla P40] driver: nvidia v: 470.223.02
Device-2: Matrox Systems G200eR2 driver: mgag200 v: kernel
Device-3: NVIDIA GP102GL [Tesla P40] driver: nvidia v: 470.223.02
Device-4: AMD Oland [Radeon HD 8570 / R5 430 OEM R7 240/340 Radeon 520 OEM] driver: radeon
v: kernel
Device-5: NVIDIA GK208B [GeForce GT 710] driver: nvidia v: 470.223.02
Display: server: X.org v: 1.21.1.4 driver: X: loaded: radeon gpu: radeon
resolution: 1920x1200
Message: No GL data found on this system.
$ apt-cache policy libgl1-mesa-dri
libgl1-mesa-dri:
Installed: 24.0.0~kisak2~j
Candidate: 24.0.0~kisak2~j
Version table:
24.0.0~rc3+git2401302259.6dadb9b032c~j~mesarc4 1
1 https://ppa.launchpadcontent.net/ernstp/mesarc/ubuntu jammy/main amd64 Packages
*** 24.0.0~kisak2~j 500
500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
23.2.1-1ubuntu3.1~22.04.2 500
500 http://us.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
23.0.4-0ubuntu1~22.04.1 500
500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
22.0.1-1ubuntu2 500
500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
内容/etc/X11/xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "AutoAddGPU" "off"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Radeon"
Driver "radeon"
BusID "PCI:67:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Radeon"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection