cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

baszczer
Adept III

Can't install amdgpu drivers on Ubuntu 20.04.1 (5.4.0-56-generic)

Hi,

System: Ubuntu 20.04.1, Gpu: Sapphire RX 5700 XT, Drivers tested (20.30, 20.40, 20.45)

When I try to install drivers, I get this:

Building initial module for 5.4.0-56-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-firmware.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-56-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1164792) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1164792) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1164792) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1164792) ...
Setting up amdgpu-pro-core (20.45-1164792) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1164792) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1164792) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
dependency problems - leaving unconfigured
Setting up vulkan-amdgpu-pro:amd64 (20.45-1164792) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1164792) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1164792) ...
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1164792); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (--configure):
dependency problems - leaving unconfigured
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1164792) ...
No apport report written because MaxReports is reached already
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1164792) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up clinfo-amdgpu-pro (20.45-1164792) ...
Setting up hip-rocr-amdgpu-pro (20.45-1164792) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1164792) | amdgpu-hwe (= 20.45-1164792); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1164792) | amdgpu-pro-hwe (= 20.45-1164792); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (--configure):
dependency problems - leaving unconfigured
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1164792) ...
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1164792) ...
Setting up libegl1-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up libegl1-amdgpu-pro:i386 (20.45-1164792) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1164792) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1164792) ...
Setting up libgles2-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up libgles2-amdgpu-pro:i386 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1164792) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1164792) ...
Setting up amdgpu-lib (20.45-1164792) ...
Setting up amdgpu-lib32 (20.45-1164792) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro-rocr-opencl
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Solution

well, i'm not baszczer, but still.

Thanks to baszczer, I've tryed to use 5.4.0-54 (the previous one) and it just works!

To install 5.4.0-54 do next:

sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic

then reboot to 5.4.0-54

then

sudo apt remove linux-image-5.4.0-56-generic linux-image-unsigned-5.4.0-56-generic

(unsigned mentioned here because it tryed to install it for me by some reason.. it just helped)

then do

sudo apt autoremove

then go to /usr/src and remove linux-headers-5.4.0-56-generic and inux-headers-5.4.0-56 (if any of them are there)

now you can do

sudo ./amdgpu-install -y

View solution in original post

200 Replies

Is it possible that livepatch is the issue? Since its purpose is to negate the need for reboots somewhat, might this interfere with an attempt to install when I'm booted in nomodeset? I will run another attempt with livepatch inactive.

Edit: no impact

0 Likes

When you boot to a black screen, have you tried ctl-alt-F4 to get a login prompt?  Login and startx to get the gui...

0 Likes

@mountkidd Have now. No impact after a couple minutes

Edit: Seems different people need to press different keys to make it happen. Will try a few and say if any work.

Edit 2: F1 through F12 caused nothing to display on monitor when there is a black screen on boot.

0 Likes

@pupha   ctl+alt+Fn ???

0 Likes

@mountkidd    My keyboard's not got one but I'll try with the super key

Edit: no consequence with super key. Calling it a day for now.

0 Likes

Hello, is here even any solution that actually works ?

 

This toppic is almost 20 pages and I have read them all, and there is no clear guide.

WHat is the solution?

Downgrade kernel?

Dongrade drivers?

What kernel flags to use ?

0 Likes

Different people throughout have succeeded but it's hidden in the masses of replies. kernel 5.4-65 has been successful with ubuntu 20.04.(1 and 2). My current issue is an error message of different character now to that encountered at the start of the thread, so don't despair along with me if you can. On pages 13 and 14 are commands / links that can get you the right kernel. Good luck! I won't be replying for several hours since it is now 00:13 and I have work to do in the morning.

0 Likes

AMDGPU-PRO doesn't install on a fresh Ubuntu 20.04.2 installation. Errors out witht he following output:

