1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

RTX 5090 が NVIDIA Driver と疎通しない問題を解消した @ Ubuntu 24.04

Last updated at Posted at 2025-06-07

メモとして。

結論は: PCI リソースの割り当て不足


Ubuntu 24.04 マシンに RTX 5090 を挿して起動したところ、低解像度の映像が出力された。
nvidia-smi を実行すると以下のエラーが表示された。

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

ドライバーはインストール済み。 1

$ dkms status
nvidia/575.57.08, 6.8.0-60-generic, x86_64: installed

認識はしている。 2

$ lspci | grep -i nvidia
08:00.0 VGA compatible controller: NVIDIA Corporation GB202 [GeForce RTX 5090] (rev a1)
08:00.1 Audio device: NVIDIA Corporation Device 22e8 (rev a1)

メッセージを確認。

$ sudo dmesg | grep -i nvidia
...
[    3.984467] NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
...

PCI リソース割り当ての問題で、 RTX 5090 の性能が高すぎることが原因になっている模様。

/etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT を以下のように変更。

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=realloc pci=nocrs"

pci=realloc によって規定のリソース割り当てを割り当て直す / pci=nocrs によって BIOS が決めた枠を無視しています。

更新して再起動。

$ sudo update-grub
$ sudo reboot

動いた。

$ nvidia-smi
Sat Jun  7 11:48:51 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.57.08              Driver Version: 575.57.08      CUDA Version: 12.9     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5090        On  |   00000000:08:00.0 Off |                  N/A |
|  0%   47C    P8             23W /  575W |     192MiB /  32607MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            1939      G   /usr/lib/xorg/Xorg                      115MiB |
|    0   N/A  N/A            2051      G   /usr/bin/gnome-shell                     21MiB |
+-----------------------------------------------------------------------------------------+
  1. nvidia-open を使っています。 5090 は cuda-drivers だと動かないという報告があったので…真相は不明。

  2. 最初は単に VGA compatible controller: NVIDIA Corporation Device のようになっていて、製品名を認識していなかったので、 sudo update-pciids を実施して製品名を認識させた後で NVIDIA ドライバーの入れ直しをしました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?