Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Force local APIC physical-destination mode in the ACPI FADT table.
Browse files Browse the repository at this point in the history
This matches the setting in the flags field of the bhyve-created
FADT, and also fixes an issue with the Linux 4.15 kernel when, unless
this is set, the IOAPIC gets reprogrammed to ID 0 and vCPUs starting
at 1, resulting in MSI interrupts being mis-delivered and i/o devices
timing out.

Tested with Linux distros with >= 4.15 kernels (Ubuntu 18.04, Arch
2018.03.01) and no regression with install/boot tests of Win 7/8.1/10
and server 2k16.

(issue originally reported in the FreeNAS forums)
  • Loading branch information
Peter Grehan committed Apr 8, 2018
1 parent 636b963 commit a8616db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BhyvePkg/BhyveAcpiTables/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
#define IAPC_BOOT_ARCH 0x12 /* 8042 present, disable PCIe ASPM */
#define FACP_FLAGS (EFI_ACPI_1_0_WBINVD | EFI_ACPI_1_0_PROC_C1 | \
EFI_ACPI_1_0_SLP_BUTTON | EFI_ACPI_1_0_TMR_VAL_EXT | \
EFI_ACPI_2_0_RESET_REG_SUP)
EFI_ACPI_2_0_RESET_REG_SUP | \
EFI_ACPI_3_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE)
#define FACP_RESET_REG { \
EFI_ACPI_3_0_SYSTEM_IO, /* Address Space ID */ \
8, /* Bit Width */ \
Expand Down

0 comments on commit a8616db

Please sign in to comment.