Installing amdgpu-pro on Rocky

So I’m running a Jellyfin container on a Rocky 8.7 server and recently upgraded my CPU to a AMD Ryzen 4750G Pro which has an iGPU, and I want to use that for hardware acceleration.

The Jellyfin docs on hardware acceleration indicate that I need to install the amdgpu-pro drivers on the host and then mount the device to the container. So far so good.

But how do I install amdgpu-pro on Rocky? I’ve found little to no information on how to do it, except someone on reddit pointing med to these semi-ancient release notes for some rather old drivers.

I was hoping that someone could share some pointers for how you install these drivers and get this sorted on Rocky, as I’m a bit too new to the Rocky/RHEL ecosystem to really find my way around properly.

I’m still looking for help with this, though my scope is a bit updated.
I’ve update to kernel 6.1.7 from elrepo, but now I’m not able to do anything with amdgpu-install it seems.

❯ uname -r

I’ve tried running with VA-API in Jellyfin now and I can see in radeontop that the GPU in my 4750G is doing something at least, it’s not idling at 0%.
But the playback is not stable, it freezes with 10 second intervals or so, which from what I’ve gathered from my reading shouldn’t be the case with just a single 1080p stream.

I wanted to try updating the AMD GPU drivers, but it seems that now I can’t get anything from the radeon repo:

❯ sudo amdgpu-install --vulkan=amdvlk
Last metadata expiration check: 0:00:38 ago on Tue 24 Jan 2023 06:37:28 PM CET.
Package amdgpu-lib-1:5.4.50400-1510348.el8.x86_64 is already installed.
Package rocm-opencl-runtime- is already installed.
Package rocm-hip-runtime- is already installed.
Package amdgpu-dkms-1: is already installed.
No match for argument: kernel-devel-6.1.7-1.el8.elrepo.x86_64
Error: Unable to find a match: kernel-devel-6.1.7-1.el8.elrepo.x86_64

Is kernel 6.1.7 too new to use amdgpu-install with?
Since the kernel requirement for jellyfin hardware acceleration is 5.15+ I seem to have no options when looking at elrepo:

❯ sudo dnf list available --disablerepo='*' --enablerepo=elrepo-kernel
Last metadata expiration check: 0:56:16 ago on Tue 24 Jan 2023 05:47:05 PM CET.
Available Packages
bpftool.x86_64                          6.1.8-1.el8.elrepo         elrepo-kernel
kernel-lt.x86_64                        5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-core.x86_64                   5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-devel.x86_64                  5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-doc.noarch                    5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-headers.x86_64                5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-modules.x86_64                5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-modules-extra.x86_64          5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-tools.x86_64                  5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-tools-libs.x86_64             5.4.230-1.el8.elrepo       elrepo-kernel
kernel-lt-tools-libs-devel.x86_64       5.4.230-1.el8.elrepo       elrepo-kernel
kernel-ml.x86_64                        6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-core.x86_64                   6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-devel.x86_64                  6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-doc.noarch                    6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-headers.x86_64                6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-modules.x86_64                6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-modules-extra.x86_64          6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-tools.x86_64                  6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-tools-libs.x86_64             6.1.8-1.el8.elrepo         elrepo-kernel
kernel-ml-tools-libs-devel.x86_64       6.1.8-1.el8.elrepo         elrepo-kernel
perf.x86_64                             6.1.8-1.el8.elrepo         elrepo-kernel
python3-perf.x86_64                     6.1.8-1.el8.elrepo         elrepo-kernel

My output from vainfo is this:

❯ sudo vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.5.0)
vainfo: Driver version: Mesa Gallium driver 22.3.0-devel for RENOIR (renoir, LLVM 15.0.3, DRM 3.49, 6.1.7-1.el8.elrepo.x86_64)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

Any input much appreciated!