So I’ve got an eGPU setup for my 5090 via Razer Core X V2. I tested this setup on a Windows machine (on a Dell alienware) and the GPU was duly recognized and was working (although training speed was awfully slow but that’s another topic).
However, I’m having issues getting it to work on my ubuntu 22.04 running on a Dell XPS 13 9340 (which is equipped with thunderbolt 4). I’ve tried various cuda driver & toolkit versions, varying from 570-580 and 12.8 - 13.0 for toolkit. But I don’t think the issue is here as I’ll explain below.
Just as a note: I have an eGPU solution for a RTX 3090 on this laptop which is working perfectly fine.
My default grub setup was this:
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash i915.enable_psr=0”
I encounter the following error:
NVRM: This PCI I/O region assigned to your NVIDIA device is invalid
nvidia: probe of 0000:03:00.0 failed with error -1
NVRM: None of the NVIDIA devices were initialized
And nvidia-smi fails with: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Similar to this issue: NVIDIA RTX 5090 Not Detected by nvidia-smi on Ubuntu Server 24.04 - #12 by ys12345678
One of the top suggestions given in the above thread is disabling and re-enabling resizable BAR. Unfortunately my XPS 13 9340 doesn’t offer this option in its BIOS settings.
This other thread NVRM: This PCI I/O region assigned to your NVIDIA device is invalid suggests trying pci=realloc. This doesn’t result in any changes for me (meaning same error messages). What (somewhat) helps is the following:
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash i915.enable_psr=0 pci=realloc=off pci=nocrs”
Like this I no longer have the BAR issue and nvidia-smi now gives a No devices were found. Logs, however, show a different error, namely: Error nvidia-drm failed to allocate NvKmsKapiDevice.
The issue appears to be that the GPU is allocated only 256MB BAR space, while the RTX 5090
apparently requires much more (?).
I’ve also tried enabling BAR reallocation with hotplug memory reservation:
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash i915.enable_psr=0 pci=realloc pci=assign-busses pci=hpmmiosize=128M,hpmemsize=4096M”
Doesn’t help, unfortunately.
Here’s where I’m currently stuck, and the 5090 is still not usable.