* [PATCH 0/6] Add bios-tables-test for LoongArch64 system
@ 2025-02-28 9:27 Bibo Mao
2025-02-28 9:27 ` [PATCH 1/6] uefi-test-tools:: Add LoongArch64 support Bibo Mao
` (8 more replies)
0 siblings, 9 replies; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
This patchset add bios-tables-test for LoongArch64 virt machine
system. It works with UEFI bios, with uefi-test-tools LoongArch64
support is added to build bios-tables-test.loongarch64.iso.
Also with test case bios-tables-test, LoongArch64 support is added
and some basic ACPI tables is added here. It passes with command
make check-qtest-loongarch64 with the result:
qtest-loongarch64/bios-tables-test OK 29.52s 4 subtests passed
Bibo Mao (6):
uefi-test-tools:: Add LoongArch64 support
tests/data/uefi-boot-images: Add ISO image for LoongArch system
tests/qtest/bios-tables-test: Add basic testing for LoongArch64
tests/acpi: Add empty ACPI data files for LoongArch64
tests/acpi: Fill acpi table data for LoongArch
tests/qtest: Enable bios-tables-test for LoongArch
tests/data/acpi/loongarch64/virt/APIC | Bin 0 -> 108 bytes
.../data/acpi/loongarch64/virt/APIC.topology | Bin 0 -> 213 bytes
tests/data/acpi/loongarch64/virt/DSDT | Bin 0 -> 3614 bytes
tests/data/acpi/loongarch64/virt/DSDT.memhp | Bin 0 -> 4951 bytes
tests/data/acpi/loongarch64/virt/FACP | Bin 0 -> 268 bytes
tests/data/acpi/loongarch64/virt/MCFG | Bin 0 -> 60 bytes
tests/data/acpi/loongarch64/virt/PPTT | Bin 0 -> 76 bytes
.../data/acpi/loongarch64/virt/PPTT.topology | Bin 0 -> 296 bytes
tests/data/acpi/loongarch64/virt/SLIT | 0
tests/data/acpi/loongarch64/virt/SLIT.memhp | Bin 0 -> 48 bytes
tests/data/acpi/loongarch64/virt/SPCR | Bin 0 -> 80 bytes
tests/data/acpi/loongarch64/virt/SRAT | Bin 0 -> 104 bytes
tests/data/acpi/loongarch64/virt/SRAT.memhp | Bin 0 -> 184 bytes
.../data/acpi/loongarch64/virt/SRAT.topology | Bin 0 -> 216 bytes
.../bios-tables-test.loongarch64.iso.qcow2 | Bin 0 -> 12800 bytes
tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++
tests/qtest/meson.build | 3 +-
tests/uefi-test-tools/Makefile | 5 +-
.../UefiTestToolsPkg/UefiTestToolsPkg.dsc | 6 +-
tests/uefi-test-tools/uefi-test-build.config | 10 +++
20 files changed, 82 insertions(+), 4 deletions(-)
create mode 100644 tests/data/acpi/loongarch64/virt/APIC
create mode 100644 tests/data/acpi/loongarch64/virt/APIC.topology
create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
create mode 100644 tests/data/acpi/loongarch64/virt/DSDT.memhp
create mode 100644 tests/data/acpi/loongarch64/virt/FACP
create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
create mode 100644 tests/data/acpi/loongarch64/virt/PPTT.topology
create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
create mode 100644 tests/data/acpi/loongarch64/virt/SLIT.memhp
create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.memhp
create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.topology
create mode 100644 tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
base-commit: b69801dd6b1eb4d107f7c2f643adf0a4e3ec9124
--
2.39.3
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 1/6] uefi-test-tools:: Add LoongArch64 support
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
@ 2025-02-28 9:27 ` Bibo Mao
2025-02-28 9:27 ` [PATCH 2/6] tests/data/uefi-boot-images: Add ISO image for LoongArch system Bibo Mao
` (7 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
Add support to build bios-tables-test iso image for LoongArch system.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
tests/uefi-test-tools/Makefile | 5 +++--
.../UefiTestToolsPkg/UefiTestToolsPkg.dsc | 6 +++++-
tests/uefi-test-tools/uefi-test-build.config | 10 ++++++++++
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/tests/uefi-test-tools/Makefile b/tests/uefi-test-tools/Makefile
index f4eaebd8ff..8ee6fb3571 100644
--- a/tests/uefi-test-tools/Makefile
+++ b/tests/uefi-test-tools/Makefile
@@ -12,7 +12,7 @@
edk2_dir := ../../roms/edk2
images_dir := ../data/uefi-boot-images
-emulation_targets := arm aarch64 i386 x86_64 riscv64
+emulation_targets := arm aarch64 i386 x86_64 riscv64 loongarch64
uefi_binaries := bios-tables-test
intermediate_suffixes := .efi .fat .iso.raw
@@ -56,7 +56,8 @@ Build/%.iso.raw: Build/%.fat
# stripped from, the argument.
map_arm_to_uefi = $(subst arm,ARM,$(1))
map_aarch64_to_uefi = $(subst aarch64,AA64,$(call map_arm_to_uefi,$(1)))
-map_riscv64_to_uefi = $(subst riscv64,RISCV64,$(call map_aarch64_to_uefi,$(1)))
+map_loongarch64_to_uefi = $(subst loongarch64,LOONGARCH64,$(call map_aarch64_to_uefi,$(1)))
+map_riscv64_to_uefi = $(subst riscv64,RISCV64,$(call map_loongarch64_to_uefi,$(1)))
map_i386_to_uefi = $(subst i386,IA32,$(call map_riscv64_to_uefi,$(1)))
map_x86_64_to_uefi = $(subst x86_64,X64,$(call map_i386_to_uefi,$(1)))
map_to_uefi = $(subst .,,$(call map_x86_64_to_uefi,$(1)))
diff --git a/tests/uefi-test-tools/UefiTestToolsPkg/UefiTestToolsPkg.dsc b/tests/uefi-test-tools/UefiTestToolsPkg/UefiTestToolsPkg.dsc
index 0902fd3c73..facf8df1fa 100644
--- a/tests/uefi-test-tools/UefiTestToolsPkg/UefiTestToolsPkg.dsc
+++ b/tests/uefi-test-tools/UefiTestToolsPkg/UefiTestToolsPkg.dsc
@@ -19,7 +19,7 @@
PLATFORM_VERSION = 0.1
PLATFORM_NAME = UefiTestTools
SKUID_IDENTIFIER = DEFAULT
- SUPPORTED_ARCHITECTURES = ARM|AARCH64|IA32|X64|RISCV64
+ SUPPORTED_ARCHITECTURES = ARM|AARCH64|IA32|X64|RISCV64|LOONGARCH64
BUILD_TARGETS = DEBUG
[BuildOptions.IA32]
@@ -65,6 +65,10 @@
[LibraryClasses.RISCV64]
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
+[LibraryClasses.LOONGARCH64]
+ BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
+ StackCheckLib|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
+
[PcdsFixedAtBuild]
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8040004F
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
diff --git a/tests/uefi-test-tools/uefi-test-build.config b/tests/uefi-test-tools/uefi-test-build.config
index a4c61fc97a..8bf4826634 100644
--- a/tests/uefi-test-tools/uefi-test-build.config
+++ b/tests/uefi-test-tools/uefi-test-build.config
@@ -21,6 +21,16 @@ dest = ./Build
arch = AARCH64
cpy1 = AARCH64/BiosTablesTest.efi bios-tables-test.aarch64.efi
+####################################################################################
+# loongarch64
+
+[build.loongarch64]
+conf = UefiTestToolsPkg/UefiTestToolsPkg.dsc
+plat = UefiTestTools
+dest = ./Build
+arch = LOONGARCH64
+cpy1 = LOONGARCH64/BiosTablesTest.efi bios-tables-test.loongarch64.efi
+
####################################################################################
# riscv64
--
2.39.3
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 2/6] tests/data/uefi-boot-images: Add ISO image for LoongArch system
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
2025-02-28 9:27 ` [PATCH 1/6] uefi-test-tools:: Add LoongArch64 support Bibo Mao
@ 2025-02-28 9:27 ` Bibo Mao
2025-02-28 9:27 ` [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64 Bibo Mao
` (6 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
To test ACPI tables, edk2 needs to be booted with a disk image having
EFI partition. This image is created using UefiTestToolsPkg.
The image is generated with the following command:
make -f tests/uefi-test-tools/Makefile
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
.../bios-tables-test.loongarch64.iso.qcow2 | Bin 0 -> 12800 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
diff --git a/tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2 b/tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
new file mode 100644
index 0000000000000000000000000000000000000000..2fc19b10b36f0493121c526646965ac7ea377b4c
GIT binary patch
literal 12800
zcmeHtbx@p5x97mXV1pAFB)ID!3GVI?2o~JkU4y#^4K4{52oAyBoe)Uy;7)Lz&HIwO
zyY<!Hz2ELX``y}mPEG&%ch2dm)2E-OtLLd!m6E*!006+>zyDcK{wAQe|7Jsf>VW=m
z_`eYD5BZM(;dg-Je-!jz{{NR1_-l#&Oa8yC0Nn5Q_(@R#NWXjVzxM+8KkZZRe=r09
z!ax1i|9@G`|Gbla`*-TdfG5QG&pVO-%KZPR0wRA$qXPb*{2%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EOd*Kjz1;HPEd5{hJwS+)O<;}L3iuO5Az8xQB*<O6;Av%R^3@4r7-`}1UYF3
zA55Xv_(L8xKg$ro8Y&x!Kr_Q%EC)l@yZrJIrtd}iZMDJg2oW2CxYenBT%s{<LQw6^
zqlf0Rl<72o@>;bX=)O;$En0n@$v1ebfb)Z7;pN79nELIR$v!%Bim@vOjt!$?F~Pc7
z<Bu3j7BTI9A@*s}8Va?ZmK%=CfzDd{_+0UX0;%`}`RPC>00w(O{z~xc5=PT`Z8S-$
z`XkXbGlgbh7{?SMKyqK;Wq@c}X8Z*|R$-K(H~;&UC1C*}meg|Uv0ta*j~@+83?Ya>
zxckf39JP8?Zp(&`?%|J@1vFt_Tns#R^zpN3`k|srk9k$mJ1fd+AND=RW_`ZgwRZnx
z2xa5o6B24>Zjz47Uu#m7E`-bU?ih?pn7R6yeVe6J0h{`&idg$m46%bB@F|g9p<4wj
zjF?VZT3QO<mqxTF;?sxcV6G3;w(zg)Ox_n%DMI);I5?7;p!Wgr#8kh<L|RHpN?z|B
zgy11r`0A)-q|L`G>X%2hX^uq$Q*Nb=*@cZ>lhNus$w`zJeQvy8hpMf7qRf=iQm=Z)
zlQsEB<W(WJuPm##uOv7N-9d+0ON-WuKf5L`<ek1*&c^QhEVY*TI@IXrgl>gSAG!KT
zlb$$bD)R;r2(G{`oDd~tYg9s_7_Fg3`Jpd$&)G$SD5M}JK@8?vhLO+a=E?i;`493>
z-dPA(1WJ}w)JP@czp<S$%LUSsIQO#CWjXgFrs+D3p{v<9|IAtFvu+PcYKQemKji&i
P-!c3byK?a_mCk<yI~3Lu
literal 0
HcmV?d00001
--
2.39.3
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
2025-02-28 9:27 ` [PATCH 1/6] uefi-test-tools:: Add LoongArch64 support Bibo Mao
2025-02-28 9:27 ` [PATCH 2/6] tests/data/uefi-boot-images: Add ISO image for LoongArch system Bibo Mao
@ 2025-02-28 9:27 ` Bibo Mao
2025-04-01 13:41 ` Igor Mammedov
2025-02-28 9:27 ` [PATCH 4/6] tests/acpi: Add empty ACPI data files " Bibo Mao
` (5 subsequent siblings)
8 siblings, 1 reply; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
Add basic ACPI table test case for LoongArch64.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 0a333ec435..008d7a0497 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -2420,6 +2420,59 @@ static void test_acpi_aarch64_virt_oem_fields(void)
g_free(args);
}
+#define LOONGARCH64_INIT_TEST_DATA(data) \
+ test_data data = { \
+ .machine = "virt", \
+ .arch = "loongarch64", \
+ .tcg_only = true, \
+ .uefi_fl1 = "pc-bios/edk2-loongarch64-code.fd", \
+ .uefi_fl2 = "pc-bios/edk2-loongarch64-vars.fd", \
+ .cd = "tests/data/uefi-boot-images/" \
+ "bios-tables-test.loongarch64.iso.qcow2", \
+ .ram_start = 0, \
+ .scan_len = 128ULL * 1024 * 1024, \
+ }
+
+static void test_acpi_loongarch64_virt(void)
+{
+ LOONGARCH64_INIT_TEST_DATA(data);
+
+ test_acpi_one("-cpu la464 ", &data);
+ free_test_data(&data);
+}
+
+static void test_acpi_loongarch64_virt_topology(void)
+{
+ LOONGARCH64_INIT_TEST_DATA(data);
+
+ data.variant = ".topology";
+ test_acpi_one("-cpu la464 -smp sockets=1,cores=4,threads=2", &data);
+ free_test_data(&data);
+}
+
+static void test_acpi_loongarch64_virt_numamem(void)
+{
+ LOONGARCH64_INIT_TEST_DATA(data);
+
+ data.variant = ".numamem";
+ test_acpi_one(" -cpu la464 -object memory-backend-ram,id=ram0,size=128M"
+ " -numa node,memdev=ram0", &data);
+ free_test_data(&data);
+}
+
+static void test_acpi_loongarch64_virt_memhp(void)
+{
+ LOONGARCH64_INIT_TEST_DATA(data);
+
+ data.variant = ".memhp";
+ test_acpi_one(" -cpu la464 -m 128,slots=3,maxmem=1G"
+ " -object memory-backend-ram,id=ram0,size=64M"
+ " -object memory-backend-ram,id=ram1,size=64M"
+ " -numa node,memdev=ram0 -numa node,memdev=ram1"
+ " -numa dist,src=0,dst=1,val=21",
+ &data);
+ free_test_data(&data);
+}
int main(int argc, char *argv[])
{
@@ -2593,6 +2646,15 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/virt/numamem",
test_acpi_riscv64_virt_tcg_numamem);
}
+ } else if (strcmp(arch, "loongarch64") == 0) {
+ if (has_tcg && qtest_has_device("virtio-blk-pci")) {
+ qtest_add_func("acpi/virt", test_acpi_loongarch64_virt);
+ qtest_add_func("acpi/virt/topology",
+ test_acpi_loongarch64_virt_topology);
+ qtest_add_func("acpi/virt/numamem",
+ test_acpi_loongarch64_virt_numamem);
+ qtest_add_func("acpi/virt/memhp", test_acpi_loongarch64_virt_memhp);
+ }
}
ret = g_test_run();
boot_sector_cleanup(disk);
--
2.39.3
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 4/6] tests/acpi: Add empty ACPI data files for LoongArch64
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
` (2 preceding siblings ...)
2025-02-28 9:27 ` [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64 Bibo Mao
@ 2025-02-28 9:27 ` Bibo Mao
2025-04-01 13:48 ` Igor Mammedov
2025-02-28 9:27 ` [PATCH 5/6] tests/acpi: Fill acpi table data for LoongArch Bibo Mao
` (4 subsequent siblings)
8 siblings, 1 reply; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
Add empty acpi table for LoongArch64 virt machine, it is only empty
file and there is no data in these files.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
tests/data/acpi/loongarch64/virt/APIC | 0
tests/data/acpi/loongarch64/virt/DSDT | 0
tests/data/acpi/loongarch64/virt/FACP | 0
tests/data/acpi/loongarch64/virt/MCFG | 0
tests/data/acpi/loongarch64/virt/PPTT | 0
tests/data/acpi/loongarch64/virt/SLIT | 0
tests/data/acpi/loongarch64/virt/SPCR | 0
tests/data/acpi/loongarch64/virt/SRAT | 0
8 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 tests/data/acpi/loongarch64/virt/APIC
create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
create mode 100644 tests/data/acpi/loongarch64/virt/FACP
create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
diff --git a/tests/data/acpi/loongarch64/virt/APIC b/tests/data/acpi/loongarch64/virt/APIC
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/DSDT b/tests/data/acpi/loongarch64/virt/DSDT
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/FACP b/tests/data/acpi/loongarch64/virt/FACP
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/MCFG b/tests/data/acpi/loongarch64/virt/MCFG
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/PPTT b/tests/data/acpi/loongarch64/virt/PPTT
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/SLIT b/tests/data/acpi/loongarch64/virt/SLIT
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/SPCR b/tests/data/acpi/loongarch64/virt/SPCR
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/loongarch64/virt/SRAT b/tests/data/acpi/loongarch64/virt/SRAT
new file mode 100644
index 0000000000..e69de29bb2
--
2.39.3
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 5/6] tests/acpi: Fill acpi table data for LoongArch
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
` (3 preceding siblings ...)
2025-02-28 9:27 ` [PATCH 4/6] tests/acpi: Add empty ACPI data files " Bibo Mao
@ 2025-02-28 9:27 ` Bibo Mao
2025-02-28 9:27 ` [PATCH 6/6] tests/qtest: Enable bios-tables-test " Bibo Mao
` (3 subsequent siblings)
8 siblings, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
The acpi table data is filled for LoongArch virt machine with the
following command:
TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=./qemu-system-loongarch64 tests/qtest/bios-tables-test
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
tests/data/acpi/loongarch64/virt/APIC | Bin 0 -> 108 bytes
tests/data/acpi/loongarch64/virt/APIC.topology | Bin 0 -> 213 bytes
tests/data/acpi/loongarch64/virt/DSDT | Bin 0 -> 3614 bytes
tests/data/acpi/loongarch64/virt/DSDT.memhp | Bin 0 -> 4951 bytes
tests/data/acpi/loongarch64/virt/FACP | Bin 0 -> 268 bytes
tests/data/acpi/loongarch64/virt/MCFG | Bin 0 -> 60 bytes
tests/data/acpi/loongarch64/virt/PPTT | Bin 0 -> 76 bytes
tests/data/acpi/loongarch64/virt/PPTT.topology | Bin 0 -> 296 bytes
tests/data/acpi/loongarch64/virt/SLIT.memhp | Bin 0 -> 48 bytes
tests/data/acpi/loongarch64/virt/SPCR | Bin 0 -> 80 bytes
tests/data/acpi/loongarch64/virt/SRAT | Bin 0 -> 104 bytes
tests/data/acpi/loongarch64/virt/SRAT.memhp | Bin 0 -> 184 bytes
tests/data/acpi/loongarch64/virt/SRAT.topology | Bin 0 -> 216 bytes
13 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 tests/data/acpi/loongarch64/virt/APIC.topology
create mode 100644 tests/data/acpi/loongarch64/virt/DSDT.memhp
create mode 100644 tests/data/acpi/loongarch64/virt/PPTT.topology
create mode 100644 tests/data/acpi/loongarch64/virt/SLIT.memhp
create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.memhp
create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.topology
diff --git a/tests/data/acpi/loongarch64/virt/APIC b/tests/data/acpi/loongarch64/virt/APIC
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..3477789f422cad54f16734b3ec9ad1ff5135165d 100644
GIT binary patch
literal 108
zcmZ<^@N~{$U|?YU>g4b25v<@85#X!<1dKp25F12;0Eiakhw;E%5ne`ShX4P;(hQ=)
ZK)Db4AdUkN9{^%8L6C9*AO@2T3;;5a3;_TD
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/APIC.topology b/tests/data/acpi/loongarch64/virt/APIC.topology
new file mode 100644
index 0000000000000000000000000000000000000000..e14bbf758464b146665bb0e46d193fe2b57b5db6
GIT binary patch
literal 213
zcmXwvxeb6Y5CqS>5dw=RrUP04oInH;2^CN$P0$A&m|b)}X?!!br+sygh?r~M+;a5u
zxw{@?a7X9naN9CeNOl0P5t8WV7)mq~DA7!zL^FdD%^XUYO<`j39)@XaT)hKz1UKj`
Ke^uZ=NBIDAN(})3
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/DSDT b/tests/data/acpi/loongarch64/virt/DSDT
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6a619874ff25a5eacd68d0dd51e8314df3a7aad3 100644
GIT binary patch
literal 3614
zcmb`K&u<$=6vt=nb!@MHWbHUVoH((2;(&_QwIV<QDfZe)T<m1=rUc<it`w!B1cmTZ
zDitE+P$1&cTH=C)jL2VskXnfoH*QpLNI7ufjySsCx3lZa1Iw4Pl4tfi``+94nVt2#
zt-JM|m9!Arx3z71(=F9rckB`lO$b5f)SI@^b8Efs$t!VtyKTjKo6UO4*>bE^t1M!@
zYt1@Z+pcP8J8tGB<Hgfwg-DXCcRbb}7wP0YBzrlE*0=a_O2oAq^likcyY*}(l$kNi
z+@s-dKOBD5KE3zjHxI6UuVo8bHXllgKmLxS_TGMH@8I&y_x2Cp{c!(q@AkiPERV^N
zvYU{jpWAtOLXP%R=2-XVu|@NEWlWAnXmXN%a_9PlB<ufYl9h2uh9@WKCwCs1kYwZO
zlI)%|^_FEROVPI0M@!McB1{_zEGtcO{2S52<YT$1p4)LXKa{d!Mxn4`)KIUE2_?ry
zp{`O^%7Yz+q6e$S>Wqmc$9ODd{x4!-{?%CSm{@Xb6sy*E?4~kXRqF+MW&PK<YE_`z
z#s=D2ZEG}-?oKCDGzyNeMN{mHlCbcr<Lo1GOYET+6vTU{oX*Zn>wV)mo6r-(p`d3Y
z<hh3PvdAWB+z8S11R@Mk5!sZU91ihMAnklbUNB6{Yn~rW14*8U@7abtPuTj3JOk5^
z@H}Dac|wvWvhi%go@bCjSdeF68kU|g^*kZTGq{WHc?KEio@ZdHOV1#ANR>0fI3u2C
zU>cF0LGq9)=M>|_(pEU9I47ja8D*SN#u??DkSb@4amE;DjB`S&oN>k(XPj})38``#
zjMHG82IquSITMUC!8j9~6H?_&GR`F9Oma?0l{3XSQ;ajkIU!X}?77N{N;A$h=Y&)_
zry1uo<DBN4kSeFiI8DZBa!yE<Gs8GDj5EVIAyv*S<IFP7Ea!w&IcFH>4C9>PoRBJK
zj&bG~XO441s+_ZobCz+=a!yE<bB=M&G0r*838`|<GtPO&InOyERn7&*xxhFVI47ja
znP;4N#+m1wkSgaQ<6LB%i<}cu<y>N%ON?`gb3&?|1;$xmoCVGasd6qe&Sl2A%sC-d
z&K1VF!Z=qrC#1@WT37xzd%H}LaTYlzq~y#cdv>iV&hSqpO4w9Ut!zb%H@-*-6ufkN
zir=yL9IGRVeM=t02k6(tf_NwdueiN&G{fPL9Mxlu1PX2Un&XI=z0+xl+<LsX?b`b3
zfw1el<-umO|0WgS-S+R5e~N{*uXjJFK79Gto2Lhc4udP`W9TbKBq$D@R4CLPYK$Va
z1M`0Wmi7s*ls)V6VD5fDu#>|kT|6RV8b3SuE-lCDCgrn(++}<WwDrLynawZH|NN)B
z`f>Z-{9o<-Pj-6{@4qF^GGR@lMs!cwdZ*zkMUIXAT25ufu>LbYC7K7!&ok632lhOg
zpYBO5di^>2?Ad74d$J0y+D;SY0~Jg7=1Jj#A72)hVQoXY9ydCurSRO+rlEH~OOUi1
zZlhJoE%zF)?Zl5r+!&bsJ2wofQSLgsotkmnJ;~F_MagYjw!9b8DX+HzxYkx@8+oky
u*Cb=cNZ-Xiiwy9#2#pBH#jk6*i~pf^;eywMTuk#iV!ErnY*aT;s)#2;qXaGh
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/DSDT.memhp b/tests/data/acpi/loongarch64/virt/DSDT.memhp
new file mode 100644
index 0000000000000000000000000000000000000000..d7e2ff7031f5fd853a3a49e52f865f8d4ce49e2b
GIT binary patch
literal 4951
zcmcJT%WoT16vpq^PGXN8$9AT9HEqm8v??mtaa%wtQtYu)r=3ZR$88F(WJ@6>X-aF-
zhX@rS&7wfWrnQQM*tp=o0wJ{$D|X$1V3D$5!yd82d}kicJ!zCp=}4Km-@WIYIlnt+
zuJ0so<ty`pLMV4~b9&KA=FXS&B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IVH1zm(nM-VPtH?(OLRG5GJy^SvEDaNXO{0{i@KryVx&BKlftb4lExSzV^4
zLe2DYE8JYd5{dTYa&=>rmdfp=OHb*@3`t@gPfr`(uYxgKp2Gru+#Pd%9Ng6rRfuhd
lP-y8V7xy0m+{OJ5*R~7x7vvI)T|i9hcrDQvQ1Oi?{sTM8gFOHM
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/FACP b/tests/data/acpi/loongarch64/virt/FACP
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..04d8d4c26fa2be24af40cd7a72959ec6b12790e5 100644
GIT binary patch
literal 268
zcmZ>BbPnKQWME+Ra`Jcf2v%^42yj*a0-z8Bhz+8t3Rnaf7&sUh<QVvX44@rUHJnJp
PfcDEk?FYF<7Rm+yEcXWi
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/MCFG b/tests/data/acpi/loongarch64/virt/MCFG
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5f93b05abe1669fe4239edbba8aaf4fe666f5b95 100644
GIT binary patch
literal 60
rcmeZuc5}C3U|?XJ<K*w`5v<@85#X!<1dKp25F11z0R<?#9z+8GC8Y-e
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/PPTT b/tests/data/acpi/loongarch64/virt/PPTT
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..7a1258ecf123555b24462c98ccbb76b4ac1d0c2b 100644
GIT binary patch
literal 76
zcmWFt2nq3FU|?Wc;pFe^5v<@85#X!<1dKp25F11@h%hjKX%HI*fMQ%gwhD|7qyeJ>
B2LS*8
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/PPTT.topology b/tests/data/acpi/loongarch64/virt/PPTT.topology
new file mode 100644
index 0000000000000000000000000000000000000000..4017e2927c15c08c7e1a7e4d7eb10f416b63d69e
GIT binary patch
literal 296
zcmWFt2no?(WME**cJg=j2v%^42yj*a0-z8Bhz+6{L>L&rG>8oYKrs+dflv?<D8>h5
zS>O<Zn}MVkSq!AN1c;en`l055#F&x9KunOm=;}5A#aKX+AOO`15@Q7mK*T^ykX~f-
UK=!@?Vm2TK1E^k*7&}x50Csu}0RR91
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/SLIT.memhp b/tests/data/acpi/loongarch64/virt/SLIT.memhp
new file mode 100644
index 0000000000000000000000000000000000000000..67f00813af7b2356fe74eed943ab8dcf2291578b
GIT binary patch
literal 48
scmWIc@eDCwU|?W;;pFe^5v<@85#X!<1dKp25F11@0Wk=0iHdRo0OYg>0RR91
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/SPCR b/tests/data/acpi/loongarch64/virt/SPCR
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..3cc9bbcfb8051e632592d9db0fe3dba0af53ed8d 100644
GIT binary patch
literal 80
zcmWFza1IJ!U|?W6=;ZJ05v<@85#X!<1dKp25F12;fdT{L1I7pP5RMa&VrKx#G5-ew
Ih!}(f071qL0RR91
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/SRAT b/tests/data/acpi/loongarch64/virt/SRAT
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ff234ce45cbdd32f57fc0668aba135992e5ca887 100644
GIT binary patch
literal 104
zcmWFzatz5}U|?We=j89~5v<@85#X!<1dKp25F12;FdPV=@)<SYGB5@QjDf5V0BFYt
A0RR91
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/SRAT.memhp b/tests/data/acpi/loongarch64/virt/SRAT.memhp
new file mode 100644
index 0000000000000000000000000000000000000000..60e8d2a136be43c6479740a28b85a1348f044322
GIT binary patch
literal 184
zcmWFzatztQz`($G$jRT?BUr&HBEVSz2pEB4AU22wVK@*#<uhu)Wnc^z7z0@!qXwJ@
WlZVkL<|C=&fSO|gGmja@0MY>X$p`@e
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/loongarch64/virt/SRAT.topology b/tests/data/acpi/loongarch64/virt/SRAT.topology
new file mode 100644
index 0000000000000000000000000000000000000000..75e0703ae0d3348919e2b583d1b4f4b8bb3ef65d
GIT binary patch
literal 216
zcmWFzatyh_z`($`+R5M9BUr&HBEVSz2pEB4AU22wVK@-L;4`AhGokUB(fBNAd{#6*
V8ycS-na`*JcL|Ka0b?Mm0|55#2mt^9
literal 0
HcmV?d00001
--
2.39.3
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 6/6] tests/qtest: Enable bios-tables-test for LoongArch
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
` (4 preceding siblings ...)
2025-02-28 9:27 ` [PATCH 5/6] tests/acpi: Fill acpi table data for LoongArch Bibo Mao
@ 2025-02-28 9:27 ` Bibo Mao
2025-03-19 12:06 ` Fabiano Rosas
2025-04-01 13:42 ` Igor Mammedov
2025-02-28 12:56 ` [PATCH 0/6] Add bios-tables-test for LoongArch64 system Gerd Hoffmann
` (2 subsequent siblings)
8 siblings, 2 replies; 19+ messages in thread
From: Bibo Mao @ 2025-02-28 9:27 UTC (permalink / raw)
To: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
Enable bios-tables-test for LoongArch virt machine, it passes to run
with command "make check-qtest-loongarch64".
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
tests/qtest/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 8a6243382a..8628eebfbc 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -149,7 +149,8 @@ qtests_hppa = \
qtests_loongarch64 = qtests_filter + \
(config_all_devices.has_key('CONFIG_LOONGARCH_VIRT') ? ['numa-test'] : []) + \
- ['boot-serial-test']
+ ['boot-serial-test'] + \
+ (unpack_edk2_blobs ? ['bios-tables-test'] : [])
qtests_m68k = ['boot-serial-test'] + \
qtests_filter
--
2.39.3
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Add bios-tables-test for LoongArch64 system
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
` (5 preceding siblings ...)
2025-02-28 9:27 ` [PATCH 6/6] tests/qtest: Enable bios-tables-test " Bibo Mao
@ 2025-02-28 12:56 ` Gerd Hoffmann
2025-04-01 13:50 ` Igor Mammedov
2025-05-11 13:17 ` Michael S. Tsirkin
8 siblings, 0 replies; 19+ messages in thread
From: Gerd Hoffmann @ 2025-02-28 12:56 UTC (permalink / raw)
To: Bibo Mao
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé, qemu-devel
On Fri, Feb 28, 2025 at 05:27:23PM +0800, Bibo Mao wrote:
> This patchset add bios-tables-test for LoongArch64 virt machine
> system. It works with UEFI bios, with uefi-test-tools LoongArch64
> support is added to build bios-tables-test.loongarch64.iso.
>
> Also with test case bios-tables-test, LoongArch64 support is added
> and some basic ACPI tables is added here. It passes with command
> make check-qtest-loongarch64 with the result:
> qtest-loongarch64/bios-tables-test OK 29.52s 4 subtests passed
UEFI bits look good to me.
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
take care,
Gerd
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 6/6] tests/qtest: Enable bios-tables-test for LoongArch
2025-02-28 9:27 ` [PATCH 6/6] tests/qtest: Enable bios-tables-test " Bibo Mao
@ 2025-03-19 12:06 ` Fabiano Rosas
2025-04-01 13:42 ` Igor Mammedov
1 sibling, 0 replies; 19+ messages in thread
From: Fabiano Rosas @ 2025-03-19 12:06 UTC (permalink / raw)
To: Bibo Mao, Laurent Vivier, Michael S . Tsirkin, Igor Mammedov,
Ani Sinha, Paolo Bonzini, Philippe Mathieu-Daudé,
Gerd Hoffmann
Cc: qemu-devel
Bibo Mao <maobibo@loongson.cn> writes:
> Enable bios-tables-test for LoongArch virt machine, it passes to run
> with command "make check-qtest-loongarch64".
>
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> ---
> tests/qtest/meson.build | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
> index 8a6243382a..8628eebfbc 100644
> --- a/tests/qtest/meson.build
> +++ b/tests/qtest/meson.build
> @@ -149,7 +149,8 @@ qtests_hppa = \
>
> qtests_loongarch64 = qtests_filter + \
> (config_all_devices.has_key('CONFIG_LOONGARCH_VIRT') ? ['numa-test'] : []) + \
> - ['boot-serial-test']
> + ['boot-serial-test'] + \
> + (unpack_edk2_blobs ? ['bios-tables-test'] : [])
>
> qtests_m68k = ['boot-serial-test'] + \
> qtests_filter
Reviewed-by: Fabiano Rosas <farosas@suse.de>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64
2025-02-28 9:27 ` [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64 Bibo Mao
@ 2025-04-01 13:41 ` Igor Mammedov
2025-05-19 2:02 ` Bibo Mao
0 siblings, 1 reply; 19+ messages in thread
From: Igor Mammedov @ 2025-04-01 13:41 UTC (permalink / raw)
To: Bibo Mao
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On Fri, 28 Feb 2025 17:27:26 +0800
Bibo Mao <maobibo@loongson.cn> wrote:
> Add basic ACPI table test case for LoongArch64.
>
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> ---
> tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++++++++++++++++++
> 1 file changed, 62 insertions(+)
>
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index 0a333ec435..008d7a0497 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -2420,6 +2420,59 @@ static void test_acpi_aarch64_virt_oem_fields(void)
> g_free(args);
> }
>
> +#define LOONGARCH64_INIT_TEST_DATA(data) \
> + test_data data = { \
> + .machine = "virt", \
> + .arch = "loongarch64", \
> + .tcg_only = true, \
> + .uefi_fl1 = "pc-bios/edk2-loongarch64-code.fd", \
> + .uefi_fl2 = "pc-bios/edk2-loongarch64-vars.fd", \
> + .cd = "tests/data/uefi-boot-images/" \
> + "bios-tables-test.loongarch64.iso.qcow2", \
> + .ram_start = 0, \
> + .scan_len = 128ULL * 1024 * 1024, \
while it consistent with other test, we should switch to using MiB macro
so I'd like to ask
* 1st convert all similar places in bios-tables-test.c 'x * MiB' style
* fix up this patch to use that as well
> + }
> +
> +static void test_acpi_loongarch64_virt(void)
> +{
> + LOONGARCH64_INIT_TEST_DATA(data);
> +
> + test_acpi_one("-cpu la464 ", &data);
> + free_test_data(&data);
> +}
> +
> +static void test_acpi_loongarch64_virt_topology(void)
> +{
> + LOONGARCH64_INIT_TEST_DATA(data);
> +
> + data.variant = ".topology";
> + test_acpi_one("-cpu la464 -smp sockets=1,cores=4,threads=2", &data);
> + free_test_data(&data);
> +}
> +
> +static void test_acpi_loongarch64_virt_numamem(void)
> +{
> + LOONGARCH64_INIT_TEST_DATA(data);
> +
> + data.variant = ".numamem";
> + test_acpi_one(" -cpu la464 -object memory-backend-ram,id=ram0,size=128M"
> + " -numa node,memdev=ram0", &data);
> + free_test_data(&data);
> +}
> +
> +static void test_acpi_loongarch64_virt_memhp(void)
> +{
> + LOONGARCH64_INIT_TEST_DATA(data);
> +
> + data.variant = ".memhp";
> + test_acpi_one(" -cpu la464 -m 128,slots=3,maxmem=1G"
> + " -object memory-backend-ram,id=ram0,size=64M"
> + " -object memory-backend-ram,id=ram1,size=64M"
> + " -numa node,memdev=ram0 -numa node,memdev=ram1"
> + " -numa dist,src=0,dst=1,val=21",
I'd test numa specific stuff in test_acpi_loongarch64_virt_numamem()
and simplify this test case.
> + &data);
> + free_test_data(&data);
> +}
>
> int main(int argc, char *argv[])
> {
> @@ -2593,6 +2646,15 @@ int main(int argc, char *argv[])
> qtest_add_func("acpi/virt/numamem",
> test_acpi_riscv64_virt_tcg_numamem);
> }
> + } else if (strcmp(arch, "loongarch64") == 0) {
> + if (has_tcg && qtest_has_device("virtio-blk-pci")) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
is it necessary?
if yes, then add explanation to commit message, why it's need.
> + qtest_add_func("acpi/virt", test_acpi_loongarch64_virt);
> + qtest_add_func("acpi/virt/topology",
> + test_acpi_loongarch64_virt_topology);
> + qtest_add_func("acpi/virt/numamem",
> + test_acpi_loongarch64_virt_numamem);
> + qtest_add_func("acpi/virt/memhp", test_acpi_loongarch64_virt_memhp);
> + }
> }
> ret = g_test_run();
> boot_sector_cleanup(disk);
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 6/6] tests/qtest: Enable bios-tables-test for LoongArch
2025-02-28 9:27 ` [PATCH 6/6] tests/qtest: Enable bios-tables-test " Bibo Mao
2025-03-19 12:06 ` Fabiano Rosas
@ 2025-04-01 13:42 ` Igor Mammedov
1 sibling, 0 replies; 19+ messages in thread
From: Igor Mammedov @ 2025-04-01 13:42 UTC (permalink / raw)
To: Bibo Mao
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On Fri, 28 Feb 2025 17:27:29 +0800
Bibo Mao <maobibo@loongson.cn> wrote:
> Enable bios-tables-test for LoongArch virt machine, it passes to run
> with command "make check-qtest-loongarch64".
>
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
I suggest merging it into of 3/6
> ---
> tests/qtest/meson.build | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
> index 8a6243382a..8628eebfbc 100644
> --- a/tests/qtest/meson.build
> +++ b/tests/qtest/meson.build
> @@ -149,7 +149,8 @@ qtests_hppa = \
>
> qtests_loongarch64 = qtests_filter + \
> (config_all_devices.has_key('CONFIG_LOONGARCH_VIRT') ? ['numa-test'] : []) + \
> - ['boot-serial-test']
> + ['boot-serial-test'] + \
> + (unpack_edk2_blobs ? ['bios-tables-test'] : [])
>
> qtests_m68k = ['boot-serial-test'] + \
> qtests_filter
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 4/6] tests/acpi: Add empty ACPI data files for LoongArch64
2025-02-28 9:27 ` [PATCH 4/6] tests/acpi: Add empty ACPI data files " Bibo Mao
@ 2025-04-01 13:48 ` Igor Mammedov
2025-05-19 2:46 ` Bibo Mao
2025-05-20 10:07 ` Bibo Mao
0 siblings, 2 replies; 19+ messages in thread
From: Igor Mammedov @ 2025-04-01 13:48 UTC (permalink / raw)
To: Bibo Mao
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On Fri, 28 Feb 2025 17:27:27 +0800
Bibo Mao <maobibo@loongson.cn> wrote:
> Add empty acpi table for LoongArch64 virt machine, it is only empty
> file and there is no data in these files.
this patch after 3/6 doesn't make sense,
either drop.
Adding empty blobs, can be useful (as then you can get ACPI diff during test)
but only if you follow update acpi blos process as described in
bios-tables-test.c
as is, the next patch (5/6) should precede 3/6
>
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> ---
> tests/data/acpi/loongarch64/virt/APIC | 0
> tests/data/acpi/loongarch64/virt/DSDT | 0
> tests/data/acpi/loongarch64/virt/FACP | 0
> tests/data/acpi/loongarch64/virt/MCFG | 0
> tests/data/acpi/loongarch64/virt/PPTT | 0
> tests/data/acpi/loongarch64/virt/SLIT | 0
> tests/data/acpi/loongarch64/virt/SPCR | 0
> tests/data/acpi/loongarch64/virt/SRAT | 0
> 8 files changed, 0 insertions(+), 0 deletions(-)
> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
>
> diff --git a/tests/data/acpi/loongarch64/virt/APIC b/tests/data/acpi/loongarch64/virt/APIC
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/DSDT b/tests/data/acpi/loongarch64/virt/DSDT
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/FACP b/tests/data/acpi/loongarch64/virt/FACP
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/MCFG b/tests/data/acpi/loongarch64/virt/MCFG
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/PPTT b/tests/data/acpi/loongarch64/virt/PPTT
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/SLIT b/tests/data/acpi/loongarch64/virt/SLIT
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/SPCR b/tests/data/acpi/loongarch64/virt/SPCR
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/data/acpi/loongarch64/virt/SRAT b/tests/data/acpi/loongarch64/virt/SRAT
> new file mode 100644
> index 0000000000..e69de29bb2
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Add bios-tables-test for LoongArch64 system
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
` (6 preceding siblings ...)
2025-02-28 12:56 ` [PATCH 0/6] Add bios-tables-test for LoongArch64 system Gerd Hoffmann
@ 2025-04-01 13:50 ` Igor Mammedov
2025-05-19 2:14 ` Bibo Mao
2025-05-11 13:17 ` Michael S. Tsirkin
8 siblings, 1 reply; 19+ messages in thread
From: Igor Mammedov @ 2025-04-01 13:50 UTC (permalink / raw)
To: Bibo Mao
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On Fri, 28 Feb 2025 17:27:23 +0800
Bibo Mao <maobibo@loongson.cn> wrote:
> This patchset add bios-tables-test for LoongArch64 virt machine
> system. It works with UEFI bios, with uefi-test-tools LoongArch64
> support is added to build bios-tables-test.loongarch64.iso.
>
> Also with test case bios-tables-test, LoongArch64 support is added
> and some basic ACPI tables is added here. It passes with command
> make check-qtest-loongarch64 with the result:
> qtest-loongarch64/bios-tables-test OK 29.52s 4 subtests passed
>
> Bibo Mao (6):
> uefi-test-tools:: Add LoongArch64 support
> tests/data/uefi-boot-images: Add ISO image for LoongArch system
> tests/qtest/bios-tables-test: Add basic testing for LoongArch64
> tests/acpi: Add empty ACPI data files for LoongArch64
> tests/acpi: Fill acpi table data for LoongArch
blobs no longer match (since cpu hotplug was merged after this series)
so blobs need to be updated and series needs to be re-spun
> tests/qtest: Enable bios-tables-test for LoongArch
>
> tests/data/acpi/loongarch64/virt/APIC | Bin 0 -> 108 bytes
> .../data/acpi/loongarch64/virt/APIC.topology | Bin 0 -> 213 bytes
> tests/data/acpi/loongarch64/virt/DSDT | Bin 0 -> 3614 bytes
> tests/data/acpi/loongarch64/virt/DSDT.memhp | Bin 0 -> 4951 bytes
> tests/data/acpi/loongarch64/virt/FACP | Bin 0 -> 268 bytes
> tests/data/acpi/loongarch64/virt/MCFG | Bin 0 -> 60 bytes
> tests/data/acpi/loongarch64/virt/PPTT | Bin 0 -> 76 bytes
> .../data/acpi/loongarch64/virt/PPTT.topology | Bin 0 -> 296 bytes
> tests/data/acpi/loongarch64/virt/SLIT | 0
> tests/data/acpi/loongarch64/virt/SLIT.memhp | Bin 0 -> 48 bytes
> tests/data/acpi/loongarch64/virt/SPCR | Bin 0 -> 80 bytes
> tests/data/acpi/loongarch64/virt/SRAT | Bin 0 -> 104 bytes
> tests/data/acpi/loongarch64/virt/SRAT.memhp | Bin 0 -> 184 bytes
> .../data/acpi/loongarch64/virt/SRAT.topology | Bin 0 -> 216 bytes
> .../bios-tables-test.loongarch64.iso.qcow2 | Bin 0 -> 12800 bytes
> tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++
> tests/qtest/meson.build | 3 +-
> tests/uefi-test-tools/Makefile | 5 +-
> .../UefiTestToolsPkg/UefiTestToolsPkg.dsc | 6 +-
> tests/uefi-test-tools/uefi-test-build.config | 10 +++
> 20 files changed, 82 insertions(+), 4 deletions(-)
> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
> create mode 100644 tests/data/acpi/loongarch64/virt/APIC.topology
> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT.memhp
> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT.topology
> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT.memhp
> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.memhp
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.topology
> create mode 100644 tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
>
>
> base-commit: b69801dd6b1eb4d107f7c2f643adf0a4e3ec9124
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Add bios-tables-test for LoongArch64 system
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
` (7 preceding siblings ...)
2025-04-01 13:50 ` Igor Mammedov
@ 2025-05-11 13:17 ` Michael S. Tsirkin
2025-05-19 1:02 ` Bibo Mao
8 siblings, 1 reply; 19+ messages in thread
From: Michael S. Tsirkin @ 2025-05-11 13:17 UTC (permalink / raw)
To: Bibo Mao
Cc: Fabiano Rosas, Laurent Vivier, Igor Mammedov, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On Fri, Feb 28, 2025 at 05:27:23PM +0800, Bibo Mao wrote:
> This patchset add bios-tables-test for LoongArch64 virt machine
> system. It works with UEFI bios, with uefi-test-tools LoongArch64
> support is added to build bios-tables-test.loongarch64.iso.
>
> Also with test case bios-tables-test, LoongArch64 support is added
> and some basic ACPI tables is added here. It passes with command
> make check-qtest-loongarch64 with the result:
> qtest-loongarch64/bios-tables-test OK 29.52s 4 subtests passed
Still waiting for Igor's comment on this to be addressed.
> Bibo Mao (6):
> uefi-test-tools:: Add LoongArch64 support
> tests/data/uefi-boot-images: Add ISO image for LoongArch system
> tests/qtest/bios-tables-test: Add basic testing for LoongArch64
> tests/acpi: Add empty ACPI data files for LoongArch64
> tests/acpi: Fill acpi table data for LoongArch
> tests/qtest: Enable bios-tables-test for LoongArch
>
> tests/data/acpi/loongarch64/virt/APIC | Bin 0 -> 108 bytes
> .../data/acpi/loongarch64/virt/APIC.topology | Bin 0 -> 213 bytes
> tests/data/acpi/loongarch64/virt/DSDT | Bin 0 -> 3614 bytes
> tests/data/acpi/loongarch64/virt/DSDT.memhp | Bin 0 -> 4951 bytes
> tests/data/acpi/loongarch64/virt/FACP | Bin 0 -> 268 bytes
> tests/data/acpi/loongarch64/virt/MCFG | Bin 0 -> 60 bytes
> tests/data/acpi/loongarch64/virt/PPTT | Bin 0 -> 76 bytes
> .../data/acpi/loongarch64/virt/PPTT.topology | Bin 0 -> 296 bytes
> tests/data/acpi/loongarch64/virt/SLIT | 0
> tests/data/acpi/loongarch64/virt/SLIT.memhp | Bin 0 -> 48 bytes
> tests/data/acpi/loongarch64/virt/SPCR | Bin 0 -> 80 bytes
> tests/data/acpi/loongarch64/virt/SRAT | Bin 0 -> 104 bytes
> tests/data/acpi/loongarch64/virt/SRAT.memhp | Bin 0 -> 184 bytes
> .../data/acpi/loongarch64/virt/SRAT.topology | Bin 0 -> 216 bytes
> .../bios-tables-test.loongarch64.iso.qcow2 | Bin 0 -> 12800 bytes
> tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++
> tests/qtest/meson.build | 3 +-
> tests/uefi-test-tools/Makefile | 5 +-
> .../UefiTestToolsPkg/UefiTestToolsPkg.dsc | 6 +-
> tests/uefi-test-tools/uefi-test-build.config | 10 +++
> 20 files changed, 82 insertions(+), 4 deletions(-)
> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
> create mode 100644 tests/data/acpi/loongarch64/virt/APIC.topology
> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT.memhp
> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT.topology
> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT.memhp
> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.memhp
> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.topology
> create mode 100644 tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
>
>
> base-commit: b69801dd6b1eb4d107f7c2f643adf0a4e3ec9124
> --
> 2.39.3
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Add bios-tables-test for LoongArch64 system
2025-05-11 13:17 ` Michael S. Tsirkin
@ 2025-05-19 1:02 ` Bibo Mao
0 siblings, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-05-19 1:02 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Fabiano Rosas, Laurent Vivier, Igor Mammedov, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On 2025/5/11 下午9:17, Michael S. Tsirkin wrote:
> On Fri, Feb 28, 2025 at 05:27:23PM +0800, Bibo Mao wrote:
>> This patchset add bios-tables-test for LoongArch64 virt machine
>> system. It works with UEFI bios, with uefi-test-tools LoongArch64
>> support is added to build bios-tables-test.loongarch64.iso.
>>
>> Also with test case bios-tables-test, LoongArch64 support is added
>> and some basic ACPI tables is added here. It passes with command
>> make check-qtest-loongarch64 with the result:
>> qtest-loongarch64/bios-tables-test OK 29.52s 4 subtests passed
>
> Still waiting for Igor's comment on this to be addressed.
Sorry for the late reply because there is on vacation leave last week.
Thanks for your reminder and I do not notice Igor's comments until this
email. And I will reply and try hard to address it ASAP.
Regards
Bibo Mao
>
>
>> Bibo Mao (6):
>> uefi-test-tools:: Add LoongArch64 support
>> tests/data/uefi-boot-images: Add ISO image for LoongArch system
>> tests/qtest/bios-tables-test: Add basic testing for LoongArch64
>> tests/acpi: Add empty ACPI data files for LoongArch64
>> tests/acpi: Fill acpi table data for LoongArch
>> tests/qtest: Enable bios-tables-test for LoongArch
>>
>> tests/data/acpi/loongarch64/virt/APIC | Bin 0 -> 108 bytes
>> .../data/acpi/loongarch64/virt/APIC.topology | Bin 0 -> 213 bytes
>> tests/data/acpi/loongarch64/virt/DSDT | Bin 0 -> 3614 bytes
>> tests/data/acpi/loongarch64/virt/DSDT.memhp | Bin 0 -> 4951 bytes
>> tests/data/acpi/loongarch64/virt/FACP | Bin 0 -> 268 bytes
>> tests/data/acpi/loongarch64/virt/MCFG | Bin 0 -> 60 bytes
>> tests/data/acpi/loongarch64/virt/PPTT | Bin 0 -> 76 bytes
>> .../data/acpi/loongarch64/virt/PPTT.topology | Bin 0 -> 296 bytes
>> tests/data/acpi/loongarch64/virt/SLIT | 0
>> tests/data/acpi/loongarch64/virt/SLIT.memhp | Bin 0 -> 48 bytes
>> tests/data/acpi/loongarch64/virt/SPCR | Bin 0 -> 80 bytes
>> tests/data/acpi/loongarch64/virt/SRAT | Bin 0 -> 104 bytes
>> tests/data/acpi/loongarch64/virt/SRAT.memhp | Bin 0 -> 184 bytes
>> .../data/acpi/loongarch64/virt/SRAT.topology | Bin 0 -> 216 bytes
>> .../bios-tables-test.loongarch64.iso.qcow2 | Bin 0 -> 12800 bytes
>> tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++
>> tests/qtest/meson.build | 3 +-
>> tests/uefi-test-tools/Makefile | 5 +-
>> .../UefiTestToolsPkg/UefiTestToolsPkg.dsc | 6 +-
>> tests/uefi-test-tools/uefi-test-build.config | 10 +++
>> 20 files changed, 82 insertions(+), 4 deletions(-)
>> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
>> create mode 100644 tests/data/acpi/loongarch64/virt/APIC.topology
>> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
>> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT.memhp
>> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
>> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
>> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
>> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT.topology
>> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT.memhp
>> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.memhp
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.topology
>> create mode 100644 tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
>>
>>
>> base-commit: b69801dd6b1eb4d107f7c2f643adf0a4e3ec9124
>> --
>> 2.39.3
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64
2025-04-01 13:41 ` Igor Mammedov
@ 2025-05-19 2:02 ` Bibo Mao
0 siblings, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-05-19 2:02 UTC (permalink / raw)
To: Igor Mammedov
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On 2025/4/1 下午9:41, Igor Mammedov wrote:
> On Fri, 28 Feb 2025 17:27:26 +0800
> Bibo Mao <maobibo@loongson.cn> wrote:
>
>> Add basic ACPI table test case for LoongArch64.
>>
>> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
>> ---
>> tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++++++++++++++++++
>> 1 file changed, 62 insertions(+)
>>
>> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
>> index 0a333ec435..008d7a0497 100644
>> --- a/tests/qtest/bios-tables-test.c
>> +++ b/tests/qtest/bios-tables-test.c
>> @@ -2420,6 +2420,59 @@ static void test_acpi_aarch64_virt_oem_fields(void)
>> g_free(args);
>> }
>>
>> +#define LOONGARCH64_INIT_TEST_DATA(data) \
>> + test_data data = { \
>> + .machine = "virt", \
>> + .arch = "loongarch64", \
>> + .tcg_only = true, \
>> + .uefi_fl1 = "pc-bios/edk2-loongarch64-code.fd", \
>> + .uefi_fl2 = "pc-bios/edk2-loongarch64-vars.fd", \
>> + .cd = "tests/data/uefi-boot-images/" \
>> + "bios-tables-test.loongarch64.iso.qcow2", \
>> + .ram_start = 0, \
>> + .scan_len = 128ULL * 1024 * 1024, \
>
> while it consistent with other test, we should switch to using MiB macro
> so I'd like to ask
> * 1st convert all similar places in bios-tables-test.c 'x * MiB' style
> * fix up this patch to use that as well
yes, will use MiB macro.
>
>> + }
>> +
>> +static void test_acpi_loongarch64_virt(void)
>> +{
>> + LOONGARCH64_INIT_TEST_DATA(data);
>> +
>> + test_acpi_one("-cpu la464 ", &data);
>> + free_test_data(&data);
>> +}
>> +
>> +static void test_acpi_loongarch64_virt_topology(void)
>> +{
>> + LOONGARCH64_INIT_TEST_DATA(data);
>> +
>> + data.variant = ".topology";
>> + test_acpi_one("-cpu la464 -smp sockets=1,cores=4,threads=2", &data);
>> + free_test_data(&data);
>> +}
>> +
>> +static void test_acpi_loongarch64_virt_numamem(void)
>> +{
>> + LOONGARCH64_INIT_TEST_DATA(data);
>> +
>> + data.variant = ".numamem";
>> + test_acpi_one(" -cpu la464 -object memory-backend-ram,id=ram0,size=128M"
>> + " -numa node,memdev=ram0", &data);
>> + free_test_data(&data);
>> +}
>> +
>
>> +static void test_acpi_loongarch64_virt_memhp(void)
>> +{
>> + LOONGARCH64_INIT_TEST_DATA(data);
>> +
>> + data.variant = ".memhp";
>> + test_acpi_one(" -cpu la464 -m 128,slots=3,maxmem=1G"
>
>> + " -object memory-backend-ram,id=ram0,size=64M"
>> + " -object memory-backend-ram,id=ram1,size=64M"
>> + " -numa node,memdev=ram0 -numa node,memdev=ram1"
>> + " -numa dist,src=0,dst=1,val=21",
> I'd test numa specific stuff in test_acpi_loongarch64_virt_numamem()
> and simplify this test case.
Actually it is a little strange here. There is no SLIT information in
numamem(), however it is in memhp() test case.
Will move it to numa test case and make memory hotplug case simpler.
>
>> + &data);
>> + free_test_data(&data);
>> +}
>>
>> int main(int argc, char *argv[])
>> {
>> @@ -2593,6 +2646,15 @@ int main(int argc, char *argv[])
>> qtest_add_func("acpi/virt/numamem",
>> test_acpi_riscv64_virt_tcg_numamem);
>> }
>> + } else if (strcmp(arch, "loongarch64") == 0) {
>> + if (has_tcg && qtest_has_device("virtio-blk-pci")) {
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> is it necessary?
> if yes, then add explanation to commit message, why it's need.
From the code it is not necessary if UEFI bios is used here. It passes
to run if it is removed.
Will remove it in next patch.
Regards
Bibo Mao
>
>> + qtest_add_func("acpi/virt", test_acpi_loongarch64_virt);
>> + qtest_add_func("acpi/virt/topology",
>> + test_acpi_loongarch64_virt_topology);
>> + qtest_add_func("acpi/virt/numamem",
>> + test_acpi_loongarch64_virt_numamem);
>> + qtest_add_func("acpi/virt/memhp", test_acpi_loongarch64_virt_memhp);
>> + }
>> }
>> ret = g_test_run();
>> boot_sector_cleanup(disk);
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Add bios-tables-test for LoongArch64 system
2025-04-01 13:50 ` Igor Mammedov
@ 2025-05-19 2:14 ` Bibo Mao
0 siblings, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-05-19 2:14 UTC (permalink / raw)
To: Igor Mammedov
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On 2025/4/1 下午9:50, Igor Mammedov wrote:
> On Fri, 28 Feb 2025 17:27:23 +0800
> Bibo Mao <maobibo@loongson.cn> wrote:
>
>> This patchset add bios-tables-test for LoongArch64 virt machine
>> system. It works with UEFI bios, with uefi-test-tools LoongArch64
>> support is added to build bios-tables-test.loongarch64.iso.
>>
>> Also with test case bios-tables-test, LoongArch64 support is added
>> and some basic ACPI tables is added here. It passes with command
>> make check-qtest-loongarch64 with the result:
>> qtest-loongarch64/bios-tables-test OK 29.52s 4 subtests passed
>>
>> Bibo Mao (6):
>> uefi-test-tools:: Add LoongArch64 support
>> tests/data/uefi-boot-images: Add ISO image for LoongArch system
>> tests/qtest/bios-tables-test: Add basic testing for LoongArch64
>> tests/acpi: Add empty ACPI data files for LoongArch64
>> tests/acpi: Fill acpi table data for LoongArch
>
> blobs no longer match (since cpu hotplug was merged after this series)
> so blobs need to be updated and series needs to be re-spun
yes, this patch need be re-spun since cpu hotplug is merged and RSDT
table is replaced with XSDT table.
Will refresh the patch based on the latest version.
Regards
Bibo Mao
>
>> tests/qtest: Enable bios-tables-test for LoongArch
>>
>> tests/data/acpi/loongarch64/virt/APIC | Bin 0 -> 108 bytes
>> .../data/acpi/loongarch64/virt/APIC.topology | Bin 0 -> 213 bytes
>> tests/data/acpi/loongarch64/virt/DSDT | Bin 0 -> 3614 bytes
>> tests/data/acpi/loongarch64/virt/DSDT.memhp | Bin 0 -> 4951 bytes
>> tests/data/acpi/loongarch64/virt/FACP | Bin 0 -> 268 bytes
>> tests/data/acpi/loongarch64/virt/MCFG | Bin 0 -> 60 bytes
>> tests/data/acpi/loongarch64/virt/PPTT | Bin 0 -> 76 bytes
>> .../data/acpi/loongarch64/virt/PPTT.topology | Bin 0 -> 296 bytes
>> tests/data/acpi/loongarch64/virt/SLIT | 0
>> tests/data/acpi/loongarch64/virt/SLIT.memhp | Bin 0 -> 48 bytes
>> tests/data/acpi/loongarch64/virt/SPCR | Bin 0 -> 80 bytes
>> tests/data/acpi/loongarch64/virt/SRAT | Bin 0 -> 104 bytes
>> tests/data/acpi/loongarch64/virt/SRAT.memhp | Bin 0 -> 184 bytes
>> .../data/acpi/loongarch64/virt/SRAT.topology | Bin 0 -> 216 bytes
>> .../bios-tables-test.loongarch64.iso.qcow2 | Bin 0 -> 12800 bytes
>> tests/qtest/bios-tables-test.c | 62 ++++++++++++++++++
>> tests/qtest/meson.build | 3 +-
>> tests/uefi-test-tools/Makefile | 5 +-
>> .../UefiTestToolsPkg/UefiTestToolsPkg.dsc | 6 +-
>> tests/uefi-test-tools/uefi-test-build.config | 10 +++
>> 20 files changed, 82 insertions(+), 4 deletions(-)
>> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
>> create mode 100644 tests/data/acpi/loongarch64/virt/APIC.topology
>> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
>> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT.memhp
>> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
>> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
>> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
>> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT.topology
>> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT.memhp
>> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.memhp
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT.topology
>> create mode 100644 tests/data/uefi-boot-images/bios-tables-test.loongarch64.iso.qcow2
>>
>>
>> base-commit: b69801dd6b1eb4d107f7c2f643adf0a4e3ec9124
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 4/6] tests/acpi: Add empty ACPI data files for LoongArch64
2025-04-01 13:48 ` Igor Mammedov
@ 2025-05-19 2:46 ` Bibo Mao
2025-05-20 10:07 ` Bibo Mao
1 sibling, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-05-19 2:46 UTC (permalink / raw)
To: Igor Mammedov
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On 2025/4/1 下午9:48, Igor Mammedov wrote:
> On Fri, 28 Feb 2025 17:27:27 +0800
> Bibo Mao <maobibo@loongson.cn> wrote:
>
>> Add empty acpi table for LoongArch64 virt machine, it is only empty
>> file and there is no data in these files.
>
> this patch after 3/6 doesn't make sense,
> either drop.
Empty acpi table can be dropped.
>
> Adding empty blobs, can be useful (as then you can get ACPI diff during test)
> but only if you follow update acpi blos process as described in
> bios-tables-test.c
>
>
> as is, the next patch (5/6) should precede 3/6
yes, it is strange about patch order. How about split patch 3/6 into
smaller patches, one patch for one test case, and move specified acpi
table into smaller patches.
Regards
Bibo Mao
>
>
>>
>> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
>> ---
>> tests/data/acpi/loongarch64/virt/APIC | 0
>> tests/data/acpi/loongarch64/virt/DSDT | 0
>> tests/data/acpi/loongarch64/virt/FACP | 0
>> tests/data/acpi/loongarch64/virt/MCFG | 0
>> tests/data/acpi/loongarch64/virt/PPTT | 0
>> tests/data/acpi/loongarch64/virt/SLIT | 0
>> tests/data/acpi/loongarch64/virt/SPCR | 0
>> tests/data/acpi/loongarch64/virt/SRAT | 0
>> 8 files changed, 0 insertions(+), 0 deletions(-)
>> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
>> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
>> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
>> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
>> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
>>
>> diff --git a/tests/data/acpi/loongarch64/virt/APIC b/tests/data/acpi/loongarch64/virt/APIC
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/DSDT b/tests/data/acpi/loongarch64/virt/DSDT
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/FACP b/tests/data/acpi/loongarch64/virt/FACP
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/MCFG b/tests/data/acpi/loongarch64/virt/MCFG
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/PPTT b/tests/data/acpi/loongarch64/virt/PPTT
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/SLIT b/tests/data/acpi/loongarch64/virt/SLIT
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/SPCR b/tests/data/acpi/loongarch64/virt/SPCR
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/SRAT b/tests/data/acpi/loongarch64/virt/SRAT
>> new file mode 100644
>> index 0000000000..e69de29bb2
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 4/6] tests/acpi: Add empty ACPI data files for LoongArch64
2025-04-01 13:48 ` Igor Mammedov
2025-05-19 2:46 ` Bibo Mao
@ 2025-05-20 10:07 ` Bibo Mao
1 sibling, 0 replies; 19+ messages in thread
From: Bibo Mao @ 2025-05-20 10:07 UTC (permalink / raw)
To: Igor Mammedov
Cc: Fabiano Rosas, Laurent Vivier, Michael S . Tsirkin, Ani Sinha,
Paolo Bonzini, Philippe Mathieu-Daudé, Gerd Hoffmann,
qemu-devel
On 2025/4/1 下午9:48, Igor Mammedov wrote:
> On Fri, 28 Feb 2025 17:27:27 +0800
> Bibo Mao <maobibo@loongson.cn> wrote:
>
>> Add empty acpi table for LoongArch64 virt machine, it is only empty
>> file and there is no data in these files.
>
> this patch after 3/6 doesn't make sense,
> either drop.
>
> Adding empty blobs, can be useful (as then you can get ACPI diff during test)
> but only if you follow update acpi blos process as described in
> bios-tables-test.c
>
>
> as is, the next patch (5/6) should precede 3/6
Hi Ignor,
With file tests/qtest/bios-tables-test.c, there is commit steps.
How to add or update the tests or commit changes that affect ACPI tables:
Contributor:
1. add empty files for new tables, if any, under tests/data/acpi
2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h
3. commit the above *before* making changes that affect the tables
I will follow steps of above in next round, how do you think of it?
Regards
Bibo Mao
>
>
>>
>> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
>> ---
>> tests/data/acpi/loongarch64/virt/APIC | 0
>> tests/data/acpi/loongarch64/virt/DSDT | 0
>> tests/data/acpi/loongarch64/virt/FACP | 0
>> tests/data/acpi/loongarch64/virt/MCFG | 0
>> tests/data/acpi/loongarch64/virt/PPTT | 0
>> tests/data/acpi/loongarch64/virt/SLIT | 0
>> tests/data/acpi/loongarch64/virt/SPCR | 0
>> tests/data/acpi/loongarch64/virt/SRAT | 0
>> 8 files changed, 0 insertions(+), 0 deletions(-)
>> create mode 100644 tests/data/acpi/loongarch64/virt/APIC
>> create mode 100644 tests/data/acpi/loongarch64/virt/DSDT
>> create mode 100644 tests/data/acpi/loongarch64/virt/FACP
>> create mode 100644 tests/data/acpi/loongarch64/virt/MCFG
>> create mode 100644 tests/data/acpi/loongarch64/virt/PPTT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SLIT
>> create mode 100644 tests/data/acpi/loongarch64/virt/SPCR
>> create mode 100644 tests/data/acpi/loongarch64/virt/SRAT
>>
>> diff --git a/tests/data/acpi/loongarch64/virt/APIC b/tests/data/acpi/loongarch64/virt/APIC
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/DSDT b/tests/data/acpi/loongarch64/virt/DSDT
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/FACP b/tests/data/acpi/loongarch64/virt/FACP
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/MCFG b/tests/data/acpi/loongarch64/virt/MCFG
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/PPTT b/tests/data/acpi/loongarch64/virt/PPTT
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/SLIT b/tests/data/acpi/loongarch64/virt/SLIT
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/SPCR b/tests/data/acpi/loongarch64/virt/SPCR
>> new file mode 100644
>> index 0000000000..e69de29bb2
>> diff --git a/tests/data/acpi/loongarch64/virt/SRAT b/tests/data/acpi/loongarch64/virt/SRAT
>> new file mode 100644
>> index 0000000000..e69de29bb2
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2025-05-20 10:09 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 9:27 [PATCH 0/6] Add bios-tables-test for LoongArch64 system Bibo Mao
2025-02-28 9:27 ` [PATCH 1/6] uefi-test-tools:: Add LoongArch64 support Bibo Mao
2025-02-28 9:27 ` [PATCH 2/6] tests/data/uefi-boot-images: Add ISO image for LoongArch system Bibo Mao
2025-02-28 9:27 ` [PATCH 3/6] tests/qtest/bios-tables-test: Add basic testing for LoongArch64 Bibo Mao
2025-04-01 13:41 ` Igor Mammedov
2025-05-19 2:02 ` Bibo Mao
2025-02-28 9:27 ` [PATCH 4/6] tests/acpi: Add empty ACPI data files " Bibo Mao
2025-04-01 13:48 ` Igor Mammedov
2025-05-19 2:46 ` Bibo Mao
2025-05-20 10:07 ` Bibo Mao
2025-02-28 9:27 ` [PATCH 5/6] tests/acpi: Fill acpi table data for LoongArch Bibo Mao
2025-02-28 9:27 ` [PATCH 6/6] tests/qtest: Enable bios-tables-test " Bibo Mao
2025-03-19 12:06 ` Fabiano Rosas
2025-04-01 13:42 ` Igor Mammedov
2025-02-28 12:56 ` [PATCH 0/6] Add bios-tables-test for LoongArch64 system Gerd Hoffmann
2025-04-01 13:50 ` Igor Mammedov
2025-05-19 2:14 ` Bibo Mao
2025-05-11 13:17 ` Michael S. Tsirkin
2025-05-19 1:02 ` Bibo Mao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).