cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

aidyw
Journeyman III

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

Jump to solution

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

everton137
Journeyman III

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

Jump to solution

I just tried to uninstall the previous version amdgpu-pro-20.20 and substitute by the latest one amdgpu-pro-20.45, but I got the same error reported on my previous comment. I am also running an Ubuntu 20.04.1 with the kernel (5.4.0-56-generic). ThinkPad Lenovo E14.

deepmindser
Adept I

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

Jump to solution

I have installed fresh ubuntu 20.04.1 and didnt do any updates. Then downloaded amdgpu-pro 20.45. Then tryed ./amdgpu-install -y. The same result...

It just worked right without any kind of problem serveral hour ago. And now it is just broken. Why? it's so disappointing...

Do we have amd guys here who would try to install driver themself?

I do not even understand what is changed: ubuntu or amd driver packages?

rick4665
Adept I

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

Jump to solution

Hi baszczer, could you share how you installed the 5.4.0-52 kernel?  Any problems with the lower level kernel?

0 Likes
deepmindser
Adept I

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

Jump to 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

rick4665
Adept I

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

Jump to solution

Thanks Deepmindser, 

Installing kernel 5.4.0-54 worked for me too.  I was able to install ver 20.45 of AMD driver.

0 Likes
Rnd3sB3g13rng
Journeyman III

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

Jump to solution

Thank you! That did it:)

0 Likes
baszczer
Adept III

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

Jump to solution

@rick4665 wrote:

Hi baszczer, could you share how you installed the 5.4.0-52 kernel?  Any problems with the lower level kernel?


Hi,

yes, here you are:

sudo apt install linux-headers-5.4.0-52-generic
sudo apt install linux-image-5.4.0-52-generic 
sudo apt install linux-modules-extra-5.4.0-52-generic linux-tools-5.4.0-52-generic 

Works fine, I didn't notice any problems.

colesdav
MVP

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

Jump to solution

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
nite
Journeyman III

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

Jump to solution

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.