Skip to content

hw/riscv/virt: Fix the UART register width in SPCR

Rick Richard qemu-devel qemu-riscv 2 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Keep the relative file path in the patch 3 iasl diff (Daniel)
- Add Reviewed-by tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3tests/qtest/bios-tables-test: Allow changes to riscv64 virt SPCRtests/qtest/bios-tables-test-allowed-diff.h+1 -00 replies
2/3hw/riscv/virt-acpi-build: Fix the UART register width in SPCRhw/riscv/virt-acpi-build.c+1 -10 replies
3/3tests/qtest/bios-tables-test: Update riscv64 virt SPCR golden referencetests/data/acpi/riscv64/virt/SPCR tests/qtest/bios-tables-test-allowed-diff.h+0 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel Henrique BarbozaSunil V L
SeriesR-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] hw/riscv/virt: Fix the UART register width in SPCR

The riscv virt board's SPCR table says its 16550 UART has a 32-bit register stride, but the registers are actually byte spaced. Linux doesn't use this field to work out the register spacing, but FreeBSD's EFI loader does, and the FreeBSD kernel then crashes on the console UART when booted through EDK2 with ACPI enabled.

This series fixes the width, plus the usual bios-tables-test patches to update the golden reference so 'make check' keeps passing.

v2:
- Keep the relative file path in the patch 3 iasl diff (Daniel)
- Add Reviewed-by tags

Thanks,
Rick

Rick Richard (3):
tests/qtest/bios-tables-test: Allow changes to riscv64 virt SPCR hw/riscv/virt-acpi-build: Fix the UART register width in SPCR tests/qtest/bios-tables-test: Update riscv64 virt SPCR golden
reference

 hw/riscv/virt-acpi-build.c        |   2 +-
 tests/data/acpi/riscv64/virt/SPCR | Bin 90 -> 90 bytes
 2 files changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.43.0