Skip to content

Commit b0bb0c2

Browse files
Zhenzhong Duanjoergroedel
authored andcommitted
iommu/vt-d: Fix the wrong printing in RHSA parsing
When base address in RHSA structure doesn't match base address in each DRHD structure, the base address in last DRHD is printed out. This doesn't make sense when there are multiple DRHD units, fix it by printing the buggy RHSA's base address. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com> Fixes: fd0c889 ("intel-iommu: Set a more specific taint flag for invalid BIOS DMAR tables") Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent ba3b01d commit b0bb0c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/dmar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg)
476476
pr_warn(FW_BUG
477477
"Your BIOS is broken; RHSA refers to non-existent DMAR unit at %llx\n"
478478
"BIOS vendor: %s; Ver: %s; Product Version: %s\n",
479-
drhd->reg_base_addr,
479+
rhsa->base_address,
480480
dmi_get_system_info(DMI_BIOS_VENDOR),
481481
dmi_get_system_info(DMI_BIOS_VERSION),
482482
dmi_get_system_info(DMI_PRODUCT_VERSION));

0 commit comments

Comments
 (0)