Re: [PATCH 3/4] hw: arm: acpi: add UART clock frequency to SPCR table

2025-07-21 Thread Vadim Chichikalyuk
> 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

Re: [PATCH 1/4] hw: acpi: add support for SPCR revision 3

2025-07-21 Thread Vadim Chichikalyuk
> 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

[PATCH 1/4] hw: acpi: add support for SPCR revision 3

2025-07-18 Thread Vadim Chichikalyuk
, 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

[PATCH 4/4] tests: acpi: update expected blobs

2025-07-18 Thread Vadim Chichikalyuk
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

[PATCH 3/4] hw: arm: acpi: add UART clock frequency to SPCR table

2025-07-18 Thread Vadim Chichikalyuk
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

[PATCH 0/4] hw: acpi: support SPCR rev. 3 & UART clock freq in ARM SPCR

2025-07-18 Thread Vadim Chichikalyuk
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

[PATCH 2/4] tests: acpi: whitelist expected blobs

2025-07-18 Thread Vadim Chichikalyuk
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