I don’t have an AMD gpu, so not 100% sure but I think there might be a clash between AMD’s proprietary drivers and the kernel drivers and/or Mesa.
What is the output of modinfo -n amdgpu , eglinfo -B and vulkaninfo --summary ?
I don’t have an AMD gpu, so not 100% sure but I think there might be a clash between AMD’s proprietary drivers and the kernel drivers and/or Mesa.
What is the output of modinfo -n amdgpu , eglinfo -B and vulkaninfo --summary ?
Is there a way I can remove the proprietary drivers?
maybe by just running dnf remove for the above packages, but I would consult AMD documentation first…
https://www.amd.com/en/support/download/linux-drivers.html#more-resources
I tried their documented command: sudo amdgpu-install --uninstall
But it gives me:
Unknown argument "erase" for command "dnf5". Add "--help" for more information about the arguments.
It could be a command provided by a plugin, try: dnf5 install 'dnf5-command(erase)'
I will peruse the AMD docs some more and see if I can get these uninstalled. Otherwise I’m looking at a full reinstall, I think.
dnf4 still supports the erase command
ll /usr/bin/dnf*
lrwxrwxrwx. 1 root root 4 Sep 14 02:00 /usr/bin/dnf -> dnf5
-rwxr-xr-x. 1 root root 1986 Jul 15 02:00 /usr/bin/dnf-3
lrwxrwxrwx. 1 root root 5 Jul 15 02:00 /usr/bin/dnf4 -> dnf-3
-rwxr-xr-x. 1 root root 1729128 Sep 14 02:00 /usr/bin/dnf5
-rwxr-xr-x. 1 root root 730112 Sep 14 02:00 /usr/bin/dnf5daemon-server
if amdgpu-install is a script, then you could change dnf to dnf4, or change the softlink dnf termporaiy to link to dnf4. instead of dnf5
That messages comes from the amdgpu uninstaller, which calls to the package manager.
I’m not sure how to tell it to use dnf4. I’m tempted to edit the amd script to call dnf remove instead of dnf erase. The amdgpu-install script is dated 2024.
Ok I am trying this:
In the script amdgpu-install, I changed:
fedora|rhel|centos|almalinux|rocky|ol)
PKGMAN=dnf4 # <-- changed from dnf
if [[ "${VERSION_ID%%.*}" -lt 8 ]]; then
PKGMAN=yum
fi
OS_CLASS=fedora
RMPKG=erase
;;
Then I ran:
amdgpu-uninstall
Then dnf prompted to remove 75 packages. Most of them are from repo @System, though (see full output below), so I am hesitant unless someone can tell me it’s ok or how I can reinstall required packages.
Dependencies resolved.
=======================================================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================================================
Removing:
amdgpu-core noarch 1:6.2.60203-2044426.el9 @System 0
rocm-core x86_64 6.2.3.60203-124.el9 @System 32 k
Removing dependent packages:
abrt-cli x86_64 2.17.9-1.fc44 @System 0
abrt-desktop x86_64 2.17.9-1.fc44 @System 0
comgr x86_64 2.8.0.60203-124.el9 @System 140 M
debugedit x86_64 5.3-2.fc44 @System 221 k
flatpak-builder x86_64 1.4.10-1.fc44 @System 601 k
hip-devel x86_64 6.2.41134.60203-124.el9 @System 2.2 M
hip-runtime-amd x86_64 6.2.41134.60203-124.el9 @System 26 M
hipblas x86_64 2.2.0.60203-124.el9 @System 975 k
hipblas-devel x86_64 2.2.0.60203-124.el9 @System 2.7 M
hipblaslt x86_64 0.8.0.60203-124.el9 @System 9.7 M
hipblaslt-devel x86_64 0.8.0.60203-124.el9 @System 4.7 G
hipcc x86_64 1.1.1.60203-124.el9 @System 762 k
hsa-rocr x86_64 1.14.0.60203-124.el9 @System 3.1 M
hsa-rocr-devel x86_64 1.14.0.60203-124.el9 @System 555 k
hsakmt-roct-devel x86_64 20240607.4.05.60203-124.el9 @System 668 k
libdrm-amdgpu x86_64 1:2.4.120.60203-2044426.el9 @System 224 k
libdrm-amdgpu-common noarch 1.0.0.60203-2044426.el9 @System 11 k
libdrm-amdgpu-devel x86_64 1:2.4.120.60203-2044426.el9 @System 690 k
llvm-amdgpu-libs x86_64 1:18.1.60203-2044426.el9 @System 102 M
miopen x86_64 7.1.0-6.fc44 @System 446 M
omnitrace x86_64 1.11.2.60203-124.el9 @rocm 133 M
openmp-extras-runtime x86_64 18.62.0.60203-124.el9 @System 413 M
plasma-drkonqi x86_64 6.7.5-1.fc44 @System 3.6 M
python3-perf x86_64 7.2.5-200.fc44 @System 10 M
rocblas x86_64 7.1.1-7.fc44 @System 974 M
rocblas-devel x86_64 4.2.1.60203-124.el9 @System 2.4 M
rocblas-gfx1100 x86_64 6.2.0-2.fc41 @System 451 M
rocm-comgr-devel x86_64 20-13.rocm7.1.1.fc44 @System 101 k
rocm-hip x86_64 7.1.1-3.fc44 @System 27 M
rocm-hip-devel x86_64 7.1.1-3.fc44 @System 2.4 M
rocm-hip-runtime x86_64 6.2.3.60203-124.el9 @System 10
rocm-language-runtime x86_64 6.2.3.60203-124.el9 @System 10
rocm-llvm x86_64 18.0.0.24355.60203-124.el9 @System 890 M
rocm-opencl x86_64 2.0.0.60203-124.el9 @System 1.6 M
rocm-opencl-icd-loader x86_64 1.2.60203-124.el9 @System 48 k
rocm-opencl-runtime x86_64 6.2.3.60203-124.el9 @System 10
rocminfo x86_64 1.0.0.60203-124.el9 @System 82 k
rocprofiler-register x86_64 0.4.0.60203-124.el9 @System 750 k
rocrand x86_64 3.1.0.60203-124.el9 @System 174 M
rocrand-devel x86_64 3.1.0.60203-124.el9 @System 3.7 M
rocsolver x86_64 3.26.0.60203-124.el9 @System 1.6 G
rocsparse x86_64 3.2.0.60203-124.el9 @System 1.3 G
roctracer x86_64 4.1.60203.60203-124.el9 @System 1.2 M
Removing unused dependencies:
abrt x86_64 2.17.9-1.fc44 @System 2.7 M
abrt-addon-ccpp x86_64 2.17.9-1.fc44 @System 283 k
abrt-addon-kerneloops x86_64 2.17.9-1.fc44 @System 91 k
abrt-addon-pstoreoops x86_64 2.17.9-1.fc44 @System 15 k
abrt-addon-vmcore x86_64 2.17.9-1.fc44 @System 39 k
abrt-addon-xorg x86_64 2.17.9-1.fc44 @System 62 k
abrt-dbus x86_64 2.17.9-1.fc44 @System 160 k
abrt-gui x86_64 2.17.9-1.fc44 @System 94 k
abrt-gui-libs x86_64 2.17.9-1.fc44 @System 32 k
abrt-libs x86_64 2.17.9-1.fc44 @System 69 k
abrt-plugin-bodhi x86_64 2.17.9-1.fc44 @System 40 k
abrt-tui noarch 2.17.9-1.fc44 @System 80 k
elfutils x86_64 0.196-1.fc44 @System 3.2 M
gnome-abrt x86_64 1:1.4.3-9.fc44 @System 542 k
libpciaccess-devel x86_64 0.16-17.fc44 @System 15 k
libreport-fedora x86_64 2.17.15-10.fc44 @System 53 k
libreport-plugin-kerneloops x86_64 2.17.15-10.fc44 @System 44 k
libreport-plugin-logger x86_64 2.17.15-10.fc44 @System 48 k
libreport-plugin-systemd-journal x86_64 2.17.15-10.fc44 @System 21 k
libreport-plugin-ureport x86_64 2.17.15-10.fc44 @System 76 k
libtraceevent x86_64 1.8.4-5.fc44 @System 1.4 M
python3-abrt x86_64 2.17.9-1.fc44 @System 72 k
python3-abrt-addon noarch 2.17.9-1.fc44 @System 19 k
python3-beautifulsoup4 noarch 4.15.0-1.fc44 @System 1.1 M
python3-humanize noarch 4.15.0-2.fc44 @System 231 k
python3-soupsieve noarch 2.8.3-1.fc44 @System 322 k
python3-typing-extensions noarch 4.16.0-4.fc44 @System 552 k
rocm-device-libs x86_64 1.0.0.60203-124.el9 @rocm 3.2 M
rocm-smi-lib x86_64 7.3.0.60203-124.el9 @rocm 2.8 M
rocprofiler x86_64 2.0.60203.60203-124.el9 @rocm 3.5 M
Transaction Summary
=======================================================================================================================================================================
Remove 75 Packages
Freed space: 11 G
yeah, this looks suspicious,
revert the change and change the line
RMPKG=erase
to RMPKG=remove
I changed the script to go back to dnf and use remove instead of erase.
I honestly don’t know if this is better or worse.
Now I get:
Package Arch Version Repository Size
Removing:
amdgpu-core noarch 1:6.2.60203-2044426.el9 amdgpu 0.0 B
rocm-core x86_64 0:6.2.3.60203-124.el9 rocm 31.6 KiB
Removing dependent packages:
abrt-cli x86_64 0:2.17.9-1.fc44 updates 0.0 B
abrt-desktop x86_64 0:2.17.9-1.fc44 updates 0.0 B
flatpak-builder x86_64 0:1.4.10-1.fc44 updates 600.8 KiB
hip-devel x86_64 0:6.2.41134.60203-124.el9 rocm 2.2 MiB
hipblas-devel x86_64 0:2.2.0.60203-124.el9 rocm 2.7 MiB
hipblaslt-devel x86_64 0:0.8.0.60203-124.el9 rocm 4.7 GiB
libdrm-amdgpu x86_64 1:2.4.120.60203-2044426.el9 amdgpu 224.5 KiB
llvm-amdgpu-libs x86_64 1:18.1.60203-2044426.el9 amdgpu 102.4 MiB
miopen x86_64 0:7.1.0-6.fc44 fedora 445.9 MiB
omnitrace x86_64 0:1.11.2.60203-124.el9 <unknown> 132.6 MiB
plasma-drkonqi x86_64 0:6.7.5-1.fc44 updates 3.6 MiB
python3-perf x86_64 0:7.2.5-200.fc44 updates 10.1 MiB
rocblas-devel x86_64 0:4.2.1.60203-124.el9 rocm 2.4 MiB
rocblas-gfx1100 x86_64 0:6.2.0-2.fc41 fedora 450.7 MiB
rocm-comgr-devel x86_64 0:20-13.rocm7.1.1.fc44 fedora 100.5 KiB
rocm-device-libs x86_64 0:1.0.0.60203-124.el9 <unknown> 3.2 MiB
rocm-hip x86_64 0:7.1.1-3.fc44 fedora 27.0 MiB
rocm-hip-runtime x86_64 0:6.2.3.60203-124.el9 rocm 10.0 B
rocm-opencl-icd-loader x86_64 0:1.2.60203-124.el9 rocm 47.9 KiB
rocm-opencl-runtime x86_64 0:6.2.3.60203-124.el9 rocm 10.0 B
rocm-smi-lib x86_64 0:7.3.0.60203-124.el9 <unknown> 2.8 MiB
rocprofiler x86_64 0:2.0.60203.60203-124.el9 <unknown> 3.5 MiB
rocrand x86_64 0:3.1.0.60203-124.el9 rocm 174.1 MiB
Removing unused dependencies:
R-srpm-macros noarch 0:1.3.7-2.fc44 updates 3.5 KiB
abrt-addon-ccpp x86_64 0:2.17.9-1.fc44 updates 283.1 KiB
abrt-addon-kerneloops x86_64 0:2.17.9-1.fc44 updates 90.8 KiB
abrt-addon-pstoreoops x86_64 0:2.17.9-1.fc44 updates 14.5 KiB
abrt-addon-vmcore x86_64 0:2.17.9-1.fc44 updates 38.6 KiB
abrt-addon-xorg x86_64 0:2.17.9-1.fc44 updates 61.8 KiB
abrt-gui x86_64 0:2.17.9-1.fc44 updates 94.0 KiB
abrt-gui-libs x86_64 0:2.17.9-1.fc44 updates 31.7 KiB
abrt-plugin-bodhi x86_64 0:2.17.9-1.fc44 updates 39.9 KiB
abrt-tui noarch 0:2.17.9-1.fc44 updates 79.8 KiB
add-determinism x86_64 0:0.7.3-2.fc44 updates 2.2 MiB
annobin-docs noarch 0:13.14-1.fc44 updates 99.3 KiB
annobin-plugin-gcc x86_64 0:13.14-1.fc44 updates 699.3 KiB
ansible-srpm-macros noarch 0:1-20.1.fc44 fedora 35.7 KiB
appstream-compose x86_64 0:1.1.3-1.fc44 updates 371.3 KiB
blake3 x86_64 0:1.8.3-3.fc44 fedora 114.6 KiB
build-reproducibility-srpm-macros noarch 0:0.7.3-2.fc44 updates 1.2 KiB
ccache x86_64 0:4.12.3-1.fc44 fedora 2.1 MiB
cmake-srpm-macros noarch 0:4.3.0-1.fc44 fedora 524.0 B
comgr x86_64 0:2.8.0.60203-124.el9 rocm 140.4 MiB
debugedit x86_64 0:5.3-2.fc44 updates 220.8 KiB
dwz x86_64 0:0.16-3.fc44 fedora 290.9 KiB
ed x86_64 0:1.22.5-2.fc44 fedora 149.7 KiB
efi-srpm-macros noarch 0:6-6.fc44 fedora 40.2 KiB
elfutils x86_64 0:0.196-1.fc44 updates 3.2 MiB
erlang-srpm-macros noarch 0:0.3.11-1.fc44 fedora 1.9 KiB
fonts-srpm-macros noarch 1:5.0.0-2.fc44 fedora 55.8 KiB
forge-srpm-macros noarch 0:0.4.0-4.fc44 fedora 38.9 KiB
fpc-srpm-macros noarch 0:1.3-16.fc44 fedora 144.0 B
gap-srpm-macros noarch 0:2-2.fc44 fedora 2.1 KiB
gcc-plugin-annobin x86_64 0:16.2.1-2.fc44 updates 57.2 KiB
ghc-srpm-macros noarch 0:1.10-1.fc44 fedora 792.0 B
gnat-srpm-macros noarch 0:7-2.fc44 fedora 1.0 KiB
gnome-abrt x86_64 1:1.4.3-9.fc44 fedora 541.5 KiB
gnome-srpm-macros noarch 0:1.0-1.fc44 updates 3.5 KiB
go-srpm-macros noarch 0:3.8.0-2.fc44 fedora 61.9 KiB
gpgverify noarch 0:2.2-4.fc44 fedora 8.7 KiB
hip-runtime-amd x86_64 0:6.2.41134.60203-124.el9 rocm 25.9 MiB
hipblas x86_64 0:2.2.0.60203-124.el9 rocm 975.3 KiB
hipblaslt x86_64 0:0.8.0.60203-124.el9 rocm 9.7 MiB
hipcc x86_64 0:1.1.1.60203-124.el9 rocm 762.5 KiB
hsa-rocr x86_64 0:1.14.0.60203-124.el9 rocm 3.1 MiB
hsa-rocr-devel x86_64 0:1.14.0.60203-124.el9 rocm 555.5 KiB
hsakmt-roct-devel x86_64 0:20240607.4.05.60203-124.el9 rocm 668.2 KiB
java-srpm-macros noarch 0:1-8.fc44 fedora 870.0 B
kernel-srpm-macros noarch 0:1.0-28.fc44 fedora 1.9 KiB
libbabeltrace2 x86_64 0:2.1.2-5.fc44 fedora 3.1 MiB
libdrm-amdgpu-common noarch 0:1.0.0.60203-2044426.el9 amdgpu 10.6 KiB
libdrm-amdgpu-devel x86_64 1:2.4.120.60203-2044426.el9 amdgpu 690.3 KiB
libreport-fedora x86_64 0:2.17.15-10.fc44 fedora 53.5 KiB
libreport-plugin-kerneloops x86_64 0:2.17.15-10.fc44 fedora 43.7 KiB
libreport-plugin-logger x86_64 0:2.17.15-10.fc44 fedora 47.6 KiB
libtraceevent x86_64 0:1.8.4-5.fc44 fedora 1.4 MiB
linkdupes x86_64 0:0.7.3-2.fc44 updates 780.9 KiB
lua-srpm-macros noarch 0:1-17.fc44 fedora 1.3 KiB
ocaml-srpm-macros noarch 0:11-3.fc44 fedora 1.9 KiB
openblas-srpm-macros noarch 0:2-21.fc44 fedora 112.0 B
openmp-extras-runtime x86_64 0:18.62.0.60203-124.el9 rocm 413.2 MiB
ostree x86_64 0:2026.4-1.fc44 updates 624.1 KiB
package-notes-srpm-macros noarch 0:0.20-1.fc44 updates 1.6 KiB
patch x86_64 0:2.8-4.fc44 fedora 226.6 KiB
perl x86_64 4:5.42.3-525.fc44 updates 0.0 B
(Omitted: many, many perl packages)
pyproject-srpm-macros noarch 0:1.23.2-1.fc44 updates 3.4 KiB
python-setuptools-wheel noarch 0:80.10.2-3.fc44 fedora 988.0 KiB
python-srpm-macros noarch 0:3.14-12.fc44 fedora 51.6 KiB
python3-abrt-addon noarch 0:2.17.9-1.fc44 updates 18.5 KiB
python3-beautifulsoup4 noarch 0:4.15.0-1.fc44 updates 1.1 MiB
python3-humanize noarch 0:4.15.0-2.fc44 fedora 231.5 KiB
python3-pygdbmi noarch 0:0.11.0.0-12.fc44 fedora 149.8 KiB
python3-sentry-sdk noarch 0:2.48.0-2.fc44 fedora 3.4 MiB
python3-soupsieve noarch 0:2.8.3-1.fc44 fedora 322.0 KiB
python3.9 x86_64 0:3.9.25-11.fc44 updates 28.2 KiB
python3.9-libs x86_64 0:3.9.25-11.fc44 updates 30.8 MiB
python3.9-tkinter x86_64 0:3.9.25-11.fc44 updates 1.6 MiB
qt5-srpm-macros noarch 0:5.15.18-2.fc44 fedora 500.0 B
qt6-srpm-macros noarch 0:6.11.2-1.fc44 updates 472.0 B
redhat-rpm-config noarch 0:344-2.fc44 updates 183.7 KiB
rocblas x86_64 0:7.1.1-7.fc44 fedora 973.7 MiB
rocm-comgr x86_64 0:20-13.rocm7.1.1.fc44 fedora 131.4 MiB
rocm-hip-devel x86_64 0:7.1.1-3.fc44 fedora 2.4 MiB
rocm-language-runtime x86_64 0:6.2.3.60203-124.el9 rocm 10.0 B
rocm-llvm x86_64 0:18.0.0.24355.60203-124.el9 rocm 889.7 MiB
rocm-opencl x86_64 0:2.0.0.60203-124.el9 rocm 1.6 MiB
rocm-runtime x86_64 0:7.1.1-6.fc44 fedora 3.3 MiB
rocm-runtime-devel x86_64 0:7.1.1-6.fc44 fedora 683.4 KiB
rocminfo x86_64 0:1.0.0.60203-124.el9 rocm 82.4 KiB
rocprofiler-register x86_64 0:0.4.0.60203-124.el9 rocm 749.8 KiB
rocrand-devel x86_64 0:3.1.0.60203-124.el9 rocm 3.7 MiB
rocsolver x86_64 0:3.26.0.60203-124.el9 rocm 1.6 GiB
rocsparse x86_64 0:3.2.0.60203-124.el9 rocm 1.3 GiB
roctracer x86_64 0:4.1.60203.60203-124.el9 rocm 1.2 MiB
rust-srpm-macros noarch 0:28.5-1.fc44 updates 5.5 KiB
sombok x86_64 0:2.4.0-25.fc44 fedora 131.5 KiB
systemtap-sdt-devel x86_64 0:5.5-2.fc44 updates 184.5 KiB
systemtap-sdt-dtrace x86_64 0:5.5-2.fc44 updates 181.1 KiB
valgrind-devel x86_64 1:3.27.1-1.fc44 updates 535.4 KiB
zig-srpm-macros noarch 0:1-8.fc44 fedora 1.3 KiB
Transaction Summary:
Removing: 267 packages
After this operation, 12 GiB will be freed (install 0 B, remove 12 GiB).
ok, then go with the dnf4 variant, that looked much saver.
The abrt stuff is being deprecated and you can always reinstall most of the packages.
those amd drivers seem to be ancient, and should have been removed long time ago.
UPDATE: add the flag ‘–noautoremove’ to the script. this should prevent the removal of the unused dependencies…
and do not reboot.
Just keep this in your back pocket for now, If you encounter issues or the GUI fails to start after removal, you may need to reinstall the default open-source AMD drivers:
sudo dnf reinstall xorg-x11-drv-amdgpu mesa-libGL mesa-vulkan-drivers
sudo dracut -f
Alright, I haven’t accepted it yet. I added --noautoremove to the command line, which looks like it gets passed each of the dnf invocations.
# amdgpu-uninstall --noautoremove
Dependencies resolved.
=======================================================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================================================
Removing:
amdgpu-core noarch 1:6.2.60203-2044426.el9 @System 0
rocm-core x86_64 6.2.3.60203-124.el9 @System 32 k
Removing dependent packages:
abrt-addon-ccpp x86_64 2.17.9-1.fc44 @System 283 k
abrt-cli x86_64 2.17.9-1.fc44 @System 0
abrt-desktop x86_64 2.17.9-1.fc44 @System 0
abrt-tui noarch 2.17.9-1.fc44 @System 80 k
comgr x86_64 2.8.0.60203-124.el9 @System 140 M
debugedit x86_64 5.3-2.fc44 @System 221 k
elfutils x86_64 0.196-1.fc44 @System 3.2 M
flatpak-builder x86_64 1.4.10-1.fc44 @System 601 k
hip-devel x86_64 6.2.41134.60203-124.el9 @System 2.2 M
hip-runtime-amd x86_64 6.2.41134.60203-124.el9 @System 26 M
hipblas x86_64 2.2.0.60203-124.el9 @System 975 k
hipblas-devel x86_64 2.2.0.60203-124.el9 @System 2.7 M
hipblaslt x86_64 0.8.0.60203-124.el9 @System 9.7 M
hipblaslt-devel x86_64 0.8.0.60203-124.el9 @System 4.7 G
hipcc x86_64 1.1.1.60203-124.el9 @System 762 k
hsa-rocr x86_64 1.14.0.60203-124.el9 @System 3.1 M
hsa-rocr-devel x86_64 1.14.0.60203-124.el9 @System 555 k
hsakmt-roct-devel x86_64 20240607.4.05.60203-124.el9 @System 668 k
libdrm-amdgpu x86_64 1:2.4.120.60203-2044426.el9 @System 224 k
libdrm-amdgpu-common noarch 1.0.0.60203-2044426.el9 @System 11 k
libdrm-amdgpu-devel x86_64 1:2.4.120.60203-2044426.el9 @System 690 k
llvm-amdgpu-libs x86_64 1:18.1.60203-2044426.el9 @System 102 M
miopen x86_64 7.1.0-6.fc44 @System 446 M
omnitrace x86_64 1.11.2.60203-124.el9 @rocm 133 M
openmp-extras-runtime x86_64 18.62.0.60203-124.el9 @System 413 M
plasma-drkonqi x86_64 6.7.5-1.fc44 @System 3.6 M
python3-perf x86_64 7.2.5-200.fc44 @System 10 M
rocblas x86_64 7.1.1-7.fc44 @System 974 M
rocblas-devel x86_64 4.2.1.60203-124.el9 @System 2.4 M
rocblas-gfx1100 x86_64 6.2.0-2.fc41 @System 451 M
rocm-comgr-devel x86_64 20-13.rocm7.1.1.fc44 @System 101 k
rocm-device-libs x86_64 1.0.0.60203-124.el9 @rocm 3.2 M
rocm-hip x86_64 7.1.1-3.fc44 @System 27 M
rocm-hip-devel x86_64 7.1.1-3.fc44 @System 2.4 M
rocm-hip-runtime x86_64 6.2.3.60203-124.el9 @System 10
rocm-language-runtime x86_64 6.2.3.60203-124.el9 @System 10
rocm-llvm x86_64 18.0.0.24355.60203-124.el9 @System 890 M
rocm-opencl x86_64 2.0.0.60203-124.el9 @System 1.6 M
rocm-opencl-icd-loader x86_64 1.2.60203-124.el9 @System 48 k
rocm-opencl-runtime x86_64 6.2.3.60203-124.el9 @System 10
rocm-smi-lib x86_64 7.3.0.60203-124.el9 @rocm 2.8 M
rocminfo x86_64 1.0.0.60203-124.el9 @System 82 k
rocprofiler x86_64 2.0.60203.60203-124.el9 @rocm 3.5 M
rocprofiler-register x86_64 0.4.0.60203-124.el9 @System 750 k
rocrand x86_64 3.1.0.60203-124.el9 @System 174 M
rocrand-devel x86_64 3.1.0.60203-124.el9 @System 3.7 M
rocsolver x86_64 3.26.0.60203-124.el9 @System 1.6 G
rocsparse x86_64 3.2.0.60203-124.el9 @System 1.3 G
roctracer x86_64 4.1.60203.60203-124.el9 @System 1.2 M
Transaction Summary
=======================================================================================================================================================================
Remove 51 Packages
Freed space: 11 G
What do I do after this, if I don’t reboot?
Also, I am currently still booted into kernel 7.2.4.
looks fine. go for it.
rerun dnf list --installed | grep -E "(amdgpu|rocm)$" and see if there still something installed. check also with dnf list --installed roc\*
those should probably be removed.
then
sudo dnf install python3-perf elfutils miopen plasma-drkonqi
sudo dnf reinstall libdrm\* mesa\*
not sure about xorg-x11-drv-amdgpu , reinstall if it’s installed on your system.
then sudo dracut -f reboot and start the same kernel version.
just checked. I have these installed on my system…(f45 beta)
$ rpm -qa roc\*
rocm-smi-7.2.1-3.fc45.x86_64
roc-toolkit-0.4.0-7.fc45.x86_64
I ran the uninstall. This was the summary:
Removed:
abrt-addon-ccpp-2.17.9-1.fc44.x86_64 abrt-cli-2.17.9-1.fc44.x86_64 abrt-desktop-2.17.9-1.fc44.x86_64
abrt-tui-2.17.9-1.fc44.noarch amdgpu-core-1:6.2.60203-2044426.el9.noarch comgr-2.8.0.60203-124.el9.x86_64
debugedit-5.3-2.fc44.x86_64 elfutils-0.196-1.fc44.x86_64 flatpak-builder-1.4.10-1.fc44.x86_64
hip-devel-6.2.41134.60203-124.el9.x86_64 hip-runtime-amd-6.2.41134.60203-124.el9.x86_64 hipblas-2.2.0.60203-124.el9.x86_64
hipblas-devel-2.2.0.60203-124.el9.x86_64 hipblaslt-0.8.0.60203-124.el9.x86_64 hipblaslt-devel-0.8.0.60203-124.el9.x86_64
hipcc-1.1.1.60203-124.el9.x86_64 hsa-rocr-1.14.0.60203-124.el9.x86_64 hsa-rocr-devel-1.14.0.60203-124.el9.x86_64
hsakmt-roct-devel-20240607.4.05.60203-124.el9.x86_64 libdrm-amdgpu-1:2.4.120.60203-2044426.el9.x86_64 libdrm-amdgpu-common-1.0.0.60203-2044426.el9.noarch
libdrm-amdgpu-devel-1:2.4.120.60203-2044426.el9.x86_64 llvm-amdgpu-libs-1:18.1.60203-2044426.el9.x86_64 miopen-7.1.0-6.fc44.x86_64
omnitrace-1.11.2.60203-124.el9.x86_64 openmp-extras-runtime-18.62.0.60203-124.el9.x86_64 plasma-drkonqi-6.7.5-1.fc44.x86_64
python3-perf-7.2.5-200.fc44.x86_64 rocblas-7.1.1-7.fc44.x86_64 rocblas-devel-4.2.1.60203-124.el9.x86_64
rocblas-gfx1100-6.2.0-2.fc41.x86_64 rocm-comgr-devel-20-13.rocm7.1.1.fc44.x86_64 rocm-core-6.2.3.60203-124.el9.x86_64
rocm-device-libs-1.0.0.60203-124.el9.x86_64 rocm-hip-7.1.1-3.fc44.x86_64 rocm-hip-devel-7.1.1-3.fc44.x86_64
rocm-hip-runtime-6.2.3.60203-124.el9.x86_64 rocm-language-runtime-6.2.3.60203-124.el9.x86_64 rocm-llvm-18.0.0.24355.60203-124.el9.x86_64
rocm-opencl-2.0.0.60203-124.el9.x86_64 rocm-opencl-icd-loader-1.2.60203-124.el9.x86_64 rocm-opencl-runtime-6.2.3.60203-124.el9.x86_64
rocm-smi-lib-7.3.0.60203-124.el9.x86_64 rocminfo-1.0.0.60203-124.el9.x86_64 rocprofiler-2.0.60203.60203-124.el9.x86_64
rocprofiler-register-0.4.0.60203-124.el9.x86_64 rocrand-3.1.0.60203-124.el9.x86_64 rocrand-devel-3.1.0.60203-124.el9.x86_64
rocsolver-3.26.0.60203-124.el9.x86_64 rocsparse-3.2.0.60203-124.el9.x86_64 roctracer-4.1.60203.60203-124.el9.x86_64
Then:
# dnf list --installed | grep -E "(amdgpu|rocm)$"
(no output)
# dnf list --installed roc\*
Installed packages (available for reinstall, available for upgrade)
rocm-comgr.x86_64 20-13.rocm7.1.1.fc44 fedora
rocm-llvm-filesystem.x86_64 20-13.rocm7.1.1.fc44 fedora
rocm-rpm-macros-modules.noarch 7.1.0-9.fc44 fedora
rocm-runtime.x86_64 7.1.1-6.fc44 fedora
rocm-runtime-devel.x86_64 7.1.1-6.fc44 fedora
rocm-smi.x86_64 7.1.1-3.fc44 fedora
Then:
# dnf remove roc\* --noautoremove
Package Arch Version Repository Size
Removing:
rocm-comgr x86_64 0:20-13.rocm7.1.1.fc44 fedora 131.4 MiB
rocm-llvm-filesystem x86_64 0:20-13.rocm7.1.1.fc44 fedora 0.0 B
rocm-rpm-macros-modules noarch 0:7.1.0-9.fc44 fedora 27.0 KiB
rocm-runtime x86_64 0:7.1.1-6.fc44 fedora 3.3 MiB
rocm-runtime-devel x86_64 0:7.1.1-6.fc44 fedora 683.4 KiB
rocm-smi x86_64 0:7.1.1-3.fc44 fedora 2.7 MiB
Transaction Summary:
Removing: 6 packages
After this operation, 138 MiB will be freed (install 0 B, remove 138 MiB).
Which I confirmed.
Running transaction
[1/7] Prepare transaction 100% | 21.0 B/s | 6.0 B | 00m00s
[2/7] Removing rocm-runtime-devel-0:7.1.1-6.fc44.x86_64 100% | 2.0 KiB/s | 28.0 B | 00m00s
[3/7] Removing rocm-rpm-macros-modules-0:7.1.0-9.fc44.noarch 100% | 2.9 KiB/s | 21.0 B | 00m00s
[4/7] Removing rocm-llvm-filesystem-0:20-13.rocm7.1.1.fc44.x86_64 100% | 11.1 KiB/s | 137.0 B | 00m00s
[5/7] Removing rocm-runtime-0:7.1.1-6.fc44.x86_64 100% | 750.0 B/s | 9.0 B | 00m00s
[6/7] Removing rocm-smi-0:7.1.1-3.fc44.x86_64 100% | 1.2 KiB/s | 18.0 B | 00m00s
[7/7] Removing rocm-comgr-0:20-13.rocm7.1.1.fc44.x86_64 100% | 17.0 B/s | 10.0 B | 00m01s
Complete!
Then I ran the command you gave me:
sudo dnf install python3-perf elfutils miopen plasma-drkonqi
sudo dnf reinstall libdrm\* mesa\* # added dnf
The xorg-x11-drv-amdgpu was not installed.
Then I ran:
sudo dracut -f
I will report back after reboot.
UPDATE:
I powered off and cold booted. Despite holding down ctrl, it just booted straight into 7.2.5. Issue was not resolved. I rebooted, holding down ctrl again, got 7.2.4 selected this time (which is where I did the changes before).
The issue is still the same: software rendering (slow), and the desktop is black (with mouse cursor) even on 7.2.4. The CPU cores are still 100% busy unless I switch to text console. Oddly enough I see my startup programs running in the background. I was also prompted to enter credentials for flatpak metadata update, but all I could see was the password dialog. It accepted my password and went back to the black screen.
the rocm packages looked like fedora44 rpms, so better install those again.
the first dnf4 erase preview had these three packages listed as unused dependencies…
rocm-device-libs x86_64 1.0.0.60203-124.el9 @rocm 3.2 M
rocm-smi-lib x86_64 7.3.0.60203-124.el9 @rocm 2.8 M
rocprofiler x86_64 2.0.60203.60203-124.el9 @rocm 3.5 M
but those were removed by amdgpu-uninstall --noautoremove
I still have the rocm and amdgpu repos. Should they be removed?
dnf repo list
repo id repo name
adoptium-temurin-java-repository Adoptium
amdgpu AMDGPU 6.2.3 repository
code Visual Studio Code
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
docker-ce-stable Docker CE Stable - x86_64
fedora Fedora 44 - x86_64
fedora-cisco-openh264 Fedora 44 openh264 (From Cisco) - x86_64
gitlab.com_paulcarroty_vscodium_repo gitlab.com_paulcarroty_vscodium_repo
google-chrome google-chrome
rocm ROCm 6.2.3 repository
rpmfusion-free RPM Fusion for Fedora 44 - Free
rpmfusion-free-updates RPM Fusion for Fedora 44 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 44 - Nonfree
rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 44 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam RPM Fusion for Fedora 44 - Nonfree - Steam
rpmfusion-nonfree-updates RPM Fusion for Fedora 44 - Nonfree - Updates
updates Fedora 44 - x86_64 - Updates
Which specific packages should I reinstall?
yes remove those old repos, or at least deactivate.
probably these.
But I am not sure if you really need those. There is a lot more available
see dnf list --available rocm\*.
The more important question is, does mesa now find the GPU?
eglinfo -B and vulkaninfo --summary
I can no longer get to a desktop so this may not be accurate since I run it over ssh:
sudo vulkaninfo --summary
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -9 from call to vkCreateInstance in ICD /usr/lib64/libvulkan_dzn.so. Skipping this driver.
'DISPLAY' environment variable not set... skipping surface info
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
WARNING: [../src/amd/vulkan/radv_physical_device.c:2597] Code 0 : failed to query GPU info (VK_ERROR_INITIALIZATION_FAILED)
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs: Call to 'vkEnumeratePhysicalDevices' in ICD /usr/lib64/libvulkan_radeon.so failed with error code -3
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
WARNING: [../src/amd/vulkan/radv_physical_device.c:2597] Code 0 : failed to query GPU info (VK_ERROR_INITIALIZATION_FAILED)
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs: Call to 'vkEnumeratePhysicalDevices' in ICD /usr/lib64/libvulkan_radeon.so failed with error code -3
WARNING: [Loader Message] Code 0 : ICD for selected physical device does not export vkGetPhysicalDeviceDisplayPlanePropertiesKHR!
WARNING: [Loader Message] Code 0 : ICD for selected physical device does not export vkGetPhysicalDeviceDisplayPropertiesKHR!
==========
VULKANINFO
==========
Vulkan Instance Version: 1.4.341
Instance Extensions: count = 26
-------------------------------
VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 10
VK_EXT_debug_utils : extension revision 2
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_EXT_headless_surface : extension revision 1
VK_EXT_layer_settings : extension revision 2
VK_EXT_surface_maintenance1 : extension revision 1
VK_EXT_swapchain_colorspace : extension revision 5
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_maintenance1 : extension revision 1
VK_KHR_surface_protected_capabilities : extension revision 1
VK_KHR_wayland_surface : extension revision 6
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
VK_LUNARG_direct_driver_loading : extension revision 1
Instance Layers: count = 2
--------------------------
VK_LAYER_MESA_anti_lag Open-source implementation of the VK_AMD_anti_lag extension. 1.4.303 version 1
VK_LAYER_MESA_device_select Linux device selection layer 1.4.303 version 1
Devices:
========
GPU0:
apiVersion = 1.4.354
driverVersion = 26.2.2
vendorID = 0x10005
deviceID = 0x0000
deviceType = PHYSICAL_DEVICE_TYPE_CPU
deviceName = llvmpipe (LLVM 22.1.8, 256 bits)
driverID = DRIVER_ID_MESA_LLVMPIPE
driverName = llvmpipe
driverInfo = Mesa 26.2.2 (LLVM 22.1.8)
conformanceVersion = 1.3.1.1
deviceUUID = 6d657361-3236-2e32-2e32-000000000000
driverUUID = 6c6c766d-7069-7065-5555-494400000000
eglinfo -B
GBM platform:
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Wayland platform:
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
MESA-EGL: warning: egl: failed to create dri2 screen
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
MESA-EGL: warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
X11 platform:
eglinfo: eglInitialize failed
Surfaceless platform:
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
MESA-EGL: warning: egl: failed to create dri2 screen
MESA-EGL: warning: DRI2: failed to create screen
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
MESA-EGL: warning: egl: failed to create dri2 screen
MESA-EGL: warning: DRI2: failed to create screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device platform:
Device #0:
Platform Device platform:
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
MESA-EGL: warning: egl: failed to create dri2 screen
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
MESA: error: amdgpu: ac_query_gpu_info failed.
MESA-EGL: warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed
Device #1:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.2
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.2
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 22.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.2
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
UPDATE: I ran sudo dnf config-manager disable amdgpu rocm to disable the repos and they dropped off the list.
no desktop?
ok then def. reinstall those removed rocm packages…
Ok, I reinstalled them (output below). Do I reboot now? And when I do, do I choose 7.2.4 or let it go to 7.2.5?
EDIT: for clarification: “no desktop” means what I had before with a black screen, laggy mouse cursor, but the wallpaper and panel aren’t rendering.
# sudo dnf install rocm-comgr.x86_64 rocm-llvm-filesystem.x86_64 rocm-rpm-macros-modules.noarch rocm-runtime.x86_64 rocm-runtime-devel.x86_64 rocm-smi.x86_64
Updating and loading repositories:
Repositories loaded.
Package "rocm-comgr-20-13.rocm7.1.1.fc44.x86_64" is already installed.
Package "rocm-runtime-7.1.1-6.fc44.x86_64" is already installed.
Package "rocm-runtime-devel-7.1.1-6.fc44.x86_64" is already installed.
Package Arch Version Repository Size
Installing:
rocm-llvm-filesystem x86_64 0:20-13.rocm7.1.1.fc44 fedora 0.0 B
rocm-rpm-macros-modules noarch 0:7.1.0-9.fc44 fedora 27.0 KiB
rocm-smi x86_64 0:7.1.1-3.fc44 fedora 2.7 MiB
Transaction Summary:
Installing: 3 packages
Total size of inbound packages is 667 KiB. Need to download 667 KiB.
After this operation, 3 MiB extra will be used (install 3 MiB, remove 0 B).