[PATCH v3 0/3] hw/loongarch/virt: Fix UART ACPI description and update DSDT blobs

pillow posted 3 patches 1 day, 5 hours ago
hw/loongarch/virt-acpi-build.c                |  12 +-----------
tests/data/acpi/loongarch64/virt/DSDT         | Bin 4603 -> 4379 bytes
tests/data/acpi/loongarch64/virt/DSDT.memhp   | Bin 5824 -> 5600 bytes
tests/data/acpi/loongarch64/virt/DSDT.numamem | Bin 4609 -> 4385 bytes
.../data/acpi/loongarch64/virt/DSDT.topology  | Bin 4905 -> 4681 bytes
5 files changed, 1 insertion(+), 11 deletions(-)
[PATCH v3 0/3] hw/loongarch/virt: Fix UART ACPI description and update DSDT blobs
Posted by pillow 1 day, 5 hours ago
The LoongArch virt UART ACPI description currently carries a _DSD clock
property with a typo ("clock-frenquency"), a reversed key/value order,
and a declared 100 MHz that does not match the QEMU model. The _DSD
contains nothing but this clock property, so the whole object is
dropped.

The Linux PNP serial driver uses uartclk = 1843200 Hz by default and
the QEMU UART uses baudbase = 115200, i.e. uartclk / 16 = baudbase,
so the Linux default clock already matches the model. QEMU's x86 ISA
serial ACPI description also provides no clock property, which is
consistent with this change.

Two further cleanups are folded into the same patch: _CCA is dropped
because the emulated UART does not support DMA, and _STA = 0x0f is
added to indicate the device is present, enabled, should be shown and
functioning properly.

Patch 1 allows the LoongArch DSDT.* diffs in bios-tables-test, patch 2
makes the ACPI change, and patch 3 refreshes the expected DSDT blobs.

Testing: ran bios-tables-test with the updated blobs; no unexpected
diffs remain.

pillow (3):
  bios-tables-test-allowed-diff.h: Allow LoongArch DSDT.*
  hw/loongarch/virt: Drop UART _DSD/_CCA and add _STA
  tests/data/acpi/loongarch64: Update expected DSDT.*

 hw/loongarch/virt-acpi-build.c                |  12 +-----------
 tests/data/acpi/loongarch64/virt/DSDT         | Bin 4603 -> 4379 bytes
 tests/data/acpi/loongarch64/virt/DSDT.memhp   | Bin 5824 -> 5600 bytes
 tests/data/acpi/loongarch64/virt/DSDT.numamem | Bin 4609 -> 4385 bytes
 .../data/acpi/loongarch64/virt/DSDT.topology  | Bin 4905 -> 4681 bytes
 5 files changed, 1 insertion(+), 11 deletions(-)


base-commit: 8967b2fe1b2aaae3c29e207d85fab901d580a2dc
-- 
2.56.0