Build missing modules for Rocky kernel

Hi, I recently purchased an Intel ARC A310 GPU, to use for hardware transcoding with Jellyfin.

Rocky 9.2+ has backported support for Intel ARC but I couldn’t get hardware accelerated transcoding to work.

Found this in dmesg:

i915 0000:0b:00.0: [drm] GT0: HuC: can't load due to missing mei modules

Wound up installing kernel-ml-6.11.9 from ELRepo, that version had full support for Intel ARC and ZFS (testing) successfully builds modules.

The added modules are documented here: 0001470: Missing modules for Intel ARC GPU - ELRepo Bugs

Seems like it would be possible to build the missing modules for Rocky 9’s standard kernel (5.14.x) but I’ve failed to find out how, only found some hints that you should use mock to rebuild the kernel RPM, building a custom kernel is often discouraged.

Does anyone know how to add missing kernel modules for RHEL/Rocky/Alma?

It is possible to build a custom kernel but it is not trivial at all. Besides, you’d have to do it for every kernel update. Are you sure you want to do this? If kernel-ml is working for you, it seems like a reasonably good “solution” …

Yeah, I was hoping module rebuilds could be handled by akmod.

For now kernel-ml works, but I have to stay on 6.11 because of ZFS. No one knows when ZFS starts supporting 6.12 (I believe they adhere to the “when it’s ready” ethos), hopefully there are no major (security) issues with 6.11, it looks like ELRepo has removed 6.11 so I can’t expect any updates.

Using kernel-lt would have been better for ZFS but Intel ARC hw accel didn’t work when I tried 6.1.119-1, got “[drm] Incompatible option enable_guc=3 - HuC is not supported!”.

I wonder why kernel-lt did not work. The kernel options enabled in kernel-ml were also applied to kernel-lt as shown in elrepo’s bug #1470.

Jellyfin and others indicate that you need Linux 6.2+ for full Intel ARC support. Might also mean that Red Hats backported support in 5.14 wouldn’t work even with the missing kernel modules.

If ELRepo also had Linux 6.6 as an alternative LT kernel it might have solved the issue. I don’t know which kernel is going go be the next LT, if it is 6.11 my problems would be solved.

The release of ZFS (testing) 2.2.7 solved my problem, it supports Linux 6.12 which has been designated the next LTS kernel.