mbox series

[0/6] Add bios-tables-test for LoongArch64 system

Message ID 20250228092729.543097-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series Add bios-tables-test for LoongArch64 system | expand

Message

Bibo Mao Feb. 28, 2025, 9:27 a.m. UTC
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

Comments

Gerd Hoffmann Feb. 28, 2025, 12:56 p.m. UTC | #1
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
Igor Mammedov April 1, 2025, 1:50 p.m. UTC | #2
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