All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: Xiang W <wangxiang@iscas.ac.cn>
Cc: qemu-devel@nongnu.org, mst@redhat.com, anisinha@redhat.com,
	peter.maydell@linaro.org
Subject: Re: [PATCH v2 2/3] hw/acpi: Fix Terminal Type and Language field order in SPCR table
Date: Wed, 3 Jun 2026 12:51:07 +0200	[thread overview]
Message-ID: <20260603125107.3f658f03@imammedo> (raw)
In-Reply-To: <20260529023100.42508-3-wangxiang@iscas.ac.cn>

On Fri, 29 May 2026 10:30:59 +0800
Xiang W <wangxiang@iscas.ac.cn> wrote:

> According to the ACPI Serial Port Console Redirection Table (SPCR)
> specification, the field order after Flow Control is:
> 
>  - Terminal Type (offset 62, 1 byte)
>  - Language (offset 63, 1 byte)
> 
> This fixes:
>   - hw/acpi/aml-build.c
> 
> Reference:
> https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/serial-port-console-redirection-table
> 
> Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>

Reviewed-by: Igor Mammedov <imammedo@redhat.com>

> ---
>  hw/acpi/aml-build.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
> index 7edc8aed42..2adf2810c3 100644
> --- a/hw/acpi/aml-build.c
> +++ b/hw/acpi/aml-build.c
> @@ -2116,10 +2116,10 @@ void build_spcr(GArray *table_data, BIOSLinker *linker,
>      build_append_int_noprefix(table_data, f->stop_bits, 1);
>      /* Flow Control */
>      build_append_int_noprefix(table_data, f->flow_control, 1);
> -    /* Language */
> -    build_append_int_noprefix(table_data, f->language, 1);
>      /* Terminal Type */
>      build_append_int_noprefix(table_data, f->terminal_type, 1);
> +    /* Language */
> +    build_append_int_noprefix(table_data, f->language, 1);
>      /* PCI Device ID  */
>      build_append_int_noprefix(table_data, f->pci_device_id, 2);
>      /* PCI Vendor ID */



  reply	other threads:[~2026-06-03 10:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29  2:30 [PATCH v2 0/3] acpi: Fix Terminal Type and Language field order in SPCR table Xiang W
2026-05-29  2:30 ` [PATCH v2 1/3] qtest: allow SPCR acpi table changes Xiang W
2026-06-03 10:51   ` Igor Mammedov
2026-05-29  2:30 ` [PATCH v2 2/3] hw/acpi: Fix Terminal Type and Language field order in SPCR table Xiang W
2026-06-03 10:51   ` Igor Mammedov [this message]
2026-05-29  2:31 ` [PATCH v2 3/3] tests/qtest/bios-tables-test: " Xiang W
2026-06-03 10:52   ` Igor Mammedov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260603125107.3f658f03@imammedo \
    --to=imammedo@redhat.com \
    --cc=anisinha@redhat.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=wangxiang@iscas.ac.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.