Add rocky support to amdgpu-install
Describe the problem
Rocky is a new enterprise linux variant of RHEL|Centos. amdgpu-install
should support it (and can pretty easily).
Currently /usr/bin/amdgpu-install
(after installation) uses the bash function os_release()
to guard installation for various distributions. Centos packages should work without modification on Rocky. I changed the expression rhel|centos)
to rhel|centos|rocky)
in my installed copy of /usr/bin/amdgpu-install
and then ran the script to get the latest Centos 8.5 drivers.
Describe the new feature behavior
Updating the script allows Rocky users to install newer amdgpu and rocm packages without hacking the script. Nothing in userspace is changed. The documentation should reflect Rocky as a supported platform.
How do you plan to validate this feature
See above. I installed the following packages on Rocky 8.5 x86_64 this way:
$ rpm -qa|grep -E 'amdgpu|rocm'
mesa-amdgpu-libxatracker-21.3.0.40500-1331380.el8.x86_64
rocm-device-libs-1.0.0.40500-56.el8.x86_64
amdgpu-dkms-firmware-5.11.32.40500-1331380.el8.noarch
libdrm-amdgpu-2.4.107.40500-1331380.el8.x86_64
mesa-amdgpu-libEGL-21.3.0.40500-1331380.el8.x86_64
mesa-amdgpu-libGL-21.3.0.40500-1331380.el8.x86_64
rocm-opencl-2.0.0.40500-56.el8.x86_64
rocm-core-4.5.0.40500-56.el8.x86_64
mesa-amdgpu-libGLES-21.3.0.40500-1331380.el8.x86_64
amdgpu-dkms-5.11.32.40500-1331380.el8.noarch
libwayland-amdgpu-egl-1.18.0.40500-1331380.el8.x86_64
libdrm-amdgpu-common-1.0.0.40500-1331380.el8.noarch
libwayland-amdgpu-client-1.18.0.40500-1331380.el8.x86_64
rocminfo-1.0.0.40500-56.el8.x86_64
mesa-amdgpu-dri-drivers-21.3.0.40500-1331380.el8.x86_64
rocm-language-runtime-4.5.0.40500-56.el8.x86_64
amdgpu-core-21.40.40500-1331380.el8.noarch
mesa-amdgpu-vdpau-drivers-21.3.0.40500-1331380.el8.x86_64
rocm-hip-runtime-4.5.0.40500-56.el8.x86_64
llvm-amdgpu-libs-12.0.40500-1331380.el8.x86_64
rocm-llvm-13.0.0.21422.40500-56.el8.x86_64
mesa-amdgpu-filesystem-21.3.0.40500-1331380.el8.x86_64
mesa-amdgpu-libgbm-21.3.0.40500-1331380.el8.x86_64
xorg-x11-amdgpu-drv-amdgpu-24.1.0-1331380.el8.x86_64
amdgpu-install-21.40.40500-1334189.el8.noarch
rocm-opencl-runtime-4.5.0.40500-56.el8.x86_64
mesa-amdgpu-libglapi-21.3.0.40500-1331380.el8.x86_64
amdgpu-lib-21.40.40500-1331380.el8.x86_64
libwayland-amdgpu-server-1.18.0.40500-1331380.el8.x86_64
My amd W7000 and WX7000 behave better, especially processing EDID input in multihead arrangements with or without a kvm.
Business case
I think Rocky is enjoying rapid industry adoption, so this change will improve amd's customer experience.