```
# ./amdgpu-pro-install --opencl=pal
.

.

.

Setting up libxatracker2-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libxatracker2-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up libzstd1:i386 (1.4.4+dfsg-3) ...
Setting up libomxil-bellagio-bin (0.9.3-4.1ubuntu1) ...
Setting up manpages-dev (5.05-1) ...
Setting up libgbm1-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libomxil-bellagio0 (0.9.3-4.1ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-2) ...
Setting up hsakmt-roct-amdgpu:amd64 (1.0.9-1188099) ...
Setting up libglapi-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libxcb-glx0:i386 (1.14-2) ...
Setting up mesa-amdgpu-vdpau-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libffi7:i386 (3.3-4) ...
Setting up binutils-common:amd64 (2.34-6ubuntu1) ...
Setting up libunistring2:i386 (0.9.10-2) ...
Setting up linux-libc-dev:amd64 (5.4.0-65.73) ...
Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1) ...
Setting up libidn2-0:i386 (2.2.0-2) ...
Setting up libfakeroot:amd64 (1.24-1) ...
Setting up libgles1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up fakeroot (1.24-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (
fakeroot) in auto mode
Setting up libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up make (4.2.1-1.2) ...
Setting up libquadmath0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libatomic1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libatomic1:i386 (10.2.0-5ubuntu1~20.04) ...
Setting up libpcre2-8-0:i386 (10.34-7) ...
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) ...
Setting up libudev1:i386 (245.4-4ubuntu3.4) ...
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libubsan1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libdrm2:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libx11-6:i386 (2:1.6.9-2ubuntu1.1) ...
Setting up libwayland-egl1:i386 (1.18.0-1) ...
Setting up libbinutils:amd64 (2.34-6ubuntu1) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) ...
Setting up libc-dev-bin (2.31-0ubuntu9.2) ...
Setting up amdgpu-pro-core (20.45-1188099) ...
Setting up libalgorithm-diff-xs-perl (0.04-6) ...
Setting up liblsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libitm1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libdrm-amdgpu1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libtsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libwayland-client0:i386 (1.18.0-1) ...
Setting up libctf0:amd64 (2.34-6ubuntu1) ...
Setting up libwayland-server0:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) ...
Setting up vulkan-amdgpu-pro:amd64 (20.45-1188099) ...
update-alternatives: using /opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json to pr
ovide /etc/vulkan/icd.d/amd_icd64.json (amd_icd64.json) in auto mode
Setting up libdrm-nouveau2:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libgbm1-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up libxdamage1:i386 (1:1.1.5-2) ...
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up gst-omx-amdgpu (1.0.0.1-1188099) ...
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
Setting up libdrm-radeon1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libxext6:i386 (2:1.3.4-0ubuntu1) ...
Setting up clinfo-amdgpu-pro (20.45-1188099) ...
Setting up hip-rocr-amdgpu-pro (20.45-1188099) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build1) ...
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libglapi1-amdgpu-pro:i386 (20.45-1188099) ...
Setting up libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libselinux1:i386 (3.0-1build2) ...
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1188099) ...
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1188099) ...
Setting up libllvm11:i386 (1:11.0.0-2~ubuntu20.04.1) ...
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1188099) ...
Setting up libxfixes3:i386 (1:5.0.3-2) ...
Setting up libegl1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libegl1-amdgpu-pro:i386 (20.45-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libgles2-amdgpu-pro:i386 (20.45-1188099) ...
Setting up libvdpau1:i386 (1.3-1ubuntu2) ...
Setting up libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1188099) ...
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1188099) ...
Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up mesa-vdpau-drivers:i386 (20.2.6-0ubuntu0.20.04.1) ...
Setting up libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1188099) ...
Setting up libglapi-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up mesa-amdgpu-vdpau-drivers:i386 (1:20.1.6-1188099) ...
Setting up amdgpu-lib (20.45-1188099) ...
Setting up binutils (2.34-6ubuntu1) ...
Setting up dpkg-dev (1.19.7ubuntu3) ...
Setting up libgles1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up vdpau-driver-all:i386 (1.3-1ubuntu2) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up gcc-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up gcc (4:9.3.0-1ubuntu2) ...
Setting up dkms (2.8.1-5ubuntu1) ...
Setting up amdgpu-dkms (1:5.6.20.906316-1188099) ...
Loading new amdgpu-5.6.20.906316-1188099 DKMS files...
Building for 5.8.0-41-generic
Building for architecture x86_64
Building initial module for 5.8.0-41-generic
Error! Bad return status for module build on kernel: 5.8.0-41-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Setting up g++-9 (9.3.0-17ubuntu1~20.04) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mo
de
Setting up build-essential (12.8ubuntu1.1) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); howe
ver:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
No apport report written because MaxReports is reached
already
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1188099); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1188099) | amdgpu-hwe (= 20.45-1188
099); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1188099) | amdgpu-pro-hwe (= 20
.45-1188099); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up amdgpu-
lib32 (20.45-1188099) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro-rocr-opencl
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

neofetch:
`````
OS: Ubuntu 20.04.2 LTS x86_64
Kernel: 5.8.0-41-generic
Uptime: 1 hour, 15 mins
Packages: 1782 (dpkg), 6 (snap)
Shell: bash 5.0.17
Resolution: 1920x1200
DE: GNOME
WM: Mutter
WM Theme: Adwaita
Theme: Yaru [GTK2/3]
Icons: Yaru [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen Threadripper 1900X (16) @ 3.800GHz
GPU: AMD ATI Radeon RX Vega 56/64
Memory: 2104MiB / 15931MiB
```

 
0 Likes


What we are looking at in order to prevent this happening in the future is regular testing of driver/OS combinations after release so that if a distro update breaks the driver then we have a good chance of finding out about it before it impacts users.


Can I ask or even beg if you can add a few (most critical) third party applications to that testing? Like DaVinci Resolve, Fusion, OBS Studio and Blender?

Those are all supposed to work with AMDGPU-PRO driver and its OpenCL but at least in the case of DaVinci Resolve there's always something broken or not working at all. There's only been one driver where it worked perfectly. I think it was ROCm 2.4 or 2.5. The latest version of DaVinci Resolve 17 crashes on doing anything media related like when it is creating video preview etc. Hundreds of users are complaining about that on the BlackMagick Design forums. So far we've gotten the information from them that there is an issue with the AMD drivers and it's related to OpenGL and that they can't do anything about it.

I've moved to AMD and I've had AMD Radeon RX Vega 64 Liquid Frontier Edition ever since it came out and since then I, like many other AMD users, have been battling this unwinnable battle with AMDGPU-PRO, ROCm and DaVinci Resolve. We can't do it anymore, please help.

It would help so so so much if we knew something was being done about that, and that it's being well tested before the release and that we can count on it working and not fear every update because so far every update has meant significant downtime to the point that we're mostly focusing on trying to find workarounds and combining old with new drivers to make it barely work then to actually focus on our actual work.

I'm willing to help with any testing, as I'm one million percent sure that all the other people who are experiencing the same issues like myself over many years (and there are a lot of us) would be willing to do any testing necessary or even commit themselves to testing regularly and for free but we need someone to actually take a look and fix the issue with the drivers.

Please, help us! If you can.

0 Likes

I don't want to go back to 5.4 kernel as it did not support everything my laptop with Ryzen 4700U has (like brightness buttons, for example) and I hope to upgrade to 5.11 as soon as possible because maybe i'll finally have a working suspend on Linux then.

So, I'm waiting patiently for amdgpu compatible with newer kernels. I'll be also happy to help with testing, if you need. My laptop is Asus um425ia with 4700u.

0 Likes


@Tomash wrote:

I don't want to go back to 5.4 kernel as it did not support everything my laptop with Ryzen 4700U has (like brightness buttons, for example) and I hope to upgrade to 5.11 as soon as possible because maybe i'll finally have a working suspend on Linux then.

So, I'm waiting patiently for amdgpu compatible with newer kernels. I'll be also happy to help with testing, if you need. My laptop is Asus um425ia with 4700u.


Am I correct in guessing that it is mostly OpenCL plus GL/CL interop that you need ? I'm asking because for anything else you're probably better off using distro inbox/upstream than our packaged drivers, since Ubuntu with newer kernels also picks up newer graphics drivers automatically.

Now that we have moved OpenCL to ROCm backend by default we have a fully open source solution that can run over upstream kernels so my preference would be to get OpenCL and HIP picked up as part of the standard distro release.

0 Likes


@bridgman wrote:


Am I correct in guessing that it is mostly OpenCL plus GL/CL interop that you need ? I'm asking because for anything else you're probably better off using distro inbox/upstream than our packaged drivers, since Ubuntu with newer kernels also picks up newer graphics drivers automatically.

Long story short, I'm using laptop mostly for work which is web development in Ruby and JS. I'm good with running 5.8 kernel for all my current needs, including light gaming after work. The little exception that remains is VA-API video encoding (I sometimes stream/record training videos), this one works only if I install amdgpu, but it's not critical since 4700U actually handles h264 encoding of 1080p in realtime without exceeding 50% CPU utilization.

I do learn some machine learning but for now Google Colab is enough for my needs, I'm far from using OpenCL+tensorflow on my laptop.

So my voice here is basically "here are the issues I encountered but I can live without working amdgpu".

0 Likes

Also for anyone using R9 GPUs like me, here's a great tweak that helps with Ubuntu based distros. https://askubuntu.com/questions/1094443/ubuntu-18-04-1-lts-r9-390x-amdgpu-guide-testing-summary

0 Likes


@KristijanZic wrote:

Can I ask or even beg if you can add a few (most critical) third party applications to that testing? Like DaVinci Resolve, Fusion, OBS Studio and Blender?

Those are all supposed to work with AMDGPU-PRO driver and its OpenCL but at least in the case of DaVinci Resolve there's always something broken or not working at all. There's only been one driver where it worked perfectly. I think it was ROCm 2.4 or 2.5. The latest version of DaVinci Resolve 17 crashes on doing anything media related like when it is creating video preview etc. Hundreds of users are complaining about that on the BlackMagick Design forums. So far we've gotten the information from them that there is an issue with the AMD drivers and it's related to OpenGL and that they can't do anything about it.


We have ramped up testing on Blender and fixed a lot of issues - I am hoping it stays ramped up. DaVinci Resolve on Ubuntu is a bit of a challenge because even BlackMagic only supports it on CentOS, but I figure if we can get it running on CentOS then there's a good chance it will work on Ubuntu anyways. I'm not sure about getting the other apps on the test list in the short term since we get our priorities from the business unit folks but I can try to find someone there to discuss with.

0 Likes


@bridgman wrote:


We have ramped up testing on Blender and fixed a lot of issues - I am hoping it stays ramped up.


Regarding Blender. I have a problem (Memory access fault by GPU node-1) and I want to fix it. It looks like it is related to rocr.

1. Where to report it and to get feedback (not only "we will take a look at this"?

2. Is the only option to wait for new drivers, when I need Blender for everyday's work?

0 Likes


DaVinci Resolve on Ubuntu is a bit of a challenge because even BlackMagic only supports it on CentOS, but I figure if we can get it running on CentOS then there's a good chance it will work on Ubuntu anyways.

I'm testing it both on CentOS and Ubuntu and the same exact issues are present all the time and have been present for years. There has never been the case that it it worked on CentOS but not on Ubuntu or vice versa. When installed, you'll see the same issues on both distros.

Also it's not about getting it to run. I can always get it to launch but it's about DaVinci Resolve not rendering video previews because of OpenGL bugs in AMDGPU-PRO or crashing on importing and creating previews for media with ROCm, or not rendering a Fairlight timeline with AMDGPU-PRO.

So just testing if the app will launch is not good enough if the driver actually prevents it from working correctly after launch.

I'd also like to know where to actually report bugs and issues and actually get feedback (not only "we will take a look at this")?

Many people including myself have been reporting mostly the same issues with Davinci Resolve and AMDGPU-PRO / ROCm for years and never got any response nor has anything been done. BlackMagick Design responded that it's the issue with the drivers and that they can't do anything about that. Now, I seriously want to help with testing AMDGPU-PRO and ROCm with DaVinci Resolve. Anything to get this going and fixed. But I need for those findings to reach developers at AMD and for someone at AMD to be able to reproduce the issues, to track the issues and to fix the issues.

How do I do that?

 


I'm not sure about getting the other apps on the test list in the short term since we get our priorities from the business unit folks but I can try to find someone there to discuss with.

That's ok, I'm sure if DaVinci Resolve and Blender were thoroughly tested, supported and working correctly it would do a lot for other software too. But we need to get DaVinci Resolve working and working properly.

0 Likes


@KristijanZic wrote:

I'm testing it both on CentOS and Ubuntu and the same exact issues are present all the time and have been present for years. There has never been the case that it it worked on CentOS but not on Ubuntu or vice versa. When installed, you'll see the same issues on both distros.


OK, good to know - thanks.

I'm not sure what the best way to get a problem report into the developers, but we do have a couple of people who monitor the forums and report problems into development. I'll try to find one of them and see what they recommend.

Agree that getting/keeping Resolve working well should help with other apps as well.


@discretedevices wrote:

@bridgman wrote:

Going back to the 20.04 discussion, can anyone comment re: whether 20.45 is working on 20.04.1 for them ? Trying to figure out if we have a problem there as well, since it apparently worked OK on our internal testing.



I installed the Radeon 20.45 package (amdgpu-pro-20.45-1188099-ubuntu-20.04) on Ubuntu 20.04 after a fresh install a few weeks ago, which then broke last week following some automatic kernel upgrades.  I was on 5.8.0-36 and Ubuntu reports itself as 20.04.1.  Just today I found this post (several hours ago) and reinstalled my older 5.4.0-54 kernel just to get the amdgpu-install script to work again.  I just realized you're still posting and asking this question.  Is there anything I can do to help?  I think my answer is "yes I was having a problem with 20.04.1".  Earlier I collected some troubleshooting information preparing to submit a bug report that I never did, let me know if it would help you or if there is anything else I could do to assist.


Interesting - did 20.04.1 update itself to the 5.8.0-36 kernel or is that something you did manually ?

If the new downloads have a 5.8 kernel that might explain why build 1188099 isn't working - if you have build logs handy showing the build error that would help, but if 5.8 is the new default kernel then we're going to have work to do anyways. I wasn't expecting a kernel bump to 5.8 (from Ubuntu 20.10) for another month or more.

0 Likes

I didn't install kernel 5.8 it manually.

I just checked a 20.04.1 LTS live disk I have sitting around.  uname-r returns "5.4.0-42-generic" and "lsb_release -a" includes a line saying "Ubuntu 20.04.1 LTS".  I am not certain my "permanent" 20.04 LTS install was made with this particular live disk, but since

  • amdgpu-install worked after installation, and
  • then some updates happened, and
  • then I noticed that I was on kernel 5.8

I will assume that I started on an earlier kernel and the upgrade happened via an Ubuntu update that I approved.  Here are some logs that seem pertinent, I can send you the whole files if you want.  These were collected while I was trying to run amdgpu-install to repair my installation after hitting trouble, after the Ubuntu updates.

$ sudo lshw -c cpu | grep product >> basic.conf
       product: AMD Ryzen 5 3400G with Radeon Vega Graphics

$ lspci -nn | grep "VGA\|Display" >> basic.conf
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:73bf] (rev c1)

$ sudo dmidecode -t BIOS | grep Version >> basic.conf
	Version: 3001

$ lsb_release -sd >> basic.conf
Ubuntu 20.04.1 LTS

$ uname -a >> basic.conf
Linux tuf-x750 5.8.0-36-generic #40~20.04.1-Ubuntu SMP Wed Jan 6 10:15:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ dkms status | grep "amdgpu\|radeon" >> basic.conf
amdgpu, 5.6.20.906316-1188099, 5.4.0-59-generic, x86_64: installed
Setting up amdgpu-dkms (1:5.6.20.906316-1188099) ...
Loading new amdgpu-5.6.20.906316-1188099 DKMS files...
Building for 5.8.0-36-generic
Building for architecture x86_64
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-firmware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

 Since you expect problems with kernel 5.8, this might not be very interesting.  Thanks for looking into the overall problem though!

0 Likes


@discretedevices wrote:

I didn't install kernel 5.8 it manually.

I just checked a 20.04.1 LTS live disk I have sitting around.  uname-r returns "5.4.0-42-generic" and "lsb_release -a" includes a line saying "Ubuntu 20.04.1 LTS".  I am not certain my "permanent" 20.04 LTS install was made with this particular live disk, but since

  • amdgpu-install worked after installation, and
  • then some updates happened, and
  • then I noticed that I was on kernel 5.8

I will assume that I started on an earlier kernel and the upgrade happened via an Ubuntu update that I approved.  Here are some logs that seem pertinent, I can send you the whole files if you want.  These were collected while I was trying to run amdgpu-install to repair my installation after hitting trouble, after the Ubuntu updates.

$ uname -a >> basic.conf
Linux tuf-x750 5.8.0-36-generic #40~20.04.1-Ubuntu SMP Wed Jan 6 10:15:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ dkms status | grep "amdgpu\|radeon" >> basic.conf
amdgpu, 5.6.20.906316-1188099, 5.4.0-59-generic, x86_64: installed
Setting up amdgpu-dkms (1:5.6.20.906316-1188099) ...
Loading new amdgpu-5.6.20.906316-1188099 DKMS files...
Building for 5.8.0-36-generic
Building for architecture x86_64
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-firmware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

 Since you expect problems with kernel 5.8, this might not be very interesting.  Thanks for looking into the overall problem though!


uname shows 5.8.0-36 kernel.  dkms shows 5.4.0-59 kernel, with amdgpu 20.45 (1188099).  This is messed up, but it does show that 20.45 was installed at some point!  Try cmdline   dpkg -l amdgpu amdgpu-pro amdgpu-dkms  to verify the 20.45 installation.

Copy out the var/crash/amdgpu-dkms...log for safe keeping and delete the /var/crash version to make room for future updates.

Try a reboot into the 5.4.0-59 kernel - it should still be accessible via the grub advanced menu.  If it works and you get your system back, then this will be a good work-around until a more permanent solution is found.  If it doesn't work, I would try to undo the 5.8.0-36 kernel by re-installing the 5.4.0-59 kernel.  We don't know if kernel 5.8.0-36 should work at this point as support for it is not expected for a couple of months.  The procedure for doing kernel replacement was posted by @bridgman earlier today.

0 Likes

Thanks, I already manually reinstalled a 5.4 kernel, removed/purged amdgpu and related stuff, and successfully reinstalled.  I'll defer updates for a bit while we wait for a workaround.

0 Likes


@bridgman wrote:

If the new downloads have a 5.8 kernel that might explain why build 1188099 isn't working - if you have build logs handy showing the build error that would help, but if 5.8 is the new default kernel then we're going to have work to do anyways. I wasn't expecting a kernel bump to 5.8 (from Ubuntu 20.10) for another month or more.


Canonical didn't inform you about the kernel update?

0 Likes


@baszczer wrote:


Canonical didn't inform you about the kernel update?


No, at least as far as I know. We are expecting a jump to 5.8 as part of 20.4.2 some time in February but are not expecting any non-trivial kernel changes in 20.04.1.

0 Likes

I am unable to install Ubunto on Ryzen 2700X. 

I have tried Ubuntu and Unbuntu Mint on Live USB stick. 

Nothing will install for me. 

I have 7 AMD GPU cores fitted to the PC. 

It looks like that may be the problem...

0 Likes

I have the same issue with Ubuntu 18.04 HWE. Everything works with 5.4.0-54-generic but the driver fails to compile vs the 5.4.0-56 version released a couple of days ago because a method is no longer there in the kernel API.

I think we will need to wait for AMD to release an updated driver that compiles vs the newer kernel, and until then I suppose I will stick to the older kernel which isn't ideal but I don't see much alternative.

I resolve my problem on an I-Tec USB 3.0/USB-C Dual HDMI DS U3DUALHDMIDOCK

with this patch : https://www.displaylink.com/downloads/file?d=310

0 Likes

Sorry, the patch doesn't work anymore...

$ sudo ./displaylink-debian.sh --debug

-------------------------------------------------------------------

Starting Debug ...

Did you read Post Installation Guide? http://bit.ly/2TbZleK [y/N] y

Did you read Troubleshooting most common issues? http://bit.ly/2Rofd0x [y/N] y

--------------- Linux system info ----------------

Distro: Debian
Release: bullseye
Kernel: 5.10.0-6-amd64

---------------- DisplayLink info ----------------

Driver version: 1.9.0+dfsg
1.9.1
DisplayLink service status: up and running
EVDI service version: 1.9.1

------------------ Graphics card -----------------

Vendor: amdgpu
Subsystem:
VGA: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d1)
VGA (3D):
X11 version: 1.20.11-1
X11 configs: /etc/X11/xorg.conf.d/20-displaylink.conf

-------------- DisplayLink xorg.conf -------------

File: /etc/X11/xorg.conf.d/20-displaylink.conf
Contents:
Section "Device"
Identifier "AMDGPU"
Driver "amdgpu"
Option "PageFlip" "false"
EndSection

-------------------- Monitors --------------------

Providers: number : 5
Provider 0: id: 0x47 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x175 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 2: id: 0x153 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 3: id: 0x131 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 4: id: 0x10f cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting

 

It Works for me but with only with Ventoy

https://doc.ubuntu-fr.org/ventoy

and an EFI partition for boot on hard disk destination.

 

But i have th same problem (ThinkPad P14s) with different kernels.

The AMD installation script don't work for me on 20.04, nor on 20.10 nor on 21.4.

0 Likes

$ uname -a
Linux debianP14S 5.10.0-6-amd64 #1 SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux
# cat /etc/debian_version
bullseye/sid
$ wmctrl -m
$ systemctl status display-manager
● sddm.service - Simple Desktop Display Manager
Name: KWin
$ echo $XDG_CURRENT_DESKTOP
KDE
$ echo $DESKTOP_SESSION
plasma
$ sudo apt policy firmware-amd-graphics
firmware-amd-graphics:
Installé : 20210315-2
Candidat : 20210315-2
Table de version :
*** 20210315-2 500
500 http://deb.debian.org/debian bullseye/non-free amd64 Packages
100 /var/lib/dpkg/status

Work on ThinkPad P14s !

0 Likes

Hello

i have the same problem with kernel 5.4.0-56-generic under ubuntu 20.04. But with privios kernel 5.4.0-54-generic it'i works.

This is crash file :

ProblemType: Package
DKMSBuildLog:
DKMS make.log for amdgpu-5.6.20.906300-1164792 for kernel 5.4.0-56-generic (x86_64)
mer. 02 déc. 2020 10:42:57 CET
make : on entre dans le répertoire « /usr/src/linux-headers-5.4.0-56-generic »
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:20: "Local GCC version 90303 does not match kernel compiler GCC version 90300"
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:21: "This may cause unexpected and hard-to-isolate compiler-related issues"
AR /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/built-in.a
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_ioctl.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_device_cgroup.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_cache.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_kthread.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_perf_event.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_reservation.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.c:30:1: warning: ‘dma_fence_test_signaled_any’ defined but not used [-Wunused-function]
30 | dma_fence_test_signaled_any(struct dma_fence **fences, uint32_t count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_suspend.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_workqueue.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_seq_file.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_connector.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_backlight.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_atomic_helper.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_crtc.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:103:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
103 | _kcl_pcie_link_speed = (const unsigned char *) amdkcl_fp_setup("pcie_link_speed", _kcl_pcie_link_speed_stub);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:4:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_common.h:12:63: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
12 | static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup)
| ~~~~~~^~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_device.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modeset_lock.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modes.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mn.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/dma-buf/dma-resv.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_atombios.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/amd-sched.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_execbuf_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_page_alloc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_manager.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_agp_backend.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_page_alloc_dma.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atom.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_object.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_gart.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/amdkcl.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_display.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_i2c.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_gem.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ring.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/amdttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_cs.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_benchmark.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_test.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_dp.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_afmt.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.c: In function ‘amdgpufb_create’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.c:252:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
252 | info->fbops = &amdgpufb_ops;
| ^
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_trace_points.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_sa.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_i2c.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_dma_buf.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_vm.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c: In function ‘amdgpu_read_platform_bios’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
200 | bios = pci_platform_rom(adev->pdev, &size);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c:200:7: warning: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
200 | bios = pci_platform_rom(adev->pdev, &size);
| ^
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ib.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_pll.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ucode.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bo_list.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275 : /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [scripts/Makefile.build:522 : /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu] Erreur 2
make: *** [Makefile:1757 : /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build] Erreur 2
make : on quitte le répertoire « /usr/src/linux-headers-5.4.0-56-generic »
DKMSKernelVersion: 5.4.0-56-generic
Date: Wed Dec 2 10:43:01 2020
DuplicateSignature: dkms:amdgpu-dkms:1:5.6.20.906300-1164792:/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
Package: amdgpu-dkms 1:5.6.20.906300-1164792
PackageVersion: 1:5.6.20.906300-1164792
SourcePackage: amdgpu-dkms
Title: amdgpu-dkms 1:5.6.20.906300-1164792: amdgpu kernel module failed to build

I have the same error. Any help would be highly appreciated.

I resolve my problem on an [b][color=#688E23]I-Tec USB 3.0/USB-C Dual HDMI DS U3DUALHDMIDOCK[/color][/b]

with this patch : https://www.displaylink.com/downloads/file?d=310

0 Likes

try this 

https://www.amd.com/en/support/kb/faq/gpu-601 

idk if it is will work on Ubuntu or not 

0 Likes

The link is not working.

0 Likes
henshu70
Journeyman III

I am running KDE Neon based on Kubuntu 20.04.1. I tried installing AMDGPU 20.20 (which was the only one working for me before), 20.30 and 20.40. Nothing helped. The only solution was to update the Linux Kernel to 5.8 (Linux Kernel 5.8 is Here. This is What’s New ). Now everything is working. I guess we will have to wait for second release of Ubuntu/Kubuntu/Neon 20.04 as that should be based on Linux Kernel 5.8.

0 Likes
aidyw
Journeyman III

Same problem,  with crash report attached.

This occurred after an automatic kernel upgrade, tried multiple versions of the amdgpu driver 20.20, 20.30. Same problem. I removed the new kernel from my system and re-compiled the driver with no problems back up and running, but simply can not get any of the drivers to compile against 5.4.0-56.

Perhaps it is related to the 'implicit declaration of function ‘pci_platform_rom’. Perhaps upstrem the kernel guys have renamed the function. Seem to remember reading something about the kernel having no consistent API.

 

Over to AMD, but hopefully this gets cleaned up, otherwise not sure what will happen when we move to kernel 5.10? Clearly dont want to be forced to stick to old kernel versions just to keep AMD code satisfied.

 

ProblemType: Package
DKMSBuildLog:
DKMS make.log for amdgpu-5.6.5.24-1109583 for kernel 5.4.0-56-generic (x86_64)
Tue 1 Dec 15:04:22 CET 2020
make: Entering directory '/usr/src/linux-headers-5.4.0-56-generic'
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_mn.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_device.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_ioctl.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_device_cgroup.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_drm_cache.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_drm.o
LD [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/scheduler/amd-sched.o
AR /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/built-in.a
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_bo_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_kms.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_kthread.o
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_fence.c:30:1: warning: ‘dma_fence_test_signaled_any’ defined but not used [-Wunused-function]
30 | dma_fence_test_signaled_any(struct dma_fence **fences, uint32_t count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_atombios.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_mm.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_pci.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/atombios_crtc.o
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_pci.c:103:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
103 | _kcl_pcie_link_speed = (const unsigned char *) amdkcl_fp_setup("pcie_link_speed", _kcl_pcie_link_speed_stub);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_pci.c:4:
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_common.h:12:63: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
12 | static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup)
| ~~~~~~^~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_perf_event.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_connectors.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_reservation.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_execbuf_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/atom.o
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_reservation.c: In function ‘amdkcl_reservation_init’:
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_reservation.c:59:10: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
59 | &_kcl_reservation_seqcount_string_stub);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_reservation.c:33:
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_common.h:12:63: note: expected ‘void *’ but argument is of type ‘const char (*)[21]’
12 | static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup)
| ~~~~~~^~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_suspend.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_page_alloc.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_workqueue.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_seq_file.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_connector.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_ttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_bo_manager.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_object.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_backlight.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_agp_backend.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/kcl_drm_atomic_helper.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/dma-buf/dma-resv.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_gart.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/ttm_page_alloc_dma.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_encoders.o
LD [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdkcl/amdkcl.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_display.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_i2c.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_fb.o
LD [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/ttm/amdttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_gem.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_ring.o
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_fb.c: In function ‘amdgpufb_create’:
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_fb.c:252:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
252 | info->fbops = &amdgpufb_ops;
| ^
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_cs.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_benchmark.o
CC [M] /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_test.o
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.c: In function ‘amdgpu_read_platform_bios’:
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
200 | bios = pci_platform_rom(adev->pdev, &size);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.c:200:7: warning: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
200 | bios = pci_platform_rom(adev->pdev, &size);
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:522: /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu] Error 2
make: *** [Makefile:1757: /var/lib/dkms/amdgpu/5.6.5.24-1109583/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-56-generic'
DKMSKernelVersion: 5.4.0-56-generic
Date: Tue Dec 1 15:04:38 2020
DuplicateSignature: dkms:amdgpu-dkms-firmware:1:5.6.5.24-1109583:/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
Package: amdgpu-dkms-firmware 1:5.6.5.24-1109583
PackageVersion: 1:5.6.5.24-1109583
SourcePackage: amdgpu-dkms
Title: amdgpu-dkms-firmware 1:5.6.5.24-1109583: amdgpu kernel module failed to build

stretchyf
Journeyman III

Also tried to install AMDGPU Pro driver versions 20.30, 20.40 and 20.45 into my 5.4.0-56 kernel to no avail because of compilation errors. Reading that driver compiles in kernels 54 and 52 I tried to load into them and install AMDGPU Pro driver. But in this case installation script successfully compiles driver for kernel 52 or 54 but also tries to compile it against kernel 56, fails and leaves 4 packages unconfigured. So neither loading into 56 nor 54/52 works until I remove AMDGPU Pro driver that was not installed properly.


How can I prevent amdgpu-pro-install setup script from compiling against kernel 5.4.0-56? I already removed kernel 5.4.0-56 and its unsigned version, that installed automatically at removing it. Grub not lists 56 and system automatically loads into 54 as newest version but... amdgpu-pro-install script still tries to compile against kernel 56... and fails and I'm getting nothing as the result.

 

Solved. I found the solution. I still had "linux-headers" for kernel 56 package. After removing it, amdgpu-pro-install script said that it will compile against version 56, but changed its mind when was about to start this stage. So I was able to install AMDGPU Pro 20.45 on Linux Kernel 5.4.0-54 after deleting latest 56 version of it. It is working now, hurrah! Was sucking my blood for 2 or 3 hours though.

P.S. To get kernel updates back I need to install packages "linux-image-generic" and "linux-headers-generic" afaik.

I succeeded as well after following the excellent instructions from deepmindser - thanks!

 

0 Likes
Moarty
Journeyman III

I can't imagine why but downgrading to 5.4.0-54 deleted my network-manager and all of my network devices and eth0 so only loopback worked. Luckily this machine wasn't doing much so my immediate solution was just to reinstall with 18.04.5 and that seems to be going well. Unfortunate that this is the only thing stopping me from using 20.04

Can confirm the same issue on 18.04.5 using 5.4.0-56

So 5.4.0-56 is the culprit for sure, but that was pretty much established.

 

0 Likes
KristijanZic
Adept I

Do any of you experience severe screen tearing under Ubuntu 20.04 Wayland session? Or any other running Wayland?

I have a really bad issue with screen tearing with AMDGPU-PRO and pal OpenCL with RX Vega 64 Liquid under Ubuntu 20.04 Wayland session.

I'd appreciate if any of you could test for that issue and comment here:

https://community.amd.com/t5/drivers-software/ubuntu-20-04-amdgpu-pro-causes-serious-and-constant-sc...

0 Likes