• Andrew Cooper's avatar
    passthrough/vtd: Drop the "workaround_bios_bug" logic entirely · 74dadb85
    Andrew Cooper authored
    It turns out that this code was previously dead.
    
    c/s dcf41790
    
     " x86/mmcfg/drhd: Move acpi_mmcfg_init() call before calling
    acpi_parse_dmar()" resulted in PCI segment 0 now having been initialised
    enough for acpi_parse_one_drhd() to not take the
    
      /* Skip checking if segment is not accessible yet. */
    
    path unconditionally.  However, some systems have DMAR tables which list
    devices which are disabled by user choice (in particular, Dell PowerEdge R740
    with I/O AT DMA disabled), and turning off all IOMMU functionality in this
    case is entirely unhelpful behaviour.
    
    Leave the warning which identifies the problematic devices, but drop the
    remaining logic.  This leaves the system in better overall state, and working
    in the same way that it did in previous releases.
    Reported-by: default avatarIgor Druzhinin <igor.druzhinin@citrix.com>
    Signed-off-by: default avatarAndrew Cooper <andrew.cooper3@citrix.com>
    Reviewed-by: default avatarIgor Druzhinin <igor.druzhinin@citrix.com>
    Reviewed-by: Roge...
    74dadb85
iommu.h 10.2 KB