[haiku-bugs] Re: [Haiku] #13381: IOMMU IRQ routing panic on UEFI Ryzen 7 X370 system

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Mon, 20 Mar 2017 17:51:07 -0000

#13381: IOMMU IRQ routing panic on UEFI Ryzen 7 X370 system
-----------------------------+----------------------------
   Reporter:  kallisti5      |      Owner:  nobody
       Type:  bug            |     Status:  assigned
   Priority:  normal         |  Milestone:  Unscheduled
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:  IOMMU
 Blocked By:                 |   Blocking:
Has a Patch:  1              |   Platform:  All
-----------------------------+----------------------------

Comment (by kallisti5):

 We're talking about checking for bus 0, device 0 and only raising a
 warning instead of a panic in this case. Another option is to detect the
 device type of IOMMU and simply raise a TODO around better IOMMU knowledge
 (in-case someone wants to implement an IOMMU driver someday)

 the IVRS table in acpi confirms the device via the DeviceID below:
 (found in AMD's IOMMU spec, page 254
 http://support.amd.com/TechDocs/48882_IOMMU.pdf)

 {{{
 [000h 0000   4]                    Signature : "IVRS"    [I/O
 Virtualization Reporting Structure]
 [004h 0004   4]                 Table Length : 000000D0
 [008h 0008   1]                     Revision : 02
 [009h 0009   1]                     Checksum : 94
 [00Ah 0010   6]                       Oem ID : ""
 [010h 0016   8]                 Oem Table ID : ""
 [018h 0024   4]                 Oem Revision : 00000001
 [01Ch 0028   4]              Asl Compiler ID : "AMD "
 [020h 0032   4]        Asl Compiler Revision : 00000000

 [024h 0036   4]          Virtualization Info : 00203041
 [028h 0040   8]                     Reserved : 0000000000000000

 [030h 0048   1]                Subtable Type : 10 [Hardware Definition
 Block]
 [031h 0049   1]                        Flags : B0
 [032h 0050   2]                       Length : 0048
 [034h 0052   2]                     DeviceId : 0002
 }}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/13381#comment:11>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: