![amdgpu 未加载](https://linux22.com/image/1200076/amdgpu%20%E6%9C%AA%E5%8A%A0%E8%BD%BD.png)
我运行了两次更新:
Upgrade: alsa-ucm-conf:amd64 (1.2.6.3-1ubuntu1.9, 1.2.6.3-1ubuntu1.10), dnsmasq-base:amd64 (2.86-1.1ubuntu0.4, 2.86-1.1ubuntu0.5), libssl3:amd64 (3.0.2-0ubuntu1.12, 3.0.2-0ubuntu1.13), libssl3:i386 (3.0.2-0ubuntu1.12, 3.0.2-0ubuntu1.13), libssl-dev:amd64 (3.0.2-0ubuntu1.12, 3.0.2-0ubuntu1.13), smartmontools:amd64 (7.2-1build2, 7.2-1ubuntu0.1), elisa:amd64 (21.12.3-0ubuntu1, 21.12.3-0ubuntu1.1), openssl:amd64 (3.0.2-0ubuntu1.12, 3.0.2-0ubuntu1.13)
和
Upgrade: linux-firmware:amd64 (20220329.git681281e4-0ubuntu3.24, 20220329.git681281e4-0ubuntu3.26)
End-Date: 2024-02-03 04:50:44
现在似乎 amdgpu 无法加载。我可以进入命令行Ctl F2。我可以使用 Startx 启动 GUI,但显示器使用的是主板显卡,而不是我的 AMD GPU。
$ sudo lshw -c video:
>*-display UNCLAIMED
description: VGA compatible controller
product: Navi 23 [Radeon RX 6600/6600 XT/6600M]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:03:00.0
version: c1
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list
configuration: latency=0
resources: memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:f7800000-f78fffff memory:c0000-dffff
*-display
description: Display controller
product: 2nd Generation Core Processor Family Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm bus_master cap_list
configuration: driver=i915 latency=0
resources: irq:28 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)
*-graphics
product: EFI VGA
physical id: 1
logical name: /dev/fb0
capabilities: fb
configuration: depth=32 resolution=1024,768
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ apt show amdgpu
Package: amdgpu
Version: 1:5.7.00.48.50700-1666569.22.04
Priority: optional
Section: metapackages
Maintainer: Advanced Micro Devices (AMD) <[email protected]>
Installed-Size: 9,216 B
Depends: amdgpu-dkms, amdgpu-lib (= 1:5.7.00.48.50700-1666569.22.04)
Download-Size: 1,688 B
APT-Sources: https://repo.radeon.com/amdgpu/23.20.00.48/ubuntu jammy/main amd64 Packages
Description: Meta package to install amdgpu components.
$ uname -a
Linux user-user 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ dkms status amdgpu
Command 'dkms' not found, but can be installed with:
sudo apt install dkms
$ clinfo
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.1 AMD-APP (3590.0)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 0
我安装了 ROCm 驱动程序,并且此命令一直显示有关卡的信息,直到我升级为止。
$ /opt/rocm/bin/rocm-smi
cat: /sys/module/amdgpu/initstate: No such file or directory
ERROR:root:Driver not initialized (amdgpu not found in modules)
我是否应该尝试安装 DKMS(sudo apt install dkms
)来看看是否能解决任何问题?