From: Igor Mammedov <imammedo@redhat.com>
To: Sunil V L <sunilvl@ventanamicro.com>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
qemu-riscv@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Daniel P . Berrangé" <berrange@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Ani Sinha" <anisinha@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Sia Jee Heng" <jeeheng.sia@starfivetech.com>,
"Alistair Francis" <alistair23@gmail.com>,
"Daniel Henrique Barboza" <dbarboza@ventanamicro.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Bin Meng" <bmeng.cn@gmail.com>,
"Weiwei Li" <liwei1518@gmail.com>,
"Liu Zhiwei" <zhiwei_liu@linux.alibaba.com>,
"Alistair Francis" <alistair.francis@wdc.com>
Subject: Re: [PATCH v3 14/15] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V
Date: Tue, 25 Jun 2024 14:05:58 +0200 [thread overview]
Message-ID: <20240625140558.168d1a9e@imammedo.users.ipa.redhat.com> (raw)
In-Reply-To: <20240625131959.67c2fc74@imammedo.users.ipa.redhat.com>
On Tue, 25 Jun 2024 13:19:59 +0200
Igor Mammedov <imammedo@redhat.com> wrote:
> On Fri, 21 Jun 2024 17:29:05 +0530
> Sunil V L <sunilvl@ventanamicro.com> wrote:
>
> > Add basic ACPI table test case for RISC-V.
> >
> > Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> > Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
>
> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
I take ack back for now, since patch most likely to cause failures on weaker test host (CI infra)
test case never finishes and timeouts on my x86 host while consuming 100%,
======
QTEST_QEMU_BINARY=./qemu-system-riscv64 /tmp/qemu_build/tests/qtest/bios-tables-test
# random seed: R02Sd870403ff62b08e48122105b2700f660
# starting QEMU: exec ./qemu-system-riscv64 -qtest unix:/tmp/qtest-2873960.sock -qtest-log /dev/null -chardev socket,path=/tmp/qtest-2873960.qmp,id=char0 -mon chardev=char0,mode=control -display none -audio none -machine none -accel qtest
1..1
# Start of riscv64 tests
# Start of acpi tests
# starting QEMU: exec ./qemu-system-riscv64 -qtest unix:/tmp/qtest-2873960.sock -qtest-log /dev/null -chardev socket,path=/tmp/qtest-2873960.qmp,id=char0 -mon chardev=char0,mode=control -display none -audio none -machine virt -accel tcg -nodefaults -nographic -drive if=pflash,format=raw,file=pc-bios/edk2-riscv-code.fd,readonly=on -drive if=pflash,format=raw,file=pc-bios/edk2-riscv-vars.fd,snapshot=on -cdrom tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2 -cpu rva22s64 -accel qtest
**
ERROR:../../builds/imammedo/qemu/tests/qtest/acpi-utils.c:158:acpi_find_rsdp_address_uefi: code should not be reached
Bail out! ERROR:../../builds/imammedo/qemu/tests/qtest/acpi-utils.c:158:acpi_find_rsdp_address_uefi: code should not be reached
========
>
> > ---
> > tests/qtest/bios-tables-test.c | 26 ++++++++++++++++++++++++++
> > 1 file changed, 26 insertions(+)
> >
> > diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> > index f4c4704bab..0f9c654e96 100644
> > --- a/tests/qtest/bios-tables-test.c
> > +++ b/tests/qtest/bios-tables-test.c
> > @@ -1977,6 +1977,28 @@ static void test_acpi_microvm_acpi_erst(void)
> > }
> > #endif /* CONFIG_POSIX */
> >
> > +static void test_acpi_riscv64_virt_tcg(void)
> > +{
> > + test_data data = {
> > + .machine = "virt",
> > + .arch = "riscv64",
> > + .tcg_only = true,
> > + .uefi_fl1 = "pc-bios/edk2-riscv-code.fd",
> > + .uefi_fl2 = "pc-bios/edk2-riscv-vars.fd",
> > + .cd = "tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2",
> > + .ram_start = 0x80000000ULL,
> > + .scan_len = 128ULL * 1024 * 1024,
> > + };
> > +
> > + /*
> > + * RHCT will have ISA string encoded. To reduce the effort
> > + * of updating expected AML file for any new default ISA extension,
> > + * use the profile rva22s64.
> > + */
> > + test_acpi_one("-cpu rva22s64 ", &data);
> > + free_test_data(&data);
> > +}
> > +
> > static void test_acpi_aarch64_virt_tcg(void)
> > {
> > test_data data = {
> > @@ -2455,6 +2477,10 @@ int main(int argc, char *argv[])
> > qtest_add_func("acpi/virt/viot", test_acpi_aarch64_virt_viot);
> > }
> > }
> > + } else if (strcmp(arch, "riscv64") == 0) {
> > + if (has_tcg && qtest_has_device("virtio-blk-pci")) {
> > + qtest_add_func("acpi/virt", test_acpi_riscv64_virt_tcg);
> > + }
> > }
> > ret = g_test_run();
> > boot_sector_cleanup(disk);
>
next prev parent reply other threads:[~2024-06-25 12:06 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-21 11:58 [PATCH v3 00/15] Add support for RISC-V ACPI tests Sunil V L
2024-06-21 11:58 ` [PATCH v3 01/15] uefi-test-tools/UefiTestToolsPkg: Add RISC-V support Sunil V L
2024-06-25 8:42 ` Igor Mammedov
2024-06-21 11:58 ` [PATCH v3 02/15] uefi-test-tools: Add support for python based build script Sunil V L
2024-06-24 8:04 ` Gerd Hoffmann
2024-06-25 8:42 ` Igor Mammedov
2024-06-21 11:58 ` [PATCH v3 03/15] tests/data/uefi-boot-images: Add RISC-V ISO image Sunil V L
2024-06-21 11:58 ` [PATCH v3 04/15] qtest: bios-tables-test: Rename aarch64 tests with aarch64 in them Sunil V L
2024-06-21 11:58 ` [PATCH v3 05/15] tests/qtest/bios-tables-test.c: Add support for arch in path Sunil V L
2024-06-24 6:03 ` Alistair Francis
2024-06-25 10:48 ` Igor Mammedov
2024-06-21 11:58 ` [PATCH v3 06/15] tests/qtest/bios-tables-test.c: Set "arch" for aarch64 tests Sunil V L
2024-06-24 6:04 ` Alistair Francis
2024-06-25 10:48 ` Igor Mammedov
2024-06-21 11:58 ` [PATCH v3 07/15] tests/qtest/bios-tables-test.c: Set "arch" for x86 tests Sunil V L
2024-06-25 10:49 ` Igor Mammedov
2024-06-21 11:58 ` [PATCH v3 08/15] tests/data/acpi: Move x86 ACPI tables under x86/${machine} path Sunil V L
2024-06-25 10:49 ` Igor Mammedov
2024-06-21 11:59 ` [PATCH v3 09/15] tests/data/acpi/virt: Move ARM64 ACPI tables under aarch64/${machine} path Sunil V L
2024-06-25 10:49 ` Igor Mammedov
2024-06-21 11:59 ` [PATCH v3 10/15] meson.build: Add RISC-V to the edk2-target list Sunil V L
2024-06-21 11:59 ` [PATCH v3 11/15] pc-bios/meson.build: Add support for RISC-V in unpack_edk2_blobs Sunil V L
2024-06-21 11:59 ` [PATCH v3 12/15] tests/data/acpi/rebuild-expected-aml.sh: Add RISC-V Sunil V L
2024-06-21 11:59 ` [PATCH v3 13/15] tests/qtest/bios-tables-test: Add empty ACPI data files for RISC-V Sunil V L
2024-06-21 11:59 ` [PATCH v3 14/15] tests/qtest/bios-tables-test.c: Enable basic testing " Sunil V L
2024-06-25 11:19 ` Igor Mammedov
2024-06-25 12:05 ` Igor Mammedov [this message]
2024-06-25 12:29 ` Sunil V L
2024-06-25 14:06 ` Igor Mammedov
2024-06-25 15:18 ` Sunil V L
2024-06-21 11:59 ` [PATCH v3 15/15] tests/qtest/bios-tables-test: Add expected ACPI data files " Sunil V L
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240625140558.168d1a9e@imammedo.users.ipa.redhat.com \
--to=imammedo@redhat.com \
--cc=alistair.francis@wdc.com \
--cc=alistair23@gmail.com \
--cc=anisinha@redhat.com \
--cc=berrange@redhat.com \
--cc=bmeng.cn@gmail.com \
--cc=dbarboza@ventanamicro.com \
--cc=jeeheng.sia@starfivetech.com \
--cc=kraxel@redhat.com \
--cc=liwei1518@gmail.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=sunilvl@ventanamicro.com \
--cc=thuth@redhat.com \
--cc=zhiwei_liu@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).