@samitouri / QOSamiQemu / commits / 9583a9c07d

hw/loongarch/virt: Set MADT revision to 6

The LoongArch virt machine emits Core PIC, EIO PIC, MSI PIC and BIO PIC subtables, but advertises MADT revision 1. Revision 1 predates these LoongArch interrupt controller structures. ACPI 6.5 introduced the LoongArch interrupt controller structures and defined MADT revision 6. ACPI 6.6 raises the MADT revision to 7 for the additional RISC-V interrupt controller structures, while leaving the LoongArch structures unchanged. Since the virt machine emits only the LoongArch structures defined by ACPI 6.5, set the MADT header revision to 6, the minimum revision that describes the table contents. Fixes: 735143f10d3 ("hw/loongarch: Add acpi ged support") Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>

Dongyan Qian committed Aug 4, 2026 at 11:30 UTC 9583a9c07d9d91439e5921ae7fb69bd7f69a94f3
1 file changed +1 -1
hw/loongarch/virt-acpi-build.c
+1 -1
@@ -128,7 +128,7 @@ build_madt(GArray *table_data, BIOSLinker *linker,
128 MachineClass *mc = MACHINE_GET_CLASS(ms);
129 const CPUArchIdList *arch_ids = mc->possible_cpu_arch_ids(ms);
130 int i, arch_id, flags;
131 - AcpiTable table = { .sig = "APIC", .rev = 1, .oem_id = lvms->oem_id,
131 + AcpiTable table = { .sig = "APIC", .rev = 6, .oem_id = lvms->oem_id,
132 .oem_table_id = lvms->oem_table_id };
133
134 acpi_table_begin(&table, table_data);