All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] hw/acpi: correct field sequence in SPCR table
@ 2026-06-22 11:18 Heinrich Schuchardt
  2026-06-22 11:18 ` [PATCH v4 1/2] " Heinrich Schuchardt
  2026-06-22 11:18 ` [PATCH v4 2/2] tests: update SPCR loongarch64 and riscv64 test data Heinrich Schuchardt
  0 siblings, 2 replies; 6+ messages in thread
From: Heinrich Schuchardt @ 2026-06-22 11:18 UTC (permalink / raw)
  To: Michael S . Tsirkin, Igor Mammedov, Ani Sinha
  Cc: Alistair Francis, Daniel Henrique Barboza, qemu-devel,
	Heinrich Schuchardt

On LoongArch and RISC-V invalid SPCR tables are created:

    Terminal Type : 00
    Language : 03

The correct values are:

    Terminal Type : 03
    Language : 00

This is due to commit 7dd0b070fa09 ("hw/arm/virt-acpi-build.c: Migrate
SPCR creation to common location") that swapped the fields.

See the specification of the table in
https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/serial-port-console-redirection-table

This page shows version 1.10. But the sequence of the fields was not changed
since version 1.0.

Our LoongArch and ARM code uses version 1.07 of the specification.
Our RISC-V code uses version 1.10 of the specification.

v4:
	Reproduce the test data changes using rebuild-expected-aml.sh
	creating the same diff as v3 but in two separate patches.
v3:
	Add test data changes	
v2:
	Update commit message

Heinrich Schuchardt (2):
  hw/acpi: correct field sequence in SPCR table
  tests: update SPCR loongarch64 and riscv64 test data

 hw/acpi/aml-build.c                   |   4 ++--
 tests/data/acpi/loongarch64/virt/SPCR | Bin 80 -> 80 bytes
 tests/data/acpi/riscv64/virt/SPCR     | Bin 90 -> 90 bytes
 3 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.53.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-03 15:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22 11:18 [PATCH v4 0/2] hw/acpi: correct field sequence in SPCR table Heinrich Schuchardt
2026-06-22 11:18 ` [PATCH v4 1/2] " Heinrich Schuchardt
2026-06-29  0:58   ` Alistair Francis
2026-06-29  6:12     ` Heinrich Schuchardt
2026-07-03 15:08       ` Michael S. Tsirkin
2026-06-22 11:18 ` [PATCH v4 2/2] tests: update SPCR loongarch64 and riscv64 test data Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.