cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

newxan
Adept I

Can't install amdgpu drivers on Ubuntu 20.04.2 LTS (Kernel 5.8.0-41-generic)

Did a fresh install of Ubuntu LTS (20.04.2). Which comes with kernerl version 5.8.0-41-generic.

It appears that there are no drivers that works for this kernel version. I was under the impression that Ubuntu LTS was to be supported?

I've tried the Radeon™ Software for Linux® Driver for Ubuntu 20.04.1 that was released 12/17/2020 but gives the error

Spoiler

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 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.

dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) ...
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-1188099) ...

when I try to install it.


Anyone have any suggestions of how to proceed?

Thanks

9 Replies
mountkidd
Adept II

amdgpu 20.45 does install & work with kernels 5.8.0-38 & 41 confirmed by several users of 20.04.1 LTS.  Can you where the build is breaking in /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log?   

0 Likes

I'm having the same problem.

Failure starts with:

/var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/ttm/ttm_bo_vm.c:76:24: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
76 | up_read(&vma->vm_mm->mmap_sem);
| ^~~~~~~~
| mmap_base
/var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/ttm/ttm_bo_vm.c: In function ‘amdttm_bo_vm_reserve’:
/var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/ttm/ttm_bo_vm.c:155:26: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
155 | up_read(&vma->vm_mm->mmap_sem);
| ^~~~~~~~
| mmap_base

0 Likes

Ubuntu 20.04.2 LTS isn't scheduled for release until 11Feb21 and does ship with kernel 5.8.0-??.  Here is a link with more info.

The 5.8.0 kernel, requires the 20.04 HWE stack.  The following installs the HWE stack as per the link above.

sudo apt-get install --install-recommends linux-generic-hwe-20.04 xserver-xorg-hwe-20.04

Can you confirm that the HWE headers were installed (see /usr/src/) on your systems prior to doing the amdgpu install?

0 Likes

"amdgpu 20.45 does install & work with kernels 5.8.0-38 & 41 confirmed by several users of 20.04.1 LTS."

Could you post the link to that solution?

But it doesn't compile (again) with kernel 5.8.0-43. Might be a new issue...

0 Likes

Seeing that this is 3 weeks old now - is there a fix?? 20.04.2LTS is well and truly out and about...

 

Are we looking at another Kernel downgrade?

 

/facepalm

“It is impossible to genuinely elevate yourself by pushing another person lower”
sts
Journeyman III

Dear AMD support team,

 

could you please give some status to your customers regarding that issue? It's been a while since we've got some update on this topic.

 

Best regards,

Just some customer

No, because this is standard practice for software "engineering."  They may or may not fix this if they get an urge, otherwise, they have no plans on doing anything except play air hockey and post on Instagram.

0 Likes
gerald1
Journeyman III

FYI there's a new amdgpu driver version, 20.50, which works on kernel 5.8 on Ubuntu 20.04:

 

https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-50

0 Likes