amd IOMMU kernel panic while performing IRQ remapping

Discussion in 'UDOO BOLT' started by jpsollie, Aug 1, 2020 at 8:31 AM.

  1. jpsollie

    jpsollie UDOOer

    Joined:
    Jul 27, 2020
    Messages:
    2
    Likes Received:
    0
    When disabling AMD SME in kernel, the PCI devices are mapped using the amd native IOMMU driver.

    When using software IOMMU, the followiing error appears:
    Code:
    snd_pci_acp3x 0000:04:00.5: Invalid ACP audio mode : 2
    When using the hardware IOMMU, the kernel panics, complaining about invalid IRQ remapping on IOMMU.
    ls-iommu.sh:
    Code:
    IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    IOMMU Group 10 04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15dd] (rev 83)
    IOMMU Group 11 04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
    IOMMU Group 11 04:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
    IOMMU Group 11 04:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 [1022:15e0]
    IOMMU Group 11 04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 [1022:15e1]
    IOMMU Group 11 04:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2]
    IOMMU Group 11 04:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
    IOMMU Group 11 04:00.7 Non-VGA unclassified device [0000]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver [1022:15e6]
    IOMMU Group 1 00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] [1022:15d3]
    IOMMU Group 2 00:01.6 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] [1022:15d3]
    IOMMU Group 3 00:01.7 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] [1022:15d3]
    IOMMU Group 4 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    IOMMU Group 4 00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B [1022:15dc]
    IOMMU Group 4 05:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 61)
    IOMMU Group 5 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A [1022:15db]
    IOMMU Group 6 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)
    IOMMU Group 6 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
    IOMMU Group 7 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0 [1022:15e8]
    IOMMU Group 7 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1 [1022:15e9]
    IOMMU Group 7 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2 [1022:15ea]
    IOMMU Group 7 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3 [1022:15eb]
    IOMMU Group 7 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4 [1022:15ec]
    IOMMU Group 7 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5 [1022:15ed]
    IOMMU Group 7 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6 [1022:15ee]
    IOMMU Group 7 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7 [1022:15ef]
    IOMMU Group 8 02:00.0 Network controller [0280]: Intel Corporation Wireless 8265 / 8275 [8086:24fd] (rev 78)
    IOMMU Group 9 03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
    cat /proc/interrupts:
    Code:
               CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7       
       0:         38          0          0          0          0          0          0          0  IR-IO-APIC    2-edge      timer
       7:          0          0          0          0          0          0          0          0  IR-IO-APIC    7-fasteoi   pinctrl_amd
       8:          0          1          0          0          0          0          0          0  IR-IO-APIC    8-edge      rtc0
       9:          0          0          0          0          0          0          0          0  IR-IO-APIC    9-fasteoi   acpi
      25:          0          0          0          0          0          0          0          0   PCI-MSI 4096-edge      AMD-Vi
      26:          0          0          0          0          0          0          0          0  IR-PCI-MSI 20480-edge      PCIe PME, aerdrv, PCIe BW notif
      27:          0          0          0          0          0          0          0          0  IR-PCI-MSI 28672-edge      PCIe PME, aerdrv, PCIe BW notif
      28:          0          0          0          0          0          0          0          0  IR-PCI-MSI 30720-edge      PCIe PME, aerdrv, PCIe BW notif
      29:          0          0          0          0          0          0          0          0  IR-PCI-MSI 133120-edge      PCIe PME, PCIe BW notif
      30:          0          0          0          0          0          0          0          0  IR-PCI-MSI 135168-edge      PCIe PME, PCIe BW notif
      32:      17079          0          0          0          0          0          0          0  IR-PCI-MSI 2621440-edge      ahci[0000:05:00.0]
      34:          0          0          0          0          0          0          0    1590367  IR-PCI-MSI 1572864-edge      eth0
      35:          0          0          0          0          0          0          0          0  IR-IO-APIC   31-fasteoi   0000:04:00.7
      36:          0    1507784          0          0          0          0          0          0  IR-PCI-MSI 2103296-edge      xhci_hcd
      37:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103297-edge      xhci_hcd
      38:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103298-edge      xhci_hcd
      39:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103299-edge      xhci_hcd
      40:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103300-edge      xhci_hcd
      41:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103301-edge      xhci_hcd
      42:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103302-edge      xhci_hcd
      43:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2103303-edge      xhci_hcd
      45:          0       4921          0          0          0          0          0          0  IR-PCI-MSI 2105344-edge      xhci_hcd
      46:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105345-edge      xhci_hcd
      47:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105346-edge      xhci_hcd
      48:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105347-edge      xhci_hcd
      49:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105348-edge      xhci_hcd
      50:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105349-edge      xhci_hcd
      51:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105350-edge      xhci_hcd
      52:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2105351-edge      xhci_hcd
      54:          0          0          0          0          0          0          0          0  IR-PCI-MSI 2101249-edge      ccp-1
      56:          0          0          0          0          0         47          0          0  IR-PCI-MSI 1048576-edge      iwlwifi
      57:          0          0          0          0          0          0       5474          0  IR-PCI-MSI 2097152-edge      amdgpu
    
    I saw also that some hardware IRQ remapping on IOMMU is possible, but I don't know what may be wrong with the current situation. Any suggestion?
     

Share This Page