dkms status
returns:
amdgpu/5.18.13-1580598.22.04, 5.19.0-45-generic, x86_64: installed
NOTE: This shows there is a amdgpu dkms module.
dkms status
returns:
Error! Could not locate dkms.conf file. File: /var/lib/dkms/amdgpu/5.18.13-1577590.22.04/source/dkms.conf does not exist.
NOTE: dkms relies upon the source/dmks.conf file.
for i in /var/lib/dkms/*/[^k]*/source; do [ -e "$i" ] || echo "$i";done
returns:
/var/lib/dkms/amdgpu/5.18.13-1577590.22.04/source/
NOTE: This confirms the offending module.
Go to the /var/lib/dkms directory for the specific module reporting the error.
cd /var/lib/dkms/amdgpu
NOTE: In this example, the amdgpu module having the issue
ls -al /var/lib/dkms/amdgpu/
returns:
total 8.0K drwxr-xr-x 3 root root 4.0K Jun 2 15:19 5.18.13-1577590.22.04/ drwxr-xr-x 3 root root 4.0K Jun 16 02:06 5.18.13-1580598.22.04/ lrwxrwxrwx 1 root root 46 Jun 16 02:06 kernel-5.19.0-45-generic-x86_64 -> 5.18.13-1580598.22.04/5.19.0-45-generic/x86_64/
NOTE: This shows 2 directories; and a link.
sudo mv 5.18.13-1577590.22.04/ /home/peter/dkms_amd/
NOTE: For safety, the directory is just moved away to a backup directory, just in case it might be needed to be restored back.
WARNING: Do not remove the directory that is associated with the link, or all the sub-directories!
ls -al /var/lib/dkms/amdgpu/
returns:
total 8.0K drwxr-xr-x 3 root root 4.0K Jun 16 02:06 5.18.13-1580598.22.04/ lrwxrwxrwx 1 root root 46 Jun 16 02:06 kernel-5.19.0-45-generic-x86_64 -> 5.18.13-1580598.22.04/5.19.0-45-generic/x86_64/
NOTE: This shows only 1 directory.
The source of the actual module is found in /usr/src.
The link, in /var/lib/dkms/amdgpu should be pointing to the actual source.
ls /usr/src/amdgpu-5.18.13-1580598.22.04/
returns:
amd dkms.conf drm_gem_ttm_helper.c firmware include Makefile scheduler ttm
NOTE: Good!
Rebuild all modules for the currently running kernel:
dkms autoinstall
NOTE: If this does not return errors then it has worked!
To see if the above changes have corrected the error.
dkms status
returns:
amdgpu/5.18.13-1580598.22.04, 5.19.0-45-generic, x86_64: installed
NOTE: This shows there is a amdgpu dkms module.
sudo update-initramfs -u
returns:
[sudo] password for peter: update-initramfs: Generating /boot/initrd.img-5.19.0-45-generic W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_10_sos.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_imu.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_rlc.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mec.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_me.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_pfp.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_3.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes1.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_10.bin for module amdgpu
NOTE: The warnings indicate that some firmware files are not found.