Commit f8993aff8b4de0317c6e081802ca5c86c449fef2

Authored by Shaohua Li
Committed by Len Brown
1 parent a23cf14b16

ACPI: Disable MSI on request of FADT

The ACPI spec defines the bit and Microsoft uses it,
so Linux must use it too.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

Showing 2 changed files with 5 additions and 0 deletions Side-by-side Diff

drivers/pci/pci-acpi.c
... ... @@ -317,6 +317,10 @@
317 317 {
318 318 int ret;
319 319  
  320 + if (acpi_gbl_FADT.boot_flags & BAF_MSI_NOT_SUPPORTED) {
  321 + printk(KERN_INFO"ACPI FADT declares the system doesn't support MSI, so disable it\n");
  322 + pci_no_msi();
  323 + }
320 324 ret = register_acpi_bus_type(&acpi_pci_bus);
321 325 if (ret)
322 326 return 0;
include/acpi/actbl.h
... ... @@ -276,6 +276,7 @@
276 276  
277 277 #define BAF_LEGACY_DEVICES 0x0001
278 278 #define BAF_8042_KEYBOARD_CONTROLLER 0x0002
  279 +#define BAF_MSI_NOT_SUPPORTED 0x0008
279 280  
280 281 #define FADT2_REVISION_ID 3
281 282 #define FADT2_MINUS_REVISION_ID 2