You are not logged in.

#1 2024-04-07 19:02:14

mine_diver
Member
Registered: 2024-03-18
Posts: 8

[SOLVED] Can't set a module's option in modprobe

Hello!

I'm having a bit of an issue with modprobe.
Specifically, I need to enable "allow_unsafe_interrupts" for "vfio_iommu_type1",
so I created a .conf file in "/etc/modprobe.d/" and wrote the thing in:

[mine_diver@ABLPHA ~]$ cat /etc/modprobe.d/iommu_unsafe_interrupts.conf 
options vfio_iommu_type1 allow_unsafe_interrupts=1

However, even after adding this file and rebooting the system (a couple of times now), "sudo dmesg | grep iommu" still outputs this:

vfio_iommu_type1_attach_group: No interrupt remapping support.  Use the module param "allow_unsafe_interrupts" to enable VFIO IOMMU support on this platform

This worked on my previous install, so I must be missing something obvious, but I just can't remember nor find it. Can someone help, please?

Last edited by mine_diver (2024-04-07 20:17:23)

Offline

#2 2024-04-07 19:34:02

Riker
Member
Registered: 2024-03-09
Posts: 3

Re: [SOLVED] Can't set a module's option in modprobe

1. Check if it is blocked in /usr/lib/modprobe.d/
2. Check "vermagic':

modinfo vfio_iommu_type1

3. It may not be compatible with your kernel version, so to unlock the check use:

--force-vermagic

Sorce: Kernel_Module-Troubleshooting

Offline

#3 2024-04-07 19:41:45

seth
Member
Registered: 2012-09-03
Posts: 51,687

Re: [SOLVED] Can't set a module's option in modprobe

Chances are you've vfio in the initramfs and the relevant options [edit: need to be] copied there => regenerate the initramfs

Last edited by seth (2024-04-07 19:42:11)

Online

#4 2024-04-07 20:16:55

mine_diver
Member
Registered: 2024-03-18
Posts: 8

Re: [SOLVED] Can't set a module's option in modprobe

Thank you so much! Regenerating initramfs was it! Solved.

Offline

Board footer

Powered by FluxBB