* [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-11 13:17 ` Igor Mammedov
2024-07-11 13:21 ` Igor Mammedov
2024-07-08 11:47 ` [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART Sunil V L
` (8 subsequent siblings)
9 siblings, 2 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
PLIC and APLIC should be in namespace as well. So, add them using the
defined HID.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
---
hw/riscv/virt-acpi-build.c | 47 ++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
index 0925528160..87fe882af0 100644
--- a/hw/riscv/virt-acpi-build.c
+++ b/hw/riscv/virt-acpi-build.c
@@ -141,6 +141,52 @@ static void acpi_dsdt_add_cpus(Aml *scope, RISCVVirtState *s)
}
}
+static void acpi_dsdt_add_plic_aplic(Aml *scope, RISCVVirtState *s)
+{
+ MachineState *ms = MACHINE(s);
+ uint64_t plic_aplic_addr;
+ uint32_t gsi_base;
+ uint8_t socket;
+
+ if (s->aia_type == VIRT_AIA_TYPE_NONE) {
+ /* PLICs */
+ for (socket = 0; socket < riscv_socket_count(ms); socket++) {
+ plic_aplic_addr = s->memmap[VIRT_PLIC].base +
+ s->memmap[VIRT_PLIC].size * socket;
+ gsi_base = VIRT_IRQCHIP_NUM_SOURCES * socket;
+ Aml *dev = aml_device("IC%.02X", socket);
+ aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0001")));
+ aml_append(dev, aml_name_decl("_UID", aml_int(socket)));
+ aml_append(dev, aml_name_decl("_GSB", aml_int(gsi_base)));
+
+ Aml *crs = aml_resource_template();
+ aml_append(crs, aml_memory32_fixed(plic_aplic_addr,
+ s->memmap[VIRT_PLIC].size,
+ AML_READ_WRITE));
+ aml_append(dev, aml_name_decl("_CRS", crs));
+ aml_append(scope, dev);
+ }
+ } else {
+ /* APLICs */
+ for (socket = 0; socket < riscv_socket_count(ms); socket++) {
+ plic_aplic_addr = s->memmap[VIRT_APLIC_S].base +
+ s->memmap[VIRT_APLIC_S].size * socket;
+ gsi_base = VIRT_IRQCHIP_NUM_SOURCES * socket;
+ Aml *dev = aml_device("IC%.02X", socket);
+ aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0002")));
+ aml_append(dev, aml_name_decl("_UID", aml_int(socket)));
+ aml_append(dev, aml_name_decl("_GSB", aml_int(gsi_base)));
+
+ Aml *crs = aml_resource_template();
+ aml_append(crs, aml_memory32_fixed(plic_aplic_addr,
+ s->memmap[VIRT_APLIC_S].size,
+ AML_READ_WRITE));
+ aml_append(dev, aml_name_decl("_CRS", crs));
+ aml_append(scope, dev);
+ }
+ }
+}
+
static void
acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
uint32_t uart_irq)
@@ -411,6 +457,7 @@ static void build_dsdt(GArray *table_data,
socket_count = riscv_socket_count(ms);
+ acpi_dsdt_add_plic_aplic(scope, s);
acpi_dsdt_add_uart(scope, &memmap[VIRT_UART0], UART0_IRQ);
if (socket_count == 1) {
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC
2024-07-08 11:47 ` [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC Sunil V L
@ 2024-07-11 13:17 ` Igor Mammedov
2024-07-11 13:21 ` Igor Mammedov
1 sibling, 0 replies; 27+ messages in thread
From: Igor Mammedov @ 2024-07-11 13:17 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:33 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> PLIC and APLIC should be in namespace as well. So, add them using the
> defined HID.
defined where? REader shouldn't be forced to go over all web to find
source. Cite it here.
>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> Acked-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> hw/riscv/virt-acpi-build.c | 47 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
>
> diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
> index 0925528160..87fe882af0 100644
> --- a/hw/riscv/virt-acpi-build.c
> +++ b/hw/riscv/virt-acpi-build.c
> @@ -141,6 +141,52 @@ static void acpi_dsdt_add_cpus(Aml *scope, RISCVVirtState *s)
> }
> }
>
> +static void acpi_dsdt_add_plic_aplic(Aml *scope, RISCVVirtState *s)
> +{
> + MachineState *ms = MACHINE(s);
> + uint64_t plic_aplic_addr;
> + uint32_t gsi_base;
> + uint8_t socket;
> +
> + if (s->aia_type == VIRT_AIA_TYPE_NONE) {
> + /* PLICs */
> + for (socket = 0; socket < riscv_socket_count(ms); socket++) {
> + plic_aplic_addr = s->memmap[VIRT_PLIC].base +
> + s->memmap[VIRT_PLIC].size * socket;
> + gsi_base = VIRT_IRQCHIP_NUM_SOURCES * socket;
> + Aml *dev = aml_device("IC%.02X", socket);
> + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0001")));
> + aml_append(dev, aml_name_decl("_UID", aml_int(socket)));
> + aml_append(dev, aml_name_decl("_GSB", aml_int(gsi_base)));
> +
> + Aml *crs = aml_resource_template();
> + aml_append(crs, aml_memory32_fixed(plic_aplic_addr,
> + s->memmap[VIRT_PLIC].size,
> + AML_READ_WRITE));
> + aml_append(dev, aml_name_decl("_CRS", crs));
> + aml_append(scope, dev);
> + }
> + } else {
> + /* APLICs */
> + for (socket = 0; socket < riscv_socket_count(ms); socket++) {
> + plic_aplic_addr = s->memmap[VIRT_APLIC_S].base +
> + s->memmap[VIRT_APLIC_S].size * socket;
> + gsi_base = VIRT_IRQCHIP_NUM_SOURCES * socket;
> + Aml *dev = aml_device("IC%.02X", socket);
> + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0002")));
> + aml_append(dev, aml_name_decl("_UID", aml_int(socket)));
> + aml_append(dev, aml_name_decl("_GSB", aml_int(gsi_base)));
> +
> + Aml *crs = aml_resource_template();
> + aml_append(crs, aml_memory32_fixed(plic_aplic_addr,
> + s->memmap[VIRT_APLIC_S].size,
> + AML_READ_WRITE));
> + aml_append(dev, aml_name_decl("_CRS", crs));
> + aml_append(scope, dev);
> + }
> + }
> +}
> +
> static void
> acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
> uint32_t uart_irq)
> @@ -411,6 +457,7 @@ static void build_dsdt(GArray *table_data,
>
> socket_count = riscv_socket_count(ms);
>
> + acpi_dsdt_add_plic_aplic(scope, s);
> acpi_dsdt_add_uart(scope, &memmap[VIRT_UART0], UART0_IRQ);
>
> if (socket_count == 1) {
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC
2024-07-08 11:47 ` [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC Sunil V L
2024-07-11 13:17 ` Igor Mammedov
@ 2024-07-11 13:21 ` Igor Mammedov
1 sibling, 0 replies; 27+ messages in thread
From: Igor Mammedov @ 2024-07-11 13:21 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:33 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> PLIC and APLIC should be in namespace as well. So, add them using the
> defined HID.
>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> Acked-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> hw/riscv/virt-acpi-build.c | 47 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
>
> diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
> index 0925528160..87fe882af0 100644
> --- a/hw/riscv/virt-acpi-build.c
> +++ b/hw/riscv/virt-acpi-build.c
> @@ -141,6 +141,52 @@ static void acpi_dsdt_add_cpus(Aml *scope, RISCVVirtState *s)
> }
> }
>
> +static void acpi_dsdt_add_plic_aplic(Aml *scope, RISCVVirtState *s)
> +{
> + MachineState *ms = MACHINE(s);
> + uint64_t plic_aplic_addr;
> + uint32_t gsi_base;
> + uint8_t socket;
> +
> + if (s->aia_type == VIRT_AIA_TYPE_NONE) {
> + /* PLICs */
> + for (socket = 0; socket < riscv_socket_count(ms); socket++) {
you have socket_count in caller already, pass it as argument and
drop MachineState *ms = MACHINE(s) above.
> + plic_aplic_addr = s->memmap[VIRT_PLIC].base +
> + s->memmap[VIRT_PLIC].size * socket;
> + gsi_base = VIRT_IRQCHIP_NUM_SOURCES * socket;
> + Aml *dev = aml_device("IC%.02X", socket);
> + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0001")));
> + aml_append(dev, aml_name_decl("_UID", aml_int(socket)));
> + aml_append(dev, aml_name_decl("_GSB", aml_int(gsi_base)));
> +
> + Aml *crs = aml_resource_template();
> + aml_append(crs, aml_memory32_fixed(plic_aplic_addr,
> + s->memmap[VIRT_PLIC].size,
> + AML_READ_WRITE));
> + aml_append(dev, aml_name_decl("_CRS", crs));
> + aml_append(scope, dev);
> + }
> + } else {
> + /* APLICs */
> + for (socket = 0; socket < riscv_socket_count(ms); socket++) {
> + plic_aplic_addr = s->memmap[VIRT_APLIC_S].base +
> + s->memmap[VIRT_APLIC_S].size * socket;
> + gsi_base = VIRT_IRQCHIP_NUM_SOURCES * socket;
> + Aml *dev = aml_device("IC%.02X", socket);
> + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0002")));
> + aml_append(dev, aml_name_decl("_UID", aml_int(socket)));
> + aml_append(dev, aml_name_decl("_GSB", aml_int(gsi_base)));
> +
> + Aml *crs = aml_resource_template();
> + aml_append(crs, aml_memory32_fixed(plic_aplic_addr,
> + s->memmap[VIRT_APLIC_S].size,
> + AML_READ_WRITE));
> + aml_append(dev, aml_name_decl("_CRS", crs));
> + aml_append(scope, dev);
> + }
> + }
> +}
> +
> static void
> acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
> uint32_t uart_irq)
> @@ -411,6 +457,7 @@ static void build_dsdt(GArray *table_data,
>
> socket_count = riscv_socket_count(ms);
>
> + acpi_dsdt_add_plic_aplic(scope, s);
Perhaps do the same for memmap/RISCVVirtState vvvv
> acpi_dsdt_add_uart(scope, &memmap[VIRT_UART0], UART0_IRQ);
>
> if (socket_count == 1) {
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
2024-07-08 11:47 ` [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-11 13:25 ` Igor Mammedov
2024-07-08 11:47 ` [PATCH v2 3/9] tests/acpi: Allow DSDT acpi table changes for aarch64 Sunil V L
` (7 subsequent siblings)
9 siblings, 1 reply; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
The RISC-V BRS specification [1] requires NS16550 compatible UART to
have the HID RSCV0003. So, update the HID for the UART.
[1] - https://github.com/riscv-non-isa/riscv-brs
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
---
hw/riscv/virt-acpi-build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
index 87fe882af0..939f951e45 100644
--- a/hw/riscv/virt-acpi-build.c
+++ b/hw/riscv/virt-acpi-build.c
@@ -192,7 +192,7 @@ acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
uint32_t uart_irq)
{
Aml *dev = aml_device("COM0");
- aml_append(dev, aml_name_decl("_HID", aml_string("PNP0501")));
+ aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0003")));
aml_append(dev, aml_name_decl("_UID", aml_int(0)));
Aml *crs = aml_resource_template();
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART
2024-07-08 11:47 ` [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART Sunil V L
@ 2024-07-11 13:25 ` Igor Mammedov
2024-07-11 14:41 ` Michael S. Tsirkin
0 siblings, 1 reply; 27+ messages in thread
From: Igor Mammedov @ 2024-07-11 13:25 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:34 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> The RISC-V BRS specification [1] requires NS16550 compatible UART to
> have the HID RSCV0003. So, update the HID for the UART.
>
> [1] - https://github.com/riscv-non-isa/riscv-brs
it point's repo with a bunch of files,
please make it easier for reader to find
aka point to concrete document + title (for when link goes stale)
and chapter. (similar to what we do for when documenting ACPI code)
>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> Acked-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> hw/riscv/virt-acpi-build.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
> index 87fe882af0..939f951e45 100644
> --- a/hw/riscv/virt-acpi-build.c
> +++ b/hw/riscv/virt-acpi-build.c
> @@ -192,7 +192,7 @@ acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
> uint32_t uart_irq)
> {
> Aml *dev = aml_device("COM0");
> - aml_append(dev, aml_name_decl("_HID", aml_string("PNP0501")));
> + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0003")));
> aml_append(dev, aml_name_decl("_UID", aml_int(0)));
>
> Aml *crs = aml_resource_template();
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART
2024-07-11 13:25 ` Igor Mammedov
@ 2024-07-11 14:41 ` Michael S. Tsirkin
2024-07-12 5:07 ` Sunil V L
0 siblings, 1 reply; 27+ messages in thread
From: Michael S. Tsirkin @ 2024-07-11 14:41 UTC (permalink / raw)
To: Igor Mammedov
Cc: Sunil V L, qemu-devel, qemu-riscv, Palmer Dabbelt,
Alistair Francis, Bin Meng, Weiwei Li, Daniel Henrique Barboza,
Liu Zhiwei, Ani Sinha
On Thu, Jul 11, 2024 at 03:25:12PM +0200, Igor Mammedov wrote:
> On Mon, 8 Jul 2024 17:17:34 +0530
> Sunil V L <sunilvl@ventanamicro.com> wrote:
>
> > The RISC-V BRS specification [1] requires NS16550 compatible UART to
> > have the HID RSCV0003. So, update the HID for the UART.
> >
> > [1] - https://github.com/riscv-non-isa/riscv-brs
>
> it point's repo with a bunch of files,
> please make it easier for reader to find
> aka point to concrete document + title (for when link goes stale)
> and chapter. (similar to what we do for when documenting ACPI code)
>
> >
> > Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> > Acked-by: Alistair Francis <alistair.francis@wdc.com>
> > ---
> > hw/riscv/virt-acpi-build.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
> > index 87fe882af0..939f951e45 100644
> > --- a/hw/riscv/virt-acpi-build.c
> > +++ b/hw/riscv/virt-acpi-build.c
> > @@ -192,7 +192,7 @@ acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
> > uint32_t uart_irq)
> > {
> > Aml *dev = aml_device("COM0");
> > - aml_append(dev, aml_name_decl("_HID", aml_string("PNP0501")));
> > + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0003")));
> > aml_append(dev, aml_name_decl("_UID", aml_int(0)));
In fact, adding the link to the document here would be best.
Pls link to the earliest version that lists this id,
cite version and chapter in the document.
Thanks!
> >
> > Aml *crs = aml_resource_template();
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART
2024-07-11 14:41 ` Michael S. Tsirkin
@ 2024-07-12 5:07 ` Sunil V L
0 siblings, 0 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-12 5:07 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Igor Mammedov, qemu-devel, qemu-riscv, Palmer Dabbelt,
Alistair Francis, Bin Meng, Weiwei Li, Daniel Henrique Barboza,
Liu Zhiwei, Ani Sinha
On Thu, Jul 11, 2024 at 10:41:35AM -0400, Michael S. Tsirkin wrote:
> On Thu, Jul 11, 2024 at 03:25:12PM +0200, Igor Mammedov wrote:
> > On Mon, 8 Jul 2024 17:17:34 +0530
> > Sunil V L <sunilvl@ventanamicro.com> wrote:
> >
> > > The RISC-V BRS specification [1] requires NS16550 compatible UART to
> > > have the HID RSCV0003. So, update the HID for the UART.
> > >
> > > [1] - https://github.com/riscv-non-isa/riscv-brs
> >
> > it point's repo with a bunch of files,
> > please make it easier for reader to find
> > aka point to concrete document + title (for when link goes stale)
> > and chapter. (similar to what we do for when documenting ACPI code)
> >
> > >
> > > Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> > > Acked-by: Alistair Francis <alistair.francis@wdc.com>
> > > ---
> > > hw/riscv/virt-acpi-build.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c
> > > index 87fe882af0..939f951e45 100644
> > > --- a/hw/riscv/virt-acpi-build.c
> > > +++ b/hw/riscv/virt-acpi-build.c
> > > @@ -192,7 +192,7 @@ acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap,
> > > uint32_t uart_irq)
> > > {
> > > Aml *dev = aml_device("COM0");
> > > - aml_append(dev, aml_name_decl("_HID", aml_string("PNP0501")));
> > > + aml_append(dev, aml_name_decl("_HID", aml_string("RSCV0003")));
> > > aml_append(dev, aml_name_decl("_UID", aml_int(0)));
>
>
> In fact, adding the link to the document here would be best.
> Pls link to the earliest version that lists this id,
> cite version and chapter in the document.
> Thanks!
>
Thanks Michael and Igor!. I will address your comments on the series and
send next version.
Thanks,
Sunil
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2 3/9] tests/acpi: Allow DSDT acpi table changes for aarch64
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
2024-07-08 11:47 ` [PATCH v2 1/9] hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC Sunil V L
2024-07-08 11:47 ` [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-11 13:53 ` Igor Mammedov
2024-07-08 11:47 ` [PATCH v2 4/9] acpi/gpex: Create PCI link devices outside PCI root bridge Sunil V L
` (6 subsequent siblings)
9 siblings, 1 reply; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
so that CI tests don't fail when those ACPI tables are updated in the
next patch. This is as per the documentation in bios-tables-tests.c.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
tests/qtest/bios-tables-test-allowed-diff.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
index dfb8523c8b..9282ea0fb2 100644
--- a/tests/qtest/bios-tables-test-allowed-diff.h
+++ b/tests/qtest/bios-tables-test-allowed-diff.h
@@ -1 +1,7 @@
/* List of comma-separated changed AML files to ignore */
+"tests/data/acpi/aarch64/virt/DSDT",
+"tests/data/acpi/aarch64/virt/DSDT.memhp",
+"tests/data/acpi/aarch64/virt/DSDT.topology",
+"tests/data/acpi/aarch64/virt/DSDT.acpihmatvirt",
+"tests/data/acpi/aarch64/virt/DSDT.pxb",
+"tests/data/acpi/x86/microvm/DSDT.pcie",
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH v2 3/9] tests/acpi: Allow DSDT acpi table changes for aarch64
2024-07-08 11:47 ` [PATCH v2 3/9] tests/acpi: Allow DSDT acpi table changes for aarch64 Sunil V L
@ 2024-07-11 13:53 ` Igor Mammedov
0 siblings, 0 replies; 27+ messages in thread
From: Igor Mammedov @ 2024-07-11 13:53 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:35 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> so that CI tests don't fail when those ACPI tables are updated in the
> next patch. This is as per the documentation in bios-tables-tests.c.
>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
> ---
> tests/qtest/bios-tables-test-allowed-diff.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
> index dfb8523c8b..9282ea0fb2 100644
> --- a/tests/qtest/bios-tables-test-allowed-diff.h
> +++ b/tests/qtest/bios-tables-test-allowed-diff.h
> @@ -1 +1,7 @@
> /* List of comma-separated changed AML files to ignore */
> +"tests/data/acpi/aarch64/virt/DSDT",
> +"tests/data/acpi/aarch64/virt/DSDT.memhp",
> +"tests/data/acpi/aarch64/virt/DSDT.topology",
> +"tests/data/acpi/aarch64/virt/DSDT.acpihmatvirt",
> +"tests/data/acpi/aarch64/virt/DSDT.pxb",
> +"tests/data/acpi/x86/microvm/DSDT.pcie",
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2 4/9] acpi/gpex: Create PCI link devices outside PCI root bridge
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (2 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 3/9] tests/acpi: Allow DSDT acpi table changes for aarch64 Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-11 13:43 ` Igor Mammedov
2024-07-08 11:47 ` [PATCH v2 5/9] tests/acpi: update expected DSDT blob for aarch64 and microvm Sunil V L
` (5 subsequent siblings)
9 siblings, 1 reply; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
Currently, PCI link devices (PNP0C0F) are always created within the
scope of the PCI root bridge. However, RISC-V needs these link devices
to be created outside to ensure the probing order in the OS. This
matches the example given in the ACPI specification [1] as well. Hence,
create these link devices directly under _SB instead of under the PCI
root bridge.
To keep these link device names unique for multiple PCI bridges, change
the device name from GSIx to LXXY format where XX is the PCI bus number
and Y is the INTx.
GPEX is currently used by riscv, aarch64/virt and x86/microvm machines.
So, this change will alter the DSDT for those systems.
[1] - ACPI 5.1: 6.2.13.1 Example: Using _PRT to Describe PCI IRQ Routing
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
hw/pci-host/gpex-acpi.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/hw/pci-host/gpex-acpi.c b/hw/pci-host/gpex-acpi.c
index f69413ea2c..a93b55c991 100644
--- a/hw/pci-host/gpex-acpi.c
+++ b/hw/pci-host/gpex-acpi.c
@@ -7,7 +7,8 @@
#include "hw/pci/pcie_host.h"
#include "hw/acpi/cxl.h"
-static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
+static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq,
+ Aml *scope, uint8_t bus_num)
{
Aml *method, *crs;
int i, slot_no;
@@ -20,7 +21,7 @@ static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
Aml *pkg = aml_package(4);
aml_append(pkg, aml_int((slot_no << 16) | 0xFFFF));
aml_append(pkg, aml_int(i));
- aml_append(pkg, aml_name("GSI%d", gsi));
+ aml_append(pkg, aml_name("L%.02X%d", bus_num, gsi));
aml_append(pkg, aml_int(0));
aml_append(rt_pkg, pkg);
}
@@ -30,7 +31,7 @@ static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
/* Create GSI link device */
for (i = 0; i < PCI_NUM_PINS; i++) {
uint32_t irqs = irq + i;
- Aml *dev_gsi = aml_device("GSI%d", i);
+ Aml *dev_gsi = aml_device("L%.02X%d", bus_num, i);
aml_append(dev_gsi, aml_name_decl("_HID", aml_string("PNP0C0F")));
aml_append(dev_gsi, aml_name_decl("_UID", aml_int(i)));
crs = aml_resource_template();
@@ -45,7 +46,7 @@ static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
aml_append(dev_gsi, aml_name_decl("_CRS", crs));
method = aml_method("_SRS", 1, AML_NOTSERIALIZED);
aml_append(dev_gsi, method);
- aml_append(dev, dev_gsi);
+ aml_append(scope, dev_gsi);
}
}
@@ -174,7 +175,7 @@ void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg)
aml_append(dev, aml_name_decl("_PXM", aml_int(numa_node)));
}
- acpi_dsdt_add_pci_route_table(dev, cfg->irq);
+ acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, bus_num);
/*
* Resources defined for PXBs are composed of the following parts:
@@ -205,7 +206,7 @@ void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg)
aml_append(dev, aml_name_decl("_STR", aml_unicode("PCIe 0 Device")));
aml_append(dev, aml_name_decl("_CCA", aml_int(1)));
- acpi_dsdt_add_pci_route_table(dev, cfg->irq);
+ acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, 0);
method = aml_method("_CBA", 0, AML_NOTSERIALIZED);
aml_append(method, aml_return(aml_int(cfg->ecam.base)));
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH v2 4/9] acpi/gpex: Create PCI link devices outside PCI root bridge
2024-07-08 11:47 ` [PATCH v2 4/9] acpi/gpex: Create PCI link devices outside PCI root bridge Sunil V L
@ 2024-07-11 13:43 ` Igor Mammedov
0 siblings, 0 replies; 27+ messages in thread
From: Igor Mammedov @ 2024-07-11 13:43 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:36 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> Currently, PCI link devices (PNP0C0F) are always created within the
> scope of the PCI root bridge. However, RISC-V needs these link devices
> to be created outside to ensure the probing order in the OS. This
> matches the example given in the ACPI specification [1] as well. Hence,
> create these link devices directly under _SB instead of under the PCI
> root bridge.
>
> To keep these link device names unique for multiple PCI bridges, change
> the device name from GSIx to LXXY format where XX is the PCI bus number
> and Y is the INTx.
>
> GPEX is currently used by riscv, aarch64/virt and x86/microvm machines.
> So, this change will alter the DSDT for those systems.
>
> [1] - ACPI 5.1: 6.2.13.1 Example: Using _PRT to Describe PCI IRQ Routing
>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
> ---
> hw/pci-host/gpex-acpi.c | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/hw/pci-host/gpex-acpi.c b/hw/pci-host/gpex-acpi.c
> index f69413ea2c..a93b55c991 100644
> --- a/hw/pci-host/gpex-acpi.c
> +++ b/hw/pci-host/gpex-acpi.c
> @@ -7,7 +7,8 @@
> #include "hw/pci/pcie_host.h"
> #include "hw/acpi/cxl.h"
>
> -static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
> +static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq,
> + Aml *scope, uint8_t bus_num)
> {
> Aml *method, *crs;
> int i, slot_no;
> @@ -20,7 +21,7 @@ static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
> Aml *pkg = aml_package(4);
> aml_append(pkg, aml_int((slot_no << 16) | 0xFFFF));
> aml_append(pkg, aml_int(i));
> - aml_append(pkg, aml_name("GSI%d", gsi));
> + aml_append(pkg, aml_name("L%.02X%d", bus_num, gsi));
instead of mixing hex and decimal here, make gsi hex as well to be consistent?
> aml_append(pkg, aml_int(0));
> aml_append(rt_pkg, pkg);
> }
> @@ -30,7 +31,7 @@ static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
> /* Create GSI link device */
> for (i = 0; i < PCI_NUM_PINS; i++) {
> uint32_t irqs = irq + i;
> - Aml *dev_gsi = aml_device("GSI%d", i);
> + Aml *dev_gsi = aml_device("L%.02X%d", bus_num, i);
ditto
> aml_append(dev_gsi, aml_name_decl("_HID", aml_string("PNP0C0F")));
> aml_append(dev_gsi, aml_name_decl("_UID", aml_int(i)));
> crs = aml_resource_template();
> @@ -45,7 +46,7 @@ static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq)
> aml_append(dev_gsi, aml_name_decl("_CRS", crs));
> method = aml_method("_SRS", 1, AML_NOTSERIALIZED);
> aml_append(dev_gsi, method);
> - aml_append(dev, dev_gsi);
> + aml_append(scope, dev_gsi);
> }
> }
>
> @@ -174,7 +175,7 @@ void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg)
> aml_append(dev, aml_name_decl("_PXM", aml_int(numa_node)));
> }
>
> - acpi_dsdt_add_pci_route_table(dev, cfg->irq);
> + acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, bus_num);
>
> /*
> * Resources defined for PXBs are composed of the following parts:
> @@ -205,7 +206,7 @@ void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg)
> aml_append(dev, aml_name_decl("_STR", aml_unicode("PCIe 0 Device")));
> aml_append(dev, aml_name_decl("_CCA", aml_int(1)));
>
> - acpi_dsdt_add_pci_route_table(dev, cfg->irq);
> + acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, 0);
>
> method = aml_method("_CBA", 0, AML_NOTSERIALIZED);
> aml_append(method, aml_return(aml_int(cfg->ecam.base)));
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2 5/9] tests/acpi: update expected DSDT blob for aarch64 and microvm
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (3 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 4/9] acpi/gpex: Create PCI link devices outside PCI root bridge Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-08 11:47 ` [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path Sunil V L
` (4 subsequent siblings)
9 siblings, 0 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
After PCI link devices are moved out of the scope of PCI root complex,
the DSDT files of machines which use GPEX, will change. So, update the
expected AML files with these changes for these machines.
Mainly, there are 2 changes.
1) Since the link devices are created now directly under _SB for all PCI
root bridges in the system, they should have unique names. So, instead
of GSIx, named those devices as LXXY where L means link, XX will have
PCI bus number and Y will have the INTx number (ex: L000 or L001). The
_PRT entries will also be updated to reflect this name change.
2) PCI link devices are moved from the scope of each PCI root bridge to
directly under _SB.
Below is the sample iASL difference for one such link device.
Scope (\_SB)
{
Name (_HID, "LNRO0005") // _HID: Hardware ID
Name (_UID, 0x1F) // _UID: Unique ID
Name (_CCA, One) // _CCA: Cache Coherency Attribute
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
{
Memory32Fixed (ReadWrite,
0x0A003E00, // Address Base
0x00000200, // Address Length
)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
0x0000004F,
}
})
+ Device (L000)
+ {
+ Name (_HID, "PNP0C0F" /* PCI Interrupt Link Device */)
+ Name (_UID, Zero) // _UID: Unique ID
+ Name (_PRS, ResourceTemplate ()
+ {
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
+ {
+ 0x00000023,
+ }
+ })
+ Name (_CRS, ResourceTemplate ()
+ {
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
+ {
+ 0x00000023,
+ }
+ })
+ Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
+ {
+ }
+ }
+
Device (PCI0)
{
Name (_HID, "PNP0A08" /* PCI Express Bus */) // _HID: Hardware ID
Name (_CID, "PNP0A03" /* PCI Bus */) // _CID: Compatible ID
Name (_SEG, Zero) // _SEG: PCI Segment
Name (_BBN, Zero) // _BBN: BIOS Bus Number
Name (_UID, Zero) // _UID: Unique ID
Name (_STR, Unicode ("PCIe 0 Device")) // _STR: Description String
Name (_CCA, One) // _CCA: Cache Coherency Attribute
Name (_PRT, Package (0x80) // _PRT: PCI Routing Table
{
Package (0x04)
{
0xFFFF,
Zero,
- GSI0,
+ L000,
Zero
},
.....
})
Device (GSI0)
{
Name (_HID, "PNP0C0F" /* PCI Interrupt Link Device */)
Name (_UID, Zero) // _UID: Unique ID
Name (_PRS, ResourceTemplate ()
{
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
0x00000023,
}
})
Name (_CRS, ResourceTemplate ()
{
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
0x00000023,
}
})
Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
{
}
}
}
}
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
tests/data/acpi/aarch64/virt/DSDT | Bin 5196 -> 5196 bytes
.../data/acpi/aarch64/virt/DSDT.acpihmatvirt | Bin 5282 -> 5282 bytes
tests/data/acpi/aarch64/virt/DSDT.memhp | Bin 6557 -> 6557 bytes
tests/data/acpi/aarch64/virt/DSDT.pxb | Bin 7679 -> 7679 bytes
tests/data/acpi/aarch64/virt/DSDT.topology | Bin 5398 -> 5398 bytes
tests/data/acpi/x86/microvm/DSDT.pcie | Bin 3023 -> 3023 bytes
tests/qtest/bios-tables-test-allowed-diff.h | 6 ------
7 files changed, 6 deletions(-)
diff --git a/tests/data/acpi/aarch64/virt/DSDT b/tests/data/acpi/aarch64/virt/DSDT
index c47503990715d389914fdf9c8bccb510761741ac..36d3e5d5a5e47359b6dcb3706f98b4f225677591 100644
GIT binary patch
literal 5196
zcmZvg%WoT16o>EFlh__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u=b0z9l;}wzdKQ>xfq53VCxz%)WS&LlNi8UPQiz`8%yXQ1j&n~6(UX2C
zf@g_&Qp<{-6r$$@^PFIw6Wo(R^qgd#lgyJ^T=b+6J*SxG6!V<oo)n@d{kR0rY34~S
zF?v#no-@pIhI!6#PYThq%sk7?lUiu>q!2x4nddC?oaLSrqURj*oMWEUa-%1O=sC|k
z=b7g`_oNU#7ntV)^Q0CXJt;)b3iGTm&kFaX(0J}2b!`1snxAj_OWAYR&%cO!v@DTx
z(!o;1>%mt#eeYg6R~jAoecuXEVaLEwv`&Dis{+cLJ4fBqvkDtrhSKW=$a+IynRA>K
zHoBZe>jucWCa}!8kX6bLyk<k4(f?4DU!$FQ9GeN}>33NbqkreL4fW1?NuRC^br->w
z9}fT1Kg(zvUZ*QohI#<AQPV=(kgi(l_#MazE+6V^dJCe9oj(6eCH?!oo=SSV{Vi2m
zPYrf_&ptj-UTd#<x|ulnyfE(M_q%`9|E<ie{kZqE@#~#GKRZ5fY#LCb*Cf5xpXfky
z^g&&tp6i`c(fiZ<tCPppH*}>MjIN$ezB-A<nbUcF@rfR+&z~LqoHOV3O{!-HrS}Fc
zziXdfF|+w&<@dk+rLVg`O#RcH`OWK|rcS<4XN9<B=^ZU}b?tuJXVs_|x^&Ie9rx1n
z3El&GI+eAHN28DE`^K!BH4_i7>y^2Uc57ft+$_sgb>m6Pa#^|%@=cw`t+!0-VY^R#
zDZQh~lw<FIo7SP%_S;*FrTIbo!EWk_4j!H6Po6(=bienax7Tkvhx<n}`T##qp1GI$
EABWcyJpcdz
diff --git a/tests/data/acpi/aarch64/virt/DSDT.acpihmatvirt b/tests/data/acpi/aarch64/virt/DSDT.acpihmatvirt
index aee6ba017cd730948bfa93e91551eb10a6809293..e6154d0355f84fdcc51387b4db8f9ee63acae4e9 100644
GIT binary patch
literal 5282
zcmZvg%WoT16o>EFlh__VVmr?J;S@^6GqU5PNkdy=kDbINPK+mMkW$H&5QvgZBr2p*
zA%!doRANCRSO=6p1c?>9?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B@3-#mBo1_N|0H|-_`anV>z;IXdkt%_cUaUrbTVX{
HYpH($%hpa?
diff --git a/tests/data/acpi/aarch64/virt/DSDT.topology b/tests/data/acpi/aarch64/virt/DSDT.topology
index 501314c91be01d927fd125e0c72e919fdd85592e..029d03eecc4efddc001e5377e85ac8e831294362 100644
GIT binary patch
literal 5398
zcmZvg%WoT16o>EFlh__VVmr?J;S@^6GqU5nTG|qO>@+TMVmwKMluE9IK$L7EQ6ZHI
zDb1olb~J)@kn)Ehv0}%LMb~Wj2iRfGojc?Fj(bMRc+T8=zL{_4*f}$Guf8`vrc`94
zw(D+r3$;(%?gA~AQc7>@&+PME>tWZcbq`Oc-BPI(?`}2g>8jgqQn04t-Th`=nX$4o
zW*wf+P~MU>=0wb3MI4Np!DVsKHiIkT;E)+y6$gjS;F>rXJ3PJR?zTe9PHU@FDwhMx
zc-QTCxoKzOMMCLIlTcZuejHYob&aB@bQRV&58O=y{-n{`rz^BXx!zvYNm8;~wG1NX
zWDFvbm<%$j_JdA%akqCmyOg?eb=ZF9)xjMV2@YODL~su{LLc@uL_}R7$^oLL&my>0
z9N|PHh7F7*WCV9~fDx4#!@#H@Be?Mc3|nHvfw7E?pgsl|LlVOQ#tJfmG8$kEON<mS
zR*?}@+W;dbF*3kdL&mx(tN}(`Vq}4_j*OckBOx*Jz_<yFa`5FCI1fi+6o7FH8Dg38
zFG*PH<G}b38FHPbr1O{r#%*NCb()qK)4;fc47pA-5@Qw^cab62>4?Ob2gXOpkn1!n
zF&2Qafeg7$a}whXU{sMI*J)m2Tn9!C8FHPDN{k!8aDlNT*J(jwybX*xGUPfPlNj#;
zqk#;$PRAw2`@q;lhFqr;5@Qh<_mCmi>7>Lc0b>gpa-B{|j3r<+ks;UVw8U5j#(iYS
zbvh$4R)O&`GUPg)l^E;5*hYq2r*jhH7BE`CsK|9XFEMTdV+R>>ofaj=U1016jHbQa
zZ|&MU?UGyC>^C26>UlCw((iNL^yd@xwS9%*uGjIX+4E7s=`a*EA&9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8<Y9R7m1x7
zc6suIjd}d?_=l1n=S3Qq$F)0AHyqfLTRNMkcYpmm-27tj-NHYErC<EPBzN&KU6#|9
y#SM;?1AEvD#rwu*Xg)}`ly{>(&$ue6&cA#&E__kAKCb&7oWsqilC>4iIP^boV5A=a
diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
index 9282ea0fb2..dfb8523c8b 100644
--- a/tests/qtest/bios-tables-test-allowed-diff.h
+++ b/tests/qtest/bios-tables-test-allowed-diff.h
@@ -1,7 +1 @@
/* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/aarch64/virt/DSDT",
-"tests/data/acpi/aarch64/virt/DSDT.memhp",
-"tests/data/acpi/aarch64/virt/DSDT.topology",
-"tests/data/acpi/aarch64/virt/DSDT.acpihmatvirt",
-"tests/data/acpi/aarch64/virt/DSDT.pxb",
-"tests/data/acpi/x86/microvm/DSDT.pcie",
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (4 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 5/9] tests/acpi: update expected DSDT blob for aarch64 and microvm Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-10 0:54 ` Alistair Francis
2024-07-11 13:53 ` Igor Mammedov
2024-07-08 11:47 ` [PATCH v2 7/9] tests/acpi: Add empty ACPI data files for RISC-V Sunil V L
` (3 subsequent siblings)
9 siblings, 2 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
The expected ACPI AML files are moved now under ${arch}/{machine} path.
Hence, there is no need to search in old path which didn't have ${arch}.
Remove the code which searches for the expected AML files under old path
as well.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
tests/qtest/bios-tables-test.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index f4c4704bab..498e0e35d9 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -267,15 +267,6 @@ static void dump_aml_files(test_data *data, bool rebuild)
data->arch, data->machine,
sdt->aml, ext);
- /*
- * To keep test cases not failing before the DATA files are moved to
- * ${arch}/${machine} folder, add this check as well.
- */
- if (!g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
- aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir,
- data->machine, sdt->aml, ext);
- }
-
if (!g_file_test(aml_file, G_FILE_TEST_EXISTS) &&
sdt->aml_len == exp_sdt->aml_len &&
!memcmp(sdt->aml, exp_sdt->aml, sdt->aml_len)) {
@@ -412,11 +403,6 @@ static GArray *load_expected_aml(test_data *data)
try_again:
aml_file = g_strdup_printf("%s/%s/%s/%.4s%s", data_dir, data->arch,
data->machine, sdt->aml, ext);
- if (!g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
- aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir, data->machine,
- sdt->aml, ext);
- }
-
if (verbosity_level >= 2) {
fprintf(stderr, "Looking for expected file '%s'\n", aml_file);
}
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path
2024-07-08 11:47 ` [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path Sunil V L
@ 2024-07-10 0:54 ` Alistair Francis
2024-07-11 13:53 ` Igor Mammedov
1 sibling, 0 replies; 27+ messages in thread
From: Alistair Francis @ 2024-07-10 0:54 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Igor Mammedov, Ani Sinha
On Mon, Jul 8, 2024 at 9:50 PM Sunil V L <sunilvl@ventanamicro.com> wrote:
>
> The expected ACPI AML files are moved now under ${arch}/{machine} path.
> Hence, there is no need to search in old path which didn't have ${arch}.
> Remove the code which searches for the expected AML files under old path
> as well.
>
> Suggested-by: Igor Mammedov <imammedo@redhat.com>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> tests/qtest/bios-tables-test.c | 14 --------------
> 1 file changed, 14 deletions(-)
>
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index f4c4704bab..498e0e35d9 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -267,15 +267,6 @@ static void dump_aml_files(test_data *data, bool rebuild)
> data->arch, data->machine,
> sdt->aml, ext);
>
> - /*
> - * To keep test cases not failing before the DATA files are moved to
> - * ${arch}/${machine} folder, add this check as well.
> - */
> - if (!g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
> - aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir,
> - data->machine, sdt->aml, ext);
> - }
> -
> if (!g_file_test(aml_file, G_FILE_TEST_EXISTS) &&
> sdt->aml_len == exp_sdt->aml_len &&
> !memcmp(sdt->aml, exp_sdt->aml, sdt->aml_len)) {
> @@ -412,11 +403,6 @@ static GArray *load_expected_aml(test_data *data)
> try_again:
> aml_file = g_strdup_printf("%s/%s/%s/%.4s%s", data_dir, data->arch,
> data->machine, sdt->aml, ext);
> - if (!g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
> - aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir, data->machine,
> - sdt->aml, ext);
> - }
> -
> if (verbosity_level >= 2) {
> fprintf(stderr, "Looking for expected file '%s'\n", aml_file);
> }
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path
2024-07-08 11:47 ` [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path Sunil V L
2024-07-10 0:54 ` Alistair Francis
@ 2024-07-11 13:53 ` Igor Mammedov
1 sibling, 0 replies; 27+ messages in thread
From: Igor Mammedov @ 2024-07-11 13:53 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:38 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> The expected ACPI AML files are moved now under ${arch}/{machine} path.
> Hence, there is no need to search in old path which didn't have ${arch}.
> Remove the code which searches for the expected AML files under old path
> as well.
>
> Suggested-by: Igor Mammedov <imammedo@redhat.com>
> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
> ---
> tests/qtest/bios-tables-test.c | 14 --------------
> 1 file changed, 14 deletions(-)
>
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index f4c4704bab..498e0e35d9 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -267,15 +267,6 @@ static void dump_aml_files(test_data *data, bool rebuild)
> data->arch, data->machine,
> sdt->aml, ext);
>
> - /*
> - * To keep test cases not failing before the DATA files are moved to
> - * ${arch}/${machine} folder, add this check as well.
> - */
> - if (!g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
> - aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir,
> - data->machine, sdt->aml, ext);
> - }
> -
> if (!g_file_test(aml_file, G_FILE_TEST_EXISTS) &&
> sdt->aml_len == exp_sdt->aml_len &&
> !memcmp(sdt->aml, exp_sdt->aml, sdt->aml_len)) {
> @@ -412,11 +403,6 @@ static GArray *load_expected_aml(test_data *data)
> try_again:
> aml_file = g_strdup_printf("%s/%s/%s/%.4s%s", data_dir, data->arch,
> data->machine, sdt->aml, ext);
> - if (!g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
> - aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir, data->machine,
> - sdt->aml, ext);
> - }
> -
> if (verbosity_level >= 2) {
> fprintf(stderr, "Looking for expected file '%s'\n", aml_file);
> }
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2 7/9] tests/acpi: Add empty ACPI data files for RISC-V
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (5 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-08 11:47 ` [PATCH v2 8/9] tests/qtest/bios-tables-test.c: Enable basic testing " Sunil V L
` (2 subsequent siblings)
9 siblings, 0 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
As per process documented (steps 1-3) in bios-tables-test.c, add empty
AML data files for RISC-V ACPI tables and add the entries in
bios-tables-test-allowed-diff.h.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
---
tests/data/acpi/riscv64/virt/APIC | 0
tests/data/acpi/riscv64/virt/DSDT | 0
tests/data/acpi/riscv64/virt/FACP | 0
tests/data/acpi/riscv64/virt/MCFG | 0
tests/data/acpi/riscv64/virt/RHCT | 0
tests/data/acpi/riscv64/virt/SPCR | 0
tests/qtest/bios-tables-test-allowed-diff.h | 6 ++++++
7 files changed, 6 insertions(+)
create mode 100644 tests/data/acpi/riscv64/virt/APIC
create mode 100644 tests/data/acpi/riscv64/virt/DSDT
create mode 100644 tests/data/acpi/riscv64/virt/FACP
create mode 100644 tests/data/acpi/riscv64/virt/MCFG
create mode 100644 tests/data/acpi/riscv64/virt/RHCT
create mode 100644 tests/data/acpi/riscv64/virt/SPCR
diff --git a/tests/data/acpi/riscv64/virt/APIC b/tests/data/acpi/riscv64/virt/APIC
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/riscv64/virt/DSDT b/tests/data/acpi/riscv64/virt/DSDT
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/riscv64/virt/FACP b/tests/data/acpi/riscv64/virt/FACP
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/riscv64/virt/MCFG b/tests/data/acpi/riscv64/virt/MCFG
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/riscv64/virt/RHCT b/tests/data/acpi/riscv64/virt/RHCT
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/acpi/riscv64/virt/SPCR b/tests/data/acpi/riscv64/virt/SPCR
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
index dfb8523c8b..70474a097f 100644
--- a/tests/qtest/bios-tables-test-allowed-diff.h
+++ b/tests/qtest/bios-tables-test-allowed-diff.h
@@ -1 +1,7 @@
/* List of comma-separated changed AML files to ignore */
+"tests/data/acpi/riscv64/virt/APIC",
+"tests/data/acpi/riscv64/virt/DSDT",
+"tests/data/acpi/riscv64/virt/FACP",
+"tests/data/acpi/riscv64/virt/MCFG",
+"tests/data/acpi/riscv64/virt/RHCT",
+"tests/data/acpi/riscv64/virt/SPCR",
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v2 8/9] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (6 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 7/9] tests/acpi: Add empty ACPI data files for RISC-V Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-08 11:47 ` [PATCH v2 9/9] tests/acpi: Add expected ACPI AML files " Sunil V L
2024-07-12 12:43 ` [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Igor Mammedov
9 siblings, 0 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
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>
---
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 498e0e35d9..36e5c0adde 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1963,6 +1963,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 = {
@@ -2441,6 +2463,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);
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v2 9/9] tests/acpi: Add expected ACPI AML files for RISC-V
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (7 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 8/9] tests/qtest/bios-tables-test.c: Enable basic testing " Sunil V L
@ 2024-07-08 11:47 ` Sunil V L
2024-07-12 12:43 ` [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Igor Mammedov
9 siblings, 0 replies; 27+ messages in thread
From: Sunil V L @ 2024-07-08 11:47 UTC (permalink / raw)
To: qemu-devel, qemu-riscv
Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Michael S . Tsirkin,
Igor Mammedov, Ani Sinha, Sunil V L
As per the step 5 in the process documented in bios-tables-test.c,
generate the expected ACPI AML data files for RISC-V using the
rebuild-expected-aml.sh script and update the
bios-tables-test-allowed-diff.h.
These are all new files being added for the first time. Hence, iASL diff
output is not added.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
---
tests/data/acpi/riscv64/virt/APIC | Bin 0 -> 116 bytes
tests/data/acpi/riscv64/virt/DSDT | Bin 0 -> 3576 bytes
tests/data/acpi/riscv64/virt/FACP | Bin 0 -> 276 bytes
tests/data/acpi/riscv64/virt/MCFG | Bin 0 -> 60 bytes
tests/data/acpi/riscv64/virt/RHCT | Bin 0 -> 332 bytes
tests/data/acpi/riscv64/virt/SPCR | Bin 0 -> 80 bytes
tests/qtest/bios-tables-test-allowed-diff.h | 6 ------
7 files changed, 6 deletions(-)
diff --git a/tests/data/acpi/riscv64/virt/APIC b/tests/data/acpi/riscv64/virt/APIC
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..66a25dfd2d6ea2b607c024722b2eab95873a01e9 100644
GIT binary patch
literal 116
zcmZ<^@N_O=U|?X|;^gn_5v<@85#X!<1dKp25F13pfP@Mo12P{Zj?R|`s)2!c7=s}J
I#NvT*0o0BN0RR91
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/riscv64/virt/DSDT b/tests/data/acpi/riscv64/virt/DSDT
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6a33f5647ddd6de3a0f000f718b58f6fff44f0fd 100644
GIT binary patch
literal 3576
zcmZvfO>Y}j6o&8Elh_%5#CDu-Cr+Uf3sh+w6Os)g_Bd%=*~#E>8YCmRQk04kR6;38
z1tF>|_=woFL2TFrkzaw3Kw`y?9SFpd4SxW3<~{d%%sFI6^31%~=e+kk*Z0mHH-bj@
zpNvwm2lYK~Cs?V!>U%3VETt6P(>3S)@mfEq_j{*1w&%KTvcJ=8WNMz@gjiR}{(iH8
zbGz2fKj&PZyKX7U;>Z7W?{s7Pz}q%PuWYsVVYCX1pj&fN$-d{+ESx(*KJR2do*=ti
zZVrZzRPS`Xi5g61C-80~vob2-W>CkyNK|R1?&w4>;qA3$W_6TFISbCL=}hIQ%g@G@
zWjVUnWWNzK3ahdFl#?s|I{59|`=7VZo_zP!_qV>W3X4`@E|xib^R2_<8+RWZz5VXd
z{liD-c5?&O*6iDzu-w*eXAkAB{nzP;GweEtu5-h#Y0wB*TT~3Ow4gz{VzI(3Vnd5M
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{B_o}Qzw<n<Khkct7zL7*Gx4(umALC
zu=alY$?RY4`5(RZ#l-m=>M|d<EIQ$TK-=zY1?=_5(|?(0kgJY+Wqe#36AaJGd~9%!
Jrzicb_!p&=*&hG^
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/riscv64/virt/FACP b/tests/data/acpi/riscv64/virt/FACP
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a5276b65ea8ce46cc9b40d96d98f0669c9089ed4 100644
GIT binary patch
literal 276
zcmZ>BbPf<<WME(ucJg=j2v%^42yj*a0-z8Bhz+8t3k1-OV?`GjD1M-;Zz#xa0OIBc
A0RR91
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/riscv64/virt/MCFG b/tests/data/acpi/riscv64/virt/MCFG
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..37eb923a9320f5573c0c2cdb90bd98409cc7eb6f 100644
GIT binary patch
literal 60
rcmeZuc5}C3U|?Y6aq@Te2v%^42yj*a0!E-1hz+8VfB}^KA4CHH3`GY4
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/riscv64/virt/RHCT b/tests/data/acpi/riscv64/virt/RHCT
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4f231735abad925435c3cd052e6641b1b4187278 100644
GIT binary patch
literal 332
zcmXAlu};J=42E3}oe;y#j3;Kss=E2Q+<*iE2DT_kQ#GPVt0XN_CY}QEe2l!r@jGY9
z{(f6docQI`zCBh%)$aJzo?iFI_vdyGLy1^3*}lGi3a=3lMg37lzZBM{wodk)7TM~i
zRtz<{3+4+lLrXWwB5YqU#?qxjG@Sbs7?ERdyfzkMus+RlDILR%e&?1^WZBdq0=N=!
z3=z}&!C5b|#thwwtU!g=DD-_K5u?^KCV<o8lL^LuB1x+pWud{LxXR8TT8}a~E0^%g
ZTR3fLdqp>_=zP8dH)RXFi+dCw;Qyc2X#oHL
literal 0
HcmV?d00001
diff --git a/tests/data/acpi/riscv64/virt/SPCR b/tests/data/acpi/riscv64/virt/SPCR
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4da9daf65f71a13ac2b488d4e9728f194b569a43 100644
GIT binary patch
literal 80
zcmWFza1IJ!U|?X{>E!S15v<@85#X!<1dKp25F12;fdT`FDF9*%FmM4$c8~z`e;@#f
G!2kgKJqrN<
literal 0
HcmV?d00001
diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
index 70474a097f..dfb8523c8b 100644
--- a/tests/qtest/bios-tables-test-allowed-diff.h
+++ b/tests/qtest/bios-tables-test-allowed-diff.h
@@ -1,7 +1 @@
/* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/riscv64/virt/APIC",
-"tests/data/acpi/riscv64/virt/DSDT",
-"tests/data/acpi/riscv64/virt/FACP",
-"tests/data/acpi/riscv64/virt/MCFG",
-"tests/data/acpi/riscv64/virt/RHCT",
-"tests/data/acpi/riscv64/virt/SPCR",
--
2.43.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-08 11:47 [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Sunil V L
` (8 preceding siblings ...)
2024-07-08 11:47 ` [PATCH v2 9/9] tests/acpi: Add expected ACPI AML files " Sunil V L
@ 2024-07-12 12:43 ` Igor Mammedov
2024-07-12 12:51 ` Daniel P. Berrangé
9 siblings, 1 reply; 27+ messages in thread
From: Igor Mammedov @ 2024-07-12 12:43 UTC (permalink / raw)
To: Sunil V L
Cc: qemu-devel, qemu-riscv, Palmer Dabbelt, Alistair Francis,
Bin Meng, Weiwei Li, Daniel Henrique Barboza, Liu Zhiwei,
Michael S . Tsirkin, Ani Sinha
On Mon, 8 Jul 2024 17:17:32 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> This series adds few updates to RISC-V ACPI namespace for virt platform.
> Additionally, it has patches to enable ACPI table testing for RISC-V.
>
> 1) PCI Link devices need to be created outside the scope of the PCI root
> complex to ensure correct probe ordering by the OS. This matches the
> example given in ACPI spec as well.
>
> 2) Add PLIC and APLIC as platform devices as well to ensure probing
> order as per BRS spec [1] requirement.
>
> 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> update the HID of the UART.
>
> 4) Enabled ACPI tables tests for RISC-V which were originally part of
> [2] but couldn't get merged due to updates required in the expected AML
> files. I think combining those patches with this series makes it easier
> to merge since expected AML files are updated.
>
> [1] - https://github.com/riscv-non-isa/riscv-brs
> [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
btw: CI is not happy about series, see:
https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
also 'cross-i686-tci' job routinely timeouts on bios-tables-test
but we still keep adding more tests to it.
We should either bump timeout to account for slowness or
disable bios-tables-test for that job.
> Changes since v1:
> 1) Made changes in gpex-acpi.c generic as per feedback from
> Michael. This changes the DSDT for aarch64/virt and microvm
> machines. Hence, few patches are added to update the expected
> DSDT files for those machine so that CI tests don't fail.
> 2) Added patches to enable ACPI tables tests for RISC-V
> including a patch to remove the fallback path to
> search for expected AML files.
> 3) Rebased and added tags.
>
> Sunil V L (9):
> hw/riscv/virt-acpi-build.c: Add namespace devices for PLIC and APLIC
> hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART
> tests/acpi: Allow DSDT acpi table changes for aarch64
> acpi/gpex: Create PCI link devices outside PCI root bridge
> tests/acpi: update expected DSDT blob for aarch64 and microvm
> tests/qtest/bios-tables-test.c: Remove the fall back path
> tests/acpi: Add empty ACPI data files for RISC-V
> tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V
> tests/acpi: Add expected ACPI AML files for RISC-V
>
> hw/pci-host/gpex-acpi.c | 13 ++---
> hw/riscv/virt-acpi-build.c | 49 +++++++++++++++++-
> tests/data/acpi/aarch64/virt/DSDT | Bin 5196 -> 5196 bytes
> .../data/acpi/aarch64/virt/DSDT.acpihmatvirt | Bin 5282 -> 5282 bytes
> tests/data/acpi/aarch64/virt/DSDT.memhp | Bin 6557 -> 6557 bytes
> tests/data/acpi/aarch64/virt/DSDT.pxb | Bin 7679 -> 7679 bytes
> tests/data/acpi/aarch64/virt/DSDT.topology | Bin 5398 -> 5398 bytes
> tests/data/acpi/riscv64/virt/APIC | Bin 0 -> 116 bytes
> tests/data/acpi/riscv64/virt/DSDT | Bin 0 -> 3576 bytes
> tests/data/acpi/riscv64/virt/FACP | Bin 0 -> 276 bytes
> tests/data/acpi/riscv64/virt/MCFG | Bin 0 -> 60 bytes
> tests/data/acpi/riscv64/virt/RHCT | Bin 0 -> 332 bytes
> tests/data/acpi/riscv64/virt/SPCR | Bin 0 -> 80 bytes
> tests/data/acpi/x86/microvm/DSDT.pcie | Bin 3023 -> 3023 bytes
> tests/qtest/bios-tables-test.c | 40 +++++++++-----
> 15 files changed, 81 insertions(+), 21 deletions(-)
> create mode 100644 tests/data/acpi/riscv64/virt/APIC
> create mode 100644 tests/data/acpi/riscv64/virt/DSDT
> create mode 100644 tests/data/acpi/riscv64/virt/FACP
> create mode 100644 tests/data/acpi/riscv64/virt/MCFG
> create mode 100644 tests/data/acpi/riscv64/virt/RHCT
> create mode 100644 tests/data/acpi/riscv64/virt/SPCR
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-12 12:43 ` [PATCH v2 0/9] RISC-V: ACPI: Namespace updates Igor Mammedov
@ 2024-07-12 12:51 ` Daniel P. Berrangé
2024-07-12 13:50 ` Igor Mammedov
0 siblings, 1 reply; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-07-12 12:51 UTC (permalink / raw)
To: Igor Mammedov
Cc: Sunil V L, qemu-devel, qemu-riscv, Palmer Dabbelt,
Alistair Francis, Bin Meng, Weiwei Li, Daniel Henrique Barboza,
Liu Zhiwei, Michael S . Tsirkin, Ani Sinha
On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> On Mon, 8 Jul 2024 17:17:32 +0530
> Sunil V L <sunilvl@ventanamicro.com> wrote:
>
> > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > Additionally, it has patches to enable ACPI table testing for RISC-V.
> >
> > 1) PCI Link devices need to be created outside the scope of the PCI root
> > complex to ensure correct probe ordering by the OS. This matches the
> > example given in ACPI spec as well.
> >
> > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > order as per BRS spec [1] requirement.
> >
> > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > update the HID of the UART.
> >
> > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > [2] but couldn't get merged due to updates required in the expected AML
> > files. I think combining those patches with this series makes it easier
> > to merge since expected AML files are updated.
> >
> > [1] - https://github.com/riscv-non-isa/riscv-brs
> > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
>
> btw: CI is not happy about series, see:
> https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> but we still keep adding more tests to it.
> We should either bump timeout to account for slowness or
> disable bios-tables-test for that job.
Asumming the test is functionally correct, and not hanging, then bumping
the timeout is the right answer. You can do this in the meson.build
file
We should never disable tests only in CI, because non-CI users
are just as likely to hit timeouts.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-12 12:51 ` Daniel P. Berrangé
@ 2024-07-12 13:50 ` Igor Mammedov
2024-07-14 7:46 ` Michael S. Tsirkin
0 siblings, 1 reply; 27+ messages in thread
From: Igor Mammedov @ 2024-07-12 13:50 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: Sunil V L, qemu-devel, qemu-riscv, Palmer Dabbelt,
Alistair Francis, Bin Meng, Weiwei Li, Daniel Henrique Barboza,
Liu Zhiwei, Michael S . Tsirkin, Ani Sinha
On Fri, 12 Jul 2024 13:51:04 +0100
Daniel P. Berrangé <berrange@redhat.com> wrote:
> On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> > On Mon, 8 Jul 2024 17:17:32 +0530
> > Sunil V L <sunilvl@ventanamicro.com> wrote:
> >
> > > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > > Additionally, it has patches to enable ACPI table testing for RISC-V.
> > >
> > > 1) PCI Link devices need to be created outside the scope of the PCI root
> > > complex to ensure correct probe ordering by the OS. This matches the
> > > example given in ACPI spec as well.
> > >
> > > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > > order as per BRS spec [1] requirement.
> > >
> > > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > > update the HID of the UART.
> > >
> > > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > > [2] but couldn't get merged due to updates required in the expected AML
> > > files. I think combining those patches with this series makes it easier
> > > to merge since expected AML files are updated.
> > >
> > > [1] - https://github.com/riscv-non-isa/riscv-brs
> > > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
> >
> > btw: CI is not happy about series, see:
> > https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> > also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> > but we still keep adding more tests to it.
> > We should either bump timeout to account for slowness or
> > disable bios-tables-test for that job.
>
> Asumming the test is functionally correct, and not hanging, then bumping
> the timeout is the right answer. You can do this in the meson.build
> file
I think test is fine, since once in a while it passes (I guess it depends on runner host/load)
Overal job timeout is 1h, but that's not what fails.
What I see is, the test aborts after 10min timeout.
it's likely we hit boot_sector_test()/acpi_find_rsdp_address_uefi() timeout.
That's what we should try to bump.
PS:
I've just started the job with 5min bump, lets see if it is enough.
> We should never disable tests only in CI, because non-CI users
> are just as likely to hit timeouts.
>
>
> With regards,
> Daniel
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-12 13:50 ` Igor Mammedov
@ 2024-07-14 7:46 ` Michael S. Tsirkin
2024-07-15 12:43 ` Igor Mammedov
0 siblings, 1 reply; 27+ messages in thread
From: Michael S. Tsirkin @ 2024-07-14 7:46 UTC (permalink / raw)
To: Igor Mammedov
Cc: Daniel P. Berrangé, Sunil V L, qemu-devel, qemu-riscv,
Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Ani Sinha
On Fri, Jul 12, 2024 at 03:50:10PM +0200, Igor Mammedov wrote:
> On Fri, 12 Jul 2024 13:51:04 +0100
> Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> > On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> > > On Mon, 8 Jul 2024 17:17:32 +0530
> > > Sunil V L <sunilvl@ventanamicro.com> wrote:
> > >
> > > > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > > > Additionally, it has patches to enable ACPI table testing for RISC-V.
> > > >
> > > > 1) PCI Link devices need to be created outside the scope of the PCI root
> > > > complex to ensure correct probe ordering by the OS. This matches the
> > > > example given in ACPI spec as well.
> > > >
> > > > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > > > order as per BRS spec [1] requirement.
> > > >
> > > > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > > > update the HID of the UART.
> > > >
> > > > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > > > [2] but couldn't get merged due to updates required in the expected AML
> > > > files. I think combining those patches with this series makes it easier
> > > > to merge since expected AML files are updated.
> > > >
> > > > [1] - https://github.com/riscv-non-isa/riscv-brs
> > > > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
> > >
> > > btw: CI is not happy about series, see:
> > > https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> > > also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> > > but we still keep adding more tests to it.
> > > We should either bump timeout to account for slowness or
> > > disable bios-tables-test for that job.
> >
> > Asumming the test is functionally correct, and not hanging, then bumping
> > the timeout is the right answer. You can do this in the meson.build
> > file
>
> I think test is fine, since once in a while it passes (I guess it depends on runner host/load)
>
> Overal job timeout is 1h, but that's not what fails.
> What I see is, the test aborts after 10min timeout.
> it's likely we hit boot_sector_test()/acpi_find_rsdp_address_uefi() timeout.
> That's what we should try to bump.
>
> PS:
> I've just started the job with 5min bump, lets see if it is enough.
Because we should wait for 5min CPU time, not wall time.
Why don't we do that?
Something like getrusage should work I think.
> > We should never disable tests only in CI, because non-CI users
> > are just as likely to hit timeouts.
> >
> >
> > With regards,
> > Daniel
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-14 7:46 ` Michael S. Tsirkin
@ 2024-07-15 12:43 ` Igor Mammedov
2024-07-16 12:26 ` Sunil V L
0 siblings, 1 reply; 27+ messages in thread
From: Igor Mammedov @ 2024-07-15 12:43 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Daniel P. Berrangé, Sunil V L, qemu-devel, qemu-riscv,
Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Ani Sinha
On Sun, 14 Jul 2024 03:46:36 -0400
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Fri, Jul 12, 2024 at 03:50:10PM +0200, Igor Mammedov wrote:
> > On Fri, 12 Jul 2024 13:51:04 +0100
> > Daniel P. Berrangé <berrange@redhat.com> wrote:
> >
> > > On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> > > > On Mon, 8 Jul 2024 17:17:32 +0530
> > > > Sunil V L <sunilvl@ventanamicro.com> wrote:
> > > >
> > > > > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > > > > Additionally, it has patches to enable ACPI table testing for RISC-V.
> > > > >
> > > > > 1) PCI Link devices need to be created outside the scope of the PCI root
> > > > > complex to ensure correct probe ordering by the OS. This matches the
> > > > > example given in ACPI spec as well.
> > > > >
> > > > > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > > > > order as per BRS spec [1] requirement.
> > > > >
> > > > > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > > > > update the HID of the UART.
> > > > >
> > > > > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > > > > [2] but couldn't get merged due to updates required in the expected AML
> > > > > files. I think combining those patches with this series makes it easier
> > > > > to merge since expected AML files are updated.
> > > > >
> > > > > [1] - https://github.com/riscv-non-isa/riscv-brs
> > > > > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
> > > >
> > > > btw: CI is not happy about series, see:
> > > > https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> > > > also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> > > > but we still keep adding more tests to it.
> > > > We should either bump timeout to account for slowness or
> > > > disable bios-tables-test for that job.
> > >
> > > Asumming the test is functionally correct, and not hanging, then bumping
> > > the timeout is the right answer. You can do this in the meson.build
> > > file
> >
> > I think test is fine, since once in a while it passes (I guess it depends on runner host/load)
> >
> > Overal job timeout is 1h, but that's not what fails.
> > What I see is, the test aborts after 10min timeout.
> > it's likely we hit boot_sector_test()/acpi_find_rsdp_address_uefi() timeout.
> > That's what we should try to bump.
> >
> > PS:
> > I've just started the job with 5min bump, lets see if it is enough.
>
> Because we should wait for 5min CPU time, not wall time.
> Why don't we do that?
> Something like getrusage should work I think.
>
It turned out to be a meson timeout that's set individually per test file.
I'll send a patch later on.
>
> > > We should never disable tests only in CI, because non-CI users
> > > are just as likely to hit timeouts.
> > >
> > >
> > > With regards,
> > > Daniel
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-15 12:43 ` Igor Mammedov
@ 2024-07-16 12:26 ` Sunil V L
2024-07-16 14:28 ` Igor Mammedov
0 siblings, 1 reply; 27+ messages in thread
From: Sunil V L @ 2024-07-16 12:26 UTC (permalink / raw)
To: Igor Mammedov
Cc: Michael S. Tsirkin, Daniel P. Berrangé, qemu-devel,
qemu-riscv, Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Ani Sinha
On Mon, Jul 15, 2024 at 02:43:52PM +0200, Igor Mammedov wrote:
> On Sun, 14 Jul 2024 03:46:36 -0400
> "Michael S. Tsirkin" <mst@redhat.com> wrote:
>
> > On Fri, Jul 12, 2024 at 03:50:10PM +0200, Igor Mammedov wrote:
> > > On Fri, 12 Jul 2024 13:51:04 +0100
> > > Daniel P. Berrangé <berrange@redhat.com> wrote:
> > >
> > > > On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> > > > > On Mon, 8 Jul 2024 17:17:32 +0530
> > > > > Sunil V L <sunilvl@ventanamicro.com> wrote:
> > > > >
> > > > > > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > > > > > Additionally, it has patches to enable ACPI table testing for RISC-V.
> > > > > >
> > > > > > 1) PCI Link devices need to be created outside the scope of the PCI root
> > > > > > complex to ensure correct probe ordering by the OS. This matches the
> > > > > > example given in ACPI spec as well.
> > > > > >
> > > > > > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > > > > > order as per BRS spec [1] requirement.
> > > > > >
> > > > > > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > > > > > update the HID of the UART.
> > > > > >
> > > > > > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > > > > > [2] but couldn't get merged due to updates required in the expected AML
> > > > > > files. I think combining those patches with this series makes it easier
> > > > > > to merge since expected AML files are updated.
> > > > > >
> > > > > > [1] - https://github.com/riscv-non-isa/riscv-brs
> > > > > > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
> > > > >
> > > > > btw: CI is not happy about series, see:
> > > > > https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> > > > > also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> > > > > but we still keep adding more tests to it.
> > > > > We should either bump timeout to account for slowness or
> > > > > disable bios-tables-test for that job.
> > > >
> > > > Asumming the test is functionally correct, and not hanging, then bumping
> > > > the timeout is the right answer. You can do this in the meson.build
> > > > file
> > >
> > > I think test is fine, since once in a while it passes (I guess it depends on runner host/load)
> > >
> > > Overal job timeout is 1h, but that's not what fails.
> > > What I see is, the test aborts after 10min timeout.
> > > it's likely we hit boot_sector_test()/acpi_find_rsdp_address_uefi() timeout.
> > > That's what we should try to bump.
> > >
> > > PS:
> > > I've just started the job with 5min bump, lets see if it is enough.
> >
> > Because we should wait for 5min CPU time, not wall time.
> > Why don't we do that?
> > Something like getrusage should work I think.
> >
>
> It turned out to be a meson timeout that's set individually per test file.
> I'll send a patch later on.
>
Hi Igor,
I am unable to get msys2-64bit test in CI to pass. I tried including
your change in meson as well but no luck. I can't guess how enabling
bios-tables-test for RISC-V is affecting this particular test. Does this
pass for you?
https://gitlab.com/vlsunil/qemu/-/jobs/7343701148
Thanks!
Sunil
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-16 12:26 ` Sunil V L
@ 2024-07-16 14:28 ` Igor Mammedov
2024-07-16 14:33 ` Igor Mammedov
0 siblings, 1 reply; 27+ messages in thread
From: Igor Mammedov @ 2024-07-16 14:28 UTC (permalink / raw)
To: Sunil V L
Cc: Michael S. Tsirkin, Daniel P. Berrangé, qemu-devel,
qemu-riscv, Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Ani Sinha
On Tue, 16 Jul 2024 17:56:11 +0530
Sunil V L <sunilvl@ventanamicro.com> wrote:
> On Mon, Jul 15, 2024 at 02:43:52PM +0200, Igor Mammedov wrote:
> > On Sun, 14 Jul 2024 03:46:36 -0400
> > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> >
> > > On Fri, Jul 12, 2024 at 03:50:10PM +0200, Igor Mammedov wrote:
> > > > On Fri, 12 Jul 2024 13:51:04 +0100
> > > > Daniel P. Berrangé <berrange@redhat.com> wrote:
> > > >
> > > > > On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> > > > > > On Mon, 8 Jul 2024 17:17:32 +0530
> > > > > > Sunil V L <sunilvl@ventanamicro.com> wrote:
> > > > > >
> > > > > > > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > > > > > > Additionally, it has patches to enable ACPI table testing for RISC-V.
> > > > > > >
> > > > > > > 1) PCI Link devices need to be created outside the scope of the PCI root
> > > > > > > complex to ensure correct probe ordering by the OS. This matches the
> > > > > > > example given in ACPI spec as well.
> > > > > > >
> > > > > > > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > > > > > > order as per BRS spec [1] requirement.
> > > > > > >
> > > > > > > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > > > > > > update the HID of the UART.
> > > > > > >
> > > > > > > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > > > > > > [2] but couldn't get merged due to updates required in the expected AML
> > > > > > > files. I think combining those patches with this series makes it easier
> > > > > > > to merge since expected AML files are updated.
> > > > > > >
> > > > > > > [1] - https://github.com/riscv-non-isa/riscv-brs
> > > > > > > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
> > > > > >
> > > > > > btw: CI is not happy about series, see:
> > > > > > https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> > > > > > also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> > > > > > but we still keep adding more tests to it.
> > > > > > We should either bump timeout to account for slowness or
> > > > > > disable bios-tables-test for that job.
> > > > >
> > > > > Asumming the test is functionally correct, and not hanging, then bumping
> > > > > the timeout is the right answer. You can do this in the meson.build
> > > > > file
> > > >
> > > > I think test is fine, since once in a while it passes (I guess it depends on runner host/load)
> > > >
> > > > Overal job timeout is 1h, but that's not what fails.
> > > > What I see is, the test aborts after 10min timeout.
> > > > it's likely we hit boot_sector_test()/acpi_find_rsdp_address_uefi() timeout.
> > > > That's what we should try to bump.
> > > >
> > > > PS:
> > > > I've just started the job with 5min bump, lets see if it is enough.
> > >
> > > Because we should wait for 5min CPU time, not wall time.
> > > Why don't we do that?
> > > Something like getrusage should work I think.
> > >
> >
> > It turned out to be a meson timeout that's set individually per test file.
> > I'll send a patch later on.
> >
> Hi Igor,
>
> I am unable to get msys2-64bit test in CI to pass. I tried including
> your change in meson as well but no luck. I can't guess how enabling
> bios-tables-test for RISC-V is affecting this particular test. Does this
> pass for you?
>
> https://gitlab.com/vlsunil/qemu/-/jobs/7343701148
it doesn't pass for me either,
but bios-tables-test is not among those that timed out,
so I'd ignore failure in this case
>
> Thanks!
> Sunil
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates
2024-07-16 14:28 ` Igor Mammedov
@ 2024-07-16 14:33 ` Igor Mammedov
0 siblings, 0 replies; 27+ messages in thread
From: Igor Mammedov @ 2024-07-16 14:33 UTC (permalink / raw)
To: Sunil V L
Cc: Michael S. Tsirkin, Daniel P. Berrangé, qemu-devel,
qemu-riscv, Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
Daniel Henrique Barboza, Liu Zhiwei, Ani Sinha, atar4qemu,
atar4qemu, thuth
On Tue, 16 Jul 2024 16:28:07 +0200
Igor Mammedov <imammedo@redhat.com> wrote:
> On Tue, 16 Jul 2024 17:56:11 +0530
> Sunil V L <sunilvl@ventanamicro.com> wrote:
>
> > On Mon, Jul 15, 2024 at 02:43:52PM +0200, Igor Mammedov wrote:
> > > On Sun, 14 Jul 2024 03:46:36 -0400
> > > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> > >
> > > > On Fri, Jul 12, 2024 at 03:50:10PM +0200, Igor Mammedov wrote:
> > > > > On Fri, 12 Jul 2024 13:51:04 +0100
> > > > > Daniel P. Berrangé <berrange@redhat.com> wrote:
> > > > >
> > > > > > On Fri, Jul 12, 2024 at 02:43:19PM +0200, Igor Mammedov wrote:
> > > > > > > On Mon, 8 Jul 2024 17:17:32 +0530
> > > > > > > Sunil V L <sunilvl@ventanamicro.com> wrote:
> > > > > > >
> > > > > > > > This series adds few updates to RISC-V ACPI namespace for virt platform.
> > > > > > > > Additionally, it has patches to enable ACPI table testing for RISC-V.
> > > > > > > >
> > > > > > > > 1) PCI Link devices need to be created outside the scope of the PCI root
> > > > > > > > complex to ensure correct probe ordering by the OS. This matches the
> > > > > > > > example given in ACPI spec as well.
> > > > > > > >
> > > > > > > > 2) Add PLIC and APLIC as platform devices as well to ensure probing
> > > > > > > > order as per BRS spec [1] requirement.
> > > > > > > >
> > > > > > > > 3) BRS spec requires RISC-V to use new ACPI ID for the generic UART. So,
> > > > > > > > update the HID of the UART.
> > > > > > > >
> > > > > > > > 4) Enabled ACPI tables tests for RISC-V which were originally part of
> > > > > > > > [2] but couldn't get merged due to updates required in the expected AML
> > > > > > > > files. I think combining those patches with this series makes it easier
> > > > > > > > to merge since expected AML files are updated.
> > > > > > > >
> > > > > > > > [1] - https://github.com/riscv-non-isa/riscv-brs
> > > > > > > > [2] - https://lists.gnu.org/archive/html/qemu-devel/2024-06/msg04734.html
> > > > > > >
> > > > > > > btw: CI is not happy about series, see:
> > > > > > > https://gitlab.com/imammedo/qemu/-/pipelines/1371119552
> > > > > > > also 'cross-i686-tci' job routinely timeouts on bios-tables-test
> > > > > > > but we still keep adding more tests to it.
> > > > > > > We should either bump timeout to account for slowness or
> > > > > > > disable bios-tables-test for that job.
> > > > > >
> > > > > > Asumming the test is functionally correct, and not hanging, then bumping
> > > > > > the timeout is the right answer. You can do this in the meson.build
> > > > > > file
> > > > >
> > > > > I think test is fine, since once in a while it passes (I guess it depends on runner host/load)
> > > > >
> > > > > Overal job timeout is 1h, but that's not what fails.
> > > > > What I see is, the test aborts after 10min timeout.
> > > > > it's likely we hit boot_sector_test()/acpi_find_rsdp_address_uefi() timeout.
> > > > > That's what we should try to bump.
> > > > >
> > > > > PS:
> > > > > I've just started the job with 5min bump, lets see if it is enough.
> > > >
> > > > Because we should wait for 5min CPU time, not wall time.
> > > > Why don't we do that?
> > > > Something like getrusage should work I think.
> > > >
> > >
> > > It turned out to be a meson timeout that's set individually per test file.
> > > I'll send a patch later on.
> > >
> > Hi Igor,
> >
> > I am unable to get msys2-64bit test in CI to pass. I tried including
> > your change in meson as well but no luck. I can't guess how enabling
> > bios-tables-test for RISC-V is affecting this particular test. Does this
> > pass for you?
> >
> > https://gitlab.com/vlsunil/qemu/-/jobs/7343701148
>
> it doesn't pass for me either,
> but bios-tables-test is not among those that timed out,
> so I'd ignore failure in this case
as in your case it was sparc target tests that timed out:
https://gitlab.com/imammedo/qemu/-/jobs/7352989984
CCIng sparc folks as well
>
> >
> > Thanks!
> > Sunil
> >
>
^ permalink raw reply [flat|nested] 27+ messages in thread