Commit fd0c8894 authored by Ben Hutchings's avatar Ben Hutchings Committed by David Woodhouse

intel-iommu: Set a more specific taint flag for invalid BIOS DMAR tables

We now know how to deal with these tables so that they are harmless.
Set TAINT_FIRMWARE_WORKAROUND instead of the default TAINT_WARN.
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 3a8663ee
...@@ -360,7 +360,9 @@ dmar_parse_one_rhsa(struct acpi_dmar_header *header) ...@@ -360,7 +360,9 @@ dmar_parse_one_rhsa(struct acpi_dmar_header *header)
return 0; return 0;
} }
} }
WARN(1, "Your BIOS is broken; RHSA refers to non-existent DMAR unit at %llx\n" WARN_TAINT(
1, TAINT_FIRMWARE_WORKAROUND,
"Your BIOS is broken; RHSA refers to non-existent DMAR unit at %llx\n"
"BIOS vendor: %s; Ver: %s; Product Version: %s\n", "BIOS vendor: %s; Ver: %s; Product Version: %s\n",
drhd->reg_base_addr, drhd->reg_base_addr,
dmi_get_system_info(DMI_BIOS_VENDOR), dmi_get_system_info(DMI_BIOS_VENDOR),
...@@ -620,7 +622,9 @@ int __init dmar_table_init(void) ...@@ -620,7 +622,9 @@ int __init dmar_table_init(void)
static void warn_invalid_dmar(u64 addr, const char *message) static void warn_invalid_dmar(u64 addr, const char *message)
{ {
WARN_ONCE(1, "Your BIOS is broken; DMAR reported at address %llx%s!\n" WARN_TAINT_ONCE(
1, TAINT_FIRMWARE_WORKAROUND,
"Your BIOS is broken; DMAR reported at address %llx%s!\n"
"BIOS vendor: %s; Ver: %s; Product Version: %s\n", "BIOS vendor: %s; Ver: %s; Product Version: %s\n",
addr, message, addr, message,
dmi_get_system_info(DMI_BIOS_VENDOR), dmi_get_system_info(DMI_BIOS_VENDOR),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment