Skip to content

hw/loogarch: Fix UART ACPI properties and FDT

pillow qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 3 repliesIn review
  2. v44 patches 5 repliesSuperseded
  3. v33 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches5 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bios-tables-test-allowed-diff.h: Allow LoongArch DSDT.*tests/qtest/bios-tables-test-allowed-diff.h+4 -00 replies
2/5hw/loongarch/virt-acpi-build: Drop invalid _DSD UART clock propertyhw/loongarch/virt-acpi-build.c+0 -100 replies
3/5hw/loongarch/virt-acpi-build: Drop UART _CCA declarationhw/loongarch/virt-acpi-build.c+0 -10 replies
4/5hw/loongarch/virt: Fix UART clock frequency in FDThw/loongarch/virt-fdt-build.c+1 -10 replies
5/5tests/data/acpi/loongarch64: Update expected DSDT.*tests/data/acpi/loongarch64/virt/DSDT tests/data/acpi/loongarch64/virt/DSDT.memhp tests/data/acpi/loongarch64/virt/DSDT.numamem +2 more+0 -40 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBibo Mao
SeriesR-b
1/5
2/5
3/5
4/5
5/5

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

Read the v5 thread

Cover letter [PATCH v5 0/5] hw/loogarch: Fix UART ACPI properties and FDT

This series fixes the UART description for LoongArch virt.

The ACPI _DSD property built for the UART has three problems: the property name is misspelled, the key and value order is reversed, and it describes a 100 MHz clock that does not match the device model. The property can be dropped directly because the UART model's input clock matches the Linux 8250 PnP driver default of 1,843,200 Hz, so no _DSD override is needed.

The _CCA property is also unnecessary. _CCA describes a device's DMA cache coherency attribute, and this UART does not support DMA, so there is no reason to declare it.

The UART clock frequency in the FDT is corrected to 1,843,200 Hz, and the expected ACPI tables are updated accordingly.

pillow (5):
bios-tables-test-allowed-diff.h: Allow LoongArch DSDT.* hw/loongarch/virt-acpi-build: Drop invalid _DSD UART clock property hw/loongarch/virt-acpi-build: Drop UART _CCA declaration hw/loongarch/virt: Fix UART clock frequency in FDT tests/data/acpi/loongarch64: Update expected DSDT.*

 hw/loongarch/virt-acpi-build.c                |  11 -----------
 hw/loongarch/virt-fdt-build.c                 |   2 +-
 tests/data/acpi/loongarch64/virt/DSDT         | Bin 4603 -> 4351 bytes
 tests/data/acpi/loongarch64/virt/DSDT.memhp   | Bin 5824 -> 5572 bytes
 tests/data/acpi/loongarch64/virt/DSDT.numamem | Bin 4609 -> 4357 bytes
 .../data/acpi/loongarch64/virt/DSDT.topology  | Bin 4905 -> 4653 bytes
 6 files changed, 1 insertion(+), 12 deletions(-)
Signature · 1 line
2.56.0