I'm getting this message in my logs, about an IOMMU error, on both 4.0.2 and 
the F31-based 4.1 build. I'm as certain as I can be that the IOMMU is enabled 
in BIOS. I'm having issues with passthru and I'm wondering if this might be the 
cause. 

In dom0 kernel logs:
AMD IOMMUv2 driver by Joerg Roedel <jroe...@suse.de
AMD IOMMUv2 functionality not available on this system
...
kfd kfd: Initialized module
...
kfd kfd: Allocated 3969056 bytes on gart
Virtual CRAT table created for GPU
Parsing CRAT table with 1 nodes
Creating topology SYSFS entries
Topology: Add dGPU node [0x15dd:0x1002]
kfd kfd: error getting iommu info. is the iommu enabled? <-- red
kfd kfd: Error initializing iommuv2                      <-- red
Creating topology SYSFS entries
kfd kfd: device 1002:15dd NOT added due to errors        <-- red

1002:15dd is the integrated GPU on my Ryzen 2500U.

In xl dmesg
(XEN) AMD-Vi: Disabled HAP memory map sharing with IOMMU
(XEN) AMD-Vi: IOMMU Extended Features:
(XEN)  - Peripheral Page Service Request
(XEN)  - NX bit Supported
(XEN)  - Guest Translation
(XEN)  - Invalidate All Command
(XEN)  - Guest APIC supported
(XEN)  - Performance Counters
(XEN) AMD-Vi: IOMMU 0 Enabled.


https://community.amd.com/thread/170292
This thread recommends creating /etc/udev/rules.d/kfd.rules with MODE="0666". 
Qubes 4.1 has file /usr/lib/udev/rules.d/50-udev-default.rules which contains:
SUBSYSTEM=="kfd", GROUP="render", MODE="0666"
although 4.0.2 appears to have no such file. However I get the same error even 
on 4.1 so I don't think that's the fix.

https://unix.stackexchange.com/questions/263901/kfd-error-getting-iommu-info
This thread says add kernel parameter "iommu=pt" but I don't know if that's 
effective or safe in Qubes, because Xen handles the IOMMU instead of the kernel 
I think. I'm not really sure what that parameter does.

https://bugzilla.redhat.com/show_bug.cgi?id=1404139
This thread says it's not a bug, it's just because the system doesn't support 
IOMMUv2 and amdkfd (whatever that is) requires IOMMUv2 (whatever that is) for 
HSA (whatever that is). I don't really know what any of that means. 

Is it an error? Should I be worried? Could it be causing my passthru problems? 
Or does it just mean that my GPU is not protected by the IOMMU (same as 
iommu=no-igfx on Intel) and I don't have to worry about it?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/22518f58b4489a980ec75ccce0e7d71b%40disroot.org.

Reply via email to