eGPU Vega 56 Drivers issues


#1

Hi. I’m running Manjaro KDE on a Precision 5520 laptop with a Vega 56 connected as an eGPU in an Akitio Node.

Below is the system configuration of my machine.

System:    Host: Mass-Manjaro Kernel: 4.20.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.5 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Dell product: Precision 5520 v: N/A serial: <root required> 
           Mobo: Dell model: 0R6JFH v: A00 serial: <root required> UEFI: Dell v: 1.12.1 date: 10/02/2018 
Battery:   ID-1: BAT0 charge: 88.7 Wh condition: 88.7/97.0 Wh (91%) model: SMP DELL GPM0365 status: Full 
           Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K330 charge: 100% (should be ignored) 
           status: Discharging 
           Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M215 2nd Gen charge: 100% (should be ignored) 
           status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i7-7820HQ bits: 64 type: MT MCP arch: Kaby Lake rev: 9 L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 46480 
           Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 801 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GM107GLM [Quadro M1200 Mobile] vendor: Dell driver: nouveau v: kernel bus ID: 01:00.0 
           Device-3: Advanced Micro Devices [AMD/ATI] Vega 10 [Radeon Instinct MI25] driver: N/A bus ID: 0d:00.0 
           Display: server: X.Org 1.20.3 driver: modesetting unloaded: amdgpu resolution: 3840x2160~30Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) v: 4.5 Mesa 18.3.2 direct render: Yes 
Audio:     Device-1: Intel CM238 HD Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel v: kernel bus ID: 0d:00.1 
           Device-3: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-2.3:8 
           Sound Server: ALSA v: k4.20.7-1-MANJARO 
Network:   Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Dell driver: ath10k_pci v: kernel 
           port: e000 bus ID: 02:00.0 
           IF: wlp2s0 state: up mac: 54:13:79:74:a2:e1 
           Device-2: Qualcomm Atheros type: USB driver: btusb bus ID: 1-4:5 
Drives:    Local Storage: total: 942.70 GiB used: 10.62 GiB (1.1%) 
           ID-1: /dev/nvme0n1 vendor: HP model: SSD EX920 512GB size: 476.94 GiB 
           ID-2: /dev/sda type: USB model: SABRENT SABRENT size: 465.76 GiB 
Partition: ID-1: / size: 100.43 GiB used: 7.66 GiB (7.6%) fs: ext4 dev: /dev/nvme0n1p3 
           ID-2: /home size: 125.88 GiB used: 194.9 MiB (0.2%) fs: ext4 dev: /dev/nvme0n1p4 
           ID-3: swap-1 size: 9.77 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 34.0 C mobo: 29.0 C gpu: nouveau temp: 31 C 
           Fan Speeds (RPM): cpu: 2506 
Info:      Processes: 215 Uptime: 9m Memory: 15.51 GiB used: 1.10 GiB (7.1%) Init: systemd Compilers: gcc: 8.2.1 Shell: bash 
           v: 5.0.0 inxi: 3.0.30 


Below is my /etc/X11/xorg.d.d/*.conf

Section "ServerLayout"
    Identifier "egpu"
    Screen 0 "amdgpu"
    Inactive "intel"
EndSection

Section "ServerLayout"
    Identifier "laptop"
    Screen 0 "intel"
    Inactive "amdgpu"
EndSection

Section "Device"
    Identifier "amdgpu"
    Driver "amdgpu"
    BusID "PCI:13:0:0"
#BusID in decimal, convert from hex
  Option "AllowEmptyInitialConfiguration"
  Option "AllowExternalGpus"
EndSection

Section "Screen"
    Identifier "amdgpu"
    Device "amdgpu"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

I have gotten the eGPU configuration to work well with an NVidia 1070 and replaced it with a Vega 56, but I’m struggling to get it to work with AMD.

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x77 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 5 associated providers: 1 name:modesetting
Provider 1: id: 0x3f cap: 0x5, Source Output, Source Offload crtcs: 0 outputs: 0 associated providers: 1 name:modesetting

  1. inxi shows the graphics driver as N/A for the AMD card.
  2. xrandr --listproviders doesn’t show the AMD card :frowning:
  3. When I try to do a ‘startx – -layout egpu’, I get the following error
AMDGPU(0) : [KMS] drm report modesetting isn't supported.
(EE) Fatal server error : (EE) no screens found

I also have the xf86-video-amdgpu and mhwd-amdgpu packages installed. No catalyst drivers were ever installed. Can someone please help to resolve this issue?


#2

I am not familiar with external GPU’s, but I know some about multi-GPU setups.
There you need to use Prime and Prime only works with no configuration in place.

Backup and remove your xorg.conf.d/ - Config, reboot and try
DRI_PRIME=2 glxgears

Prime Source:
https://wiki.archlinux.org/index.php/PRIME

DRI_PRIME=1 would be your nvidia card, DRI_PRIME=0 (default) would be your internal Intel card.


#3

I don’t have an eGPU, damn could be awesome to have one!, I found this on the ArchWiki that maybe can work…


#4

I’m familiar with eGPU setup and got it working with the GTX 1070 already. Below is my guide.

This is the first time I’m dealing with AMD cards and hence running into issues with it.


#5

Unfortunately, xrandr --listproviders doesn’t show the the AMD card at all.

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x77 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 5 associated providers: 1 name:modesetting
Provider 1: id: 0x3f cap: 0x5, Source Output, Source Offload crtcs: 0 outputs: 0 associated providers: 1 name:modesetting

Edit: Tried out DRI_PRIME =2 glxgears and it went back to Intel.

DRI_PRIME=2 glxgears -info
GL_RENDERER   = Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2) 
GL_VERSION    = 3.0 Mesa 18.3.2
GL_VENDOR     = Intel Open Source Technology Center

#6

IIRC these are nvidia options, not general. You should look for AMD available options.

Also… check the logs!!


#7

do you have modesettings blacklisted at boot-time?


#8

Given modesetting and amdgpu are “free” drivers I’d also be tempted to remove any Xorg.conf entirely and leave the kernel and X free to configure things automatically.


#9

Are you using any scripts as in your tutorial?
If so, post

lspci | grep -e VGA -e 3D

#10

Hmm. Without a conf file, how can I switch between various layouts on boot?


#11

Why “use various layouts on boot” if your system can auto configure?
Problems start with nvidia, that you are liberated from.
Try deleting all Xorg conf files first and if nothing happens, we troubleshoot.
It seems that you used your old conf files (from your nvidia setup).

When you decide you need assistance (instead for answer to invalid questions), give us a poke. :wink: