> On 21 Jul 2025, at 12:41, Jonathan Cameron
> wrote:
>
> On Fri, 18 Jul 2025 19:20:44 +0300
> Vadim Chichikalyuk wrote:
>
>> On the ARM virt machine, there is currently no way to programmatically
>> discover the frequency of the UART reference clock solely t
> On 21 Jul 2025, at 12:39, Jonathan Cameron via wrote:
>
> On Fri, 18 Jul 2025 19:20:42 +0300
> Vadim Chichikalyuk wrote:
>
>> The UART clock frequency field of the SPCR table was added in revision 3.
>> Currently, build_spcr() treats revision 3 tables the sam
, this is the only change between revisions 2 and 3.
Signed-off-by: Vadim Chichikalyuk
---
hw/acpi/aml-build.c | 20 +++-
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 1e685f982f..9855d5f053 100644
--- a/hw/acpi/aml
FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 //
+0040: FF FF FF FF 00 00 00 00 00 00 00 00 00 36 6E 01 // .6n.
In a revision 3 SPCR table, the "Reserved" field is the UART clock frequency
field.
Signed-off-by: Vadim Chichikalyuk
---
tests/data/acpi/aa
MHz to the table.
Signed-off-by: Vadim Chichikalyuk
---
hw/arm/virt-acpi-build.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index b01fc4f8ef..029cbb37f7 100644
--- a/hw/arm/virt-acpi-build.c
+++ b/hw/arm/virt-acpi
revision 3, exposing the UART clock frequency, which was not previously
available
via ACPI, to the guest.
Thanks,
Vadim
Signed-off-by: Vadim Chichikalyuk
Vadim Chichikalyuk (4):
hw: acpi: add support for SPCR revision 3
tests: acpi: whitelist expected blobs
hw: arm: acpi: add UART clock
Signed-off-by: Vadim Chichikalyuk
---
tests/qtest/bios-tables-test-allowed-diff.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/bios-tables-test-allowed-diff.h
b/tests/qtest/bios-tables-test-allowed-diff.h
index dfb8523c8b..2a30472d57 100644
--- a/tests/qtest/bios-tables-test