https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288122

--- Comment #5 from [email protected] ---
> You need to enable iommu interrupt remapping to be able to use apic ids > 255
> as interrupt targets.

Should I file a separate bug for fixing that? It shouldn't be necessary: under
KVM (or Xen or HyperV which can advertise the same extension) there are 15 bits
in the MSI message (and I/O APIC RTE) for the APIC ID, not just 8.

But it's also enabled. With '-device intel-iommu,intremap=on' I see:


root@freebsd:~ # dmesg | grep 'APIC ID 257'
msi_map: unsupported destination APIC ID 257
nvme0: remap irq 28 to APIC ID 257 failed (error 22)
root@freebsd:~ # kenv | grep iommu
hw.amdiommu.enable="1"
hw.iommu.ir="1"

With '-device amd-iommu,intremap=on,xtsup=on' it fails to boot...


nvme0: <Generic NVMe Device> mem 0x380000000000-0x380000003fff irq 23 at device
3.0 on pci0
nvme0: attempting to allocate 3 MSI-X vectors (65 supported)
nvme0: (000000:0x0018) amdiommu cannot find unit
msi: routing MSI-X IRQ 26 to local APIC 0 vector 52
nvme0: (000000:0x0018) amdiommu cannot find unit
msi: routing MSI-X IRQ 27 to local APIC 0 vector 53
nvme0: (000000:0x0018) amdiommu cannot find unit
msi: routing MSI-X IRQ 28 to local APIC 0 vector 54
nvme0: using IRQs 26-28 for MSI-X
nvme0: CapLo: 0x0f0107ff: MQES 2047, CQR, TO 15
nvme0: CapHi: 0x00401820: DSTRD 0, CSS c1, CPS 0, MPSMIN 0, MPSMAX 4
nvme0: Version: 0x00010400: 1.4
nvme0: (000000:0x0018) amdiommu cannot find unit
nvme0: cannot find amdiommu unit, error 6
nvme0: (000000:0x0018) amdiommu cannot find unit
nvme0: cannot find amdiommu unit, error 6
nvme0: (000000:0x0018) amdiommu cannot find unit
nvme0: cannot find amdiommu unit, error 6
nvme0: (000000:0x0018) amdiommu cannot find unit
nvme0: cannot find amdiommu unit, error 6
nvme0: (000000:0x0018) amdiommu cannot find unit
amdiommu0: <DMA remap> at device 4.0 on pci0
amdiommu0: ctrl reg 0
amdiommu0: attempting to allocate 1 MSI vectors (1 supported)
msi: routing MSI IRQ 29 to local APIC 0 vector 55
amdiommu0: using IRQ 29 for MSI
amdiommu0: enabled translation
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel ICH9 AHCI SATA controller> port 0x6040-0x605f mem
0x81084000-0x81084fff irq 16 at device 31.2 on pci0
ahci0: attempting to allocate 1 MSI vectors (1 supported)
ahci0: amdiommu0 initiator rid 0x00fa dte 0 edte 0

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to