All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Desapogu Jayaramudu <jayaramudu.desapogu@amd.com>
Cc: sjg@chromium.com, u-boot@lists.u-boot-project.org
Subject: Re: [PATCH v3] serial: coreboot: Accept DBG2 subtype 0x12
Date: Mon, 27 Jul 2026 10:44:55 -0600	[thread overview]
Message-ID: <20260727164455.GA4154485@bill-the-cat> (raw)
In-Reply-To: <20260720154826.42527-1-jayaramudu.desapogu@amd.com>

[-- Attachment #1: Type: text/plain, Size: 2727 bytes --]

On Mon, Jul 20, 2026 at 09:18:26PM +0530, Desapogu Jayaramudu wrote:
> U-Boot running as a coreboot payload obtains serial console
> information either from the coreboot table or from the ACPI DBG2
> table.
> 
> When serial console support is disabled in coreboot, the coreboot
> table does not contain serial information. In this case U-Boot falls
> back to parsing the DBG2 table.
> 
> Some AMD platforms or any other platforms that uses memory-mapped I/O
> advertise the debug UART using DBG2 subtype 0x0012 ("16550-compatible
> with parameters defined in Generic Address Structure"). U-Boot
> currently accepts only subtype 0x0000, causing DBG2 UART detection to
> fail and leaving no console output.
> 
> Accept subtype 0x0012 as well and keep the existing handling logic.
> 
> Signed-off-by: Desapogu Jayaramudu <jayaramudu.desapogu@amd.com>
> ---
> v3:
> - Change subject prefix to "serial: coreboot:"
> - Shorten commit subject
> - Remove extra From: line by fixing git author identity
> - Rework commit message formatting and wrapping
> - Rename subtype constant to ACPI_DBG2_16550_WITH_GAS
> - Add comment describing DBG2 subtype 0x12
> - Keep subtype definitions sorted by value
> - Wrap long conditional to stay within 80 columns
> 
>  drivers/serial/serial_coreboot.c | 3 ++-
>  include/acpi/acpi_table.h        | 1 +
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/serial/serial_coreboot.c b/drivers/serial/serial_coreboot.c
> index b1f69f6998cfa1..cb07173a80c0cc 100644
> --- a/drivers/serial/serial_coreboot.c
> +++ b/drivers/serial/serial_coreboot.c
> @@ -59,7 +59,8 @@ static int read_dbg2(struct ns16550_plat *plat)
>  		log_debug("Not a serial port\n");
>  		return -EPROTOTYPE;
>  	}
> -	if (dbg->port_subtype != ACPI_DBG2_16550_COMPATIBLE) {
> +	if (dbg->port_subtype != ACPI_DBG2_16550_COMPATIBLE &&
> +            dbg->port_subtype != ACPI_DBG2_16550_WITH_GAS) {
>  		log_debug("Incompatible serial port\n");
>  		return -EPROTOTYPE;
>  	}
> diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h
> index 4895366a6188ec..825652798166a4 100644
> --- a/include/acpi/acpi_table.h
> +++ b/include/acpi/acpi_table.h
> @@ -674,6 +674,7 @@ struct __packed acpi_dmar {
>  #define ACPI_DBG2_ARM_SBSA_GENERIC	0x000E
>  #define ACPI_DBG2_ARM_DCC		0x000F
>  #define ACPI_DBG2_BCM2835		0x0010
> +#define ACPI_DBG2_WITH_GAS		0x0012 /* 16550-compatible UART with GAS */
>  
>  #define ACPI_DBG2_1394_STANDARD		0x0000

This doesn't compile now. You reference ACPI_DBG2_16550_WITH_GAS and add
ACPI_DBG2_WITH_GAS so can you please do a v4 which compiles and you've
tested still resolves the issue? Thanks.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-07-27 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15 13:40 [PATCH v2] acpi: fix no display when serial console is disabled in coreboot config Desapogu Jayaramudu
2026-07-17 13:49 ` Simon Glass
2026-07-20 15:48 ` [PATCH v3] serial: coreboot: Accept DBG2 subtype 0x12 Desapogu Jayaramudu
2026-07-27 16:44   ` Tom Rini [this message]
2026-07-28  5:02 ` [PATCH v4] " Desapogu Jayaramudu

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=20260727164455.GA4154485@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=jayaramudu.desapogu@amd.com \
    --cc=sjg@chromium.com \
    --cc=u-boot@lists.u-boot-project.org \
    /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.