Skip to contentSkip to conversation

iommu/vt-d: fix the wrong printing in RHSA parsing

PATCH Applied Zhenzhong Duan 2 participants 2 messages Jan 15, 2020 – Feb 21, 2020 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/iommu/dmar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/dmar.c +1 -1
index 3acfa6a..78bb03e 100644
@@ -475,7 +475,7 @@ static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg)
 		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",
-		drhd->reg_base_addr,
+		rhsa->base_address,
 		dmi_get_system_info(DMI_BIOS_VENDOR),
 		dmi_get_system_info(DMI_BIOS_VERSION),
 		dmi_get_system_info(DMI_PRODUCT_VERSION));
Signature · 1 line
1.8.3.1
Applied
#1 lore raw

Hi,

Quoted 11 lines · Zhenzhong Duan

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.

Queued for v5.7. Thanks!

Best regards,
baolu