From nobody Wed Aug 26 00:49:35 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 178584942064081.74391232315668; Tue, 4 Aug 2026 06:17:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wrEzu-0004yZ-Lw; Tue, 04 Aug 2026 09:16:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wr5sY-0008An-JY for qemu-devel@nongnu.org; Mon, 03 Aug 2026 23:31:47 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wr5sV-0002VS-Rn for qemu-devel@nongnu.org; Mon, 03 Aug 2026 23:31:45 -0400 Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8CxKqgXXXFqHCgKAA--.10056S3; Tue, 04 Aug 2026 11:31:35 +0800 (CST) Received: from code-server.gen (unknown [10.2.9.245]) by front1 (Coremail) with SMTP id qMiowJCxLcUXXXFq7fEiAA--.44786S3; Tue, 04 Aug 2026 11:31:35 +0800 (CST) From: Dongyan Qian To: qemu-devel@nongnu.org Cc: 17746591750@163.com, maobibo@loongson.cn, lixianglai@loongson.cn, jiaxun.yang@flygoat.com Subject: [PATCH 1/3] tests/acpi: Allow LoongArch virt MADT changes Date: Tue, 4 Aug 2026 11:30:34 +0800 Message-Id: <20260804033036.2614008-2-qiandongyan@loongson.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20260804033036.2614008-1-qiandongyan@loongson.cn> References: <20260804033036.2614008-1-qiandongyan@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: qMiowJCxLcUXXXFq7fEiAA--.44786S3 X-CM-SenderInfo: htld0v5rqj5t3q6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=114.242.206.163; envelope-from=qiandongyan@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 04 Aug 2026 09:15:48 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1785849423070158500 Content-Type: text/plain; charset="utf-8" The LoongArch virt MADT revision will be corrected to match the interrupt controller structures it contains. Allow the APIC and APIC.topology test data to change so that the source change can be reviewed separately from the regenerated binary tables. Signed-off-by: Dongyan Qian Reviewed-by:=C2=A0 Song Gao <17746591750@163.com> --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios= -tables-test-allowed-diff.h index dfb8523c8b..0e18673fcd 100644 --- a/tests/qtest/bios-tables-test-allowed-diff.h +++ b/tests/qtest/bios-tables-test-allowed-diff.h @@ -1 +1,3 @@ /* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/loongarch64/virt/APIC", +"tests/data/acpi/loongarch64/virt/APIC.topology", --=20 2.43.0 From nobody Wed Aug 26 00:49:35 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1785849384087183.07970217433467; Tue, 4 Aug 2026 06:16:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wrEzp-0004wh-6F; Tue, 04 Aug 2026 09:15:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wr5sY-0008Am-JO for qemu-devel@nongnu.org; Mon, 03 Aug 2026 23:31:47 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wr5sV-0002VO-IB for qemu-devel@nongnu.org; Mon, 03 Aug 2026 23:31:45 -0400 Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8BxHJsYXXFqHygKAA--.9978S3; Tue, 04 Aug 2026 11:31:36 +0800 (CST) Received: from code-server.gen (unknown [10.2.9.245]) by front1 (Coremail) with SMTP id qMiowJCxLcUXXXFq7fEiAA--.44786S4; Tue, 04 Aug 2026 11:31:35 +0800 (CST) From: Dongyan Qian To: qemu-devel@nongnu.org Cc: 17746591750@163.com, maobibo@loongson.cn, lixianglai@loongson.cn, jiaxun.yang@flygoat.com Subject: [PATCH 2/3] hw/loongarch/virt: Set MADT revision to 6 Date: Tue, 4 Aug 2026 11:30:35 +0800 Message-Id: <20260804033036.2614008-3-qiandongyan@loongson.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20260804033036.2614008-1-qiandongyan@loongson.cn> References: <20260804033036.2614008-1-qiandongyan@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: qMiowJCxLcUXXXFq7fEiAA--.44786S4 X-CM-SenderInfo: htld0v5rqj5t3q6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=114.242.206.163; envelope-from=qiandongyan@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 04 Aug 2026 09:15:48 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1785849387195158500 Content-Type: text/plain; charset="utf-8" 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. ACPI specifications: https://uefi.org/specs/ACPI/6.5/ https://uefi.org/specs/ACPI/6.6/ Fixes: 735143f10d3 ("hw/loongarch: Add acpi ged support") Signed-off-by: Dongyan Qian Reviewed-by: Bibo Mao Reviewed-by:=C2=A0 Song Gao <17746591750@163.com> --- hw/loongarch/virt-acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/loongarch/virt-acpi-build.c b/hw/loongarch/virt-acpi-build.c index a0b445f297..600ef60fc5 100644 --- a/hw/loongarch/virt-acpi-build.c +++ b/hw/loongarch/virt-acpi-build.c @@ -128,7 +128,7 @@ build_madt(GArray *table_data, BIOSLinker *linker, MachineClass *mc =3D MACHINE_GET_CLASS(ms); const CPUArchIdList *arch_ids =3D mc->possible_cpu_arch_ids(ms); int i, arch_id, flags; - AcpiTable table =3D { .sig =3D "APIC", .rev =3D 1, .oem_id =3D lvms->o= em_id, + AcpiTable table =3D { .sig =3D "APIC", .rev =3D 6, .oem_id =3D lvms->o= em_id, .oem_table_id =3D lvms->oem_table_id }; =20 acpi_table_begin(&table, table_data); --=20 2.43.0 From nobody Wed Aug 26 00:49:35 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1785849384132599.6797659598144; Tue, 4 Aug 2026 06:16:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wrEzp-0004wg-6A; Tue, 04 Aug 2026 09:15:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wr5sY-0008Al-IF for qemu-devel@nongnu.org; Mon, 03 Aug 2026 23:31:46 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wr5sW-0002VQ-B8 for qemu-devel@nongnu.org; Mon, 03 Aug 2026 23:31:45 -0400 Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8CxJOoYXXFqIigKAA--.31981S3; Tue, 04 Aug 2026 11:31:36 +0800 (CST) Received: from code-server.gen (unknown [10.2.9.245]) by front1 (Coremail) with SMTP id qMiowJCxLcUXXXFq7fEiAA--.44786S5; Tue, 04 Aug 2026 11:31:36 +0800 (CST) From: Dongyan Qian To: qemu-devel@nongnu.org Cc: 17746591750@163.com, maobibo@loongson.cn, lixianglai@loongson.cn, jiaxun.yang@flygoat.com Subject: [PATCH 3/3] tests/acpi: Update LoongArch virt MADT Date: Tue, 4 Aug 2026 11:30:36 +0800 Message-Id: <20260804033036.2614008-4-qiandongyan@loongson.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20260804033036.2614008-1-qiandongyan@loongson.cn> References: <20260804033036.2614008-1-qiandongyan@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: qMiowJCxLcUXXXFq7fEiAA--.44786S5 X-CM-SenderInfo: htld0v5rqj5t3q6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=114.242.206.163; envelope-from=qiandongyan@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 04 Aug 2026 09:15:48 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1785849387203158500 Content-Type: text/plain; charset="utf-8" Regenerate the APIC and APIC.topology test data after correcting the LoongArch virt MADT revision. The generated tables change only Header.Revision from 1 to 6 and the corresponding checksum. Their lengths and interrupt controller subtables remain unchanged. Signed-off-by: Dongyan Qian Reviewed-by:=C2=A0 Song Gao <17746591750@163.com> --- tests/data/acpi/loongarch64/virt/APIC | Bin 108 -> 108 bytes tests/data/acpi/loongarch64/virt/APIC.topology | Bin 153 -> 153 bytes tests/qtest/bios-tables-test-allowed-diff.h | 2 -- 3 files changed, 2 deletions(-) diff --git a/tests/data/acpi/loongarch64/virt/APIC b/tests/data/acpi/loonga= rch64/virt/APIC index 3477789f422cad54f16734b3ec9ad1ff5135165d..e90c267e1fdd83143edc732df41= ca5659415090d 100644 GIT binary patch delta 16 Xcmd1F;c^V{bk1R5U|{<&kt+!RBvAxk delta 16 Xcmd1F;c^V{bk1R5U|{?@kt+!RBuoTf diff --git a/tests/data/acpi/loongarch64/virt/APIC.topology b/tests/data/ac= pi/loongarch64/virt/APIC.topology index da0089d57f608aca230a76b67e72f9f0ad8e71f2..d00b7241c7ad76867781d5649e2= de5fb6a5f45bc 100644 GIT binary patch delta 18 ZcmbQqIFpgfF~HM#CIbTlTi`^legG=3D>1a<%b delta 18 ZcmbQqIFpgfF~HM#CIbTlW7tHlegG=3D+1a<%b diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios= -tables-test-allowed-diff.h index 0e18673fcd..dfb8523c8b 100644 --- a/tests/qtest/bios-tables-test-allowed-diff.h +++ b/tests/qtest/bios-tables-test-allowed-diff.h @@ -1,3 +1 @@ /* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/loongarch64/virt/APIC", -"tests/data/acpi/loongarch64/virt/APIC.topology", --=20 2.43.0