From: "PierreGondois" <pierre.gondois@arm.com>
To: Sami Mujawar <sami.mujawar@arm.com>, devel@edk2.groups.io
Cc: Alexei.Fedorov@arm.com, Jagadeesh.Ujja@arm.com,
Matteo.Carlini@arm.com, Akanksha.Jain2@arm.com,
Ben.Adderson@arm.com
Subject: Re: [PATCH v1 1/1] DynamicTablesPkg: Fix serial port namespace path in DBG2
Date: Fri, 11 Mar 2022 14:08:48 +0100 [thread overview]
Message-ID: <bd5ca5c4-37c2-16a7-0921-650dae5555ec@arm.com> (raw)
In-Reply-To: <20220310173927.105596-1-sami.mujawar@arm.com>
Hi Sami,
The patch looks good to me:
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
On 3/10/22 18:39, Sami Mujawar wrote:
> According to the Debug Port Table 2 (DBG2) specification,
> February 17, 2021, the NamespaceString is a NULL terminated
> ASCII string that consists of a fully qualified reference
> to the object that represents the serial port device in the
> ACPI namespace.
>
> The DBG2 table generator did not populate the full device
> path for the serial port device, and this results in a FWTS
> test failure.
>
> Therefore, populate the full namespace device path for the
> serial port in DBG2 table.
>
> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
> ---
> The changes can be seen at:
> https://github.com/samimujawar/edk2/tree/2105_dbg2_generator_namestring_issue_v1
>
> DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c
> index 3d513dbd1fbe8c47d270a9e639b2797098201d91..f6dfb3d94c10980a0e7712ce9427648b69974061 100644
> --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c
> +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c
> @@ -1,7 +1,7 @@
> /** @file
> DBG2 Table Generator
>
> - Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.<BR>
> + Copyright (c) 2017 - 2022, Arm Limited. All rights reserved.<BR>
>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
> @@ -55,13 +55,17 @@ Requirements:
> */
> #define NAME_STR_DBG_PORT0 "COM0"
>
> +/** A string representing the full path name of the debug port 0.
> +*/
> +#define NAMESPACE_STR_DBG_PORT0 "\\_SB_.COM0"
> +
> /** An UID representing the debug port 0.
> */
> #define UID_DBG_PORT0 0
>
> /** The length of the namespace string.
> */
> -#define DBG2_NAMESPACESTRING_FIELD_SIZE sizeof (NAME_STR_DBG_PORT0)
> +#define DBG2_NAMESPACESTRING_FIELD_SIZE sizeof (NAMESPACE_STR_DBG_PORT0)
>
> /** The PL011 UART address range length.
> */
> @@ -166,7 +170,7 @@ DBG2_TABLE AcpiDbg2 = {
> 0, // {Template}: Serial Port Subtype
> 0, // {Template}: Serial Port Base Address
> PL011_UART_LENGTH,
> - NAME_STR_DBG_PORT0
> + NAMESPACE_STR_DBG_PORT0
> )
> }
> };
next prev parent reply other threads:[~2022-03-11 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-10 17:39 [PATCH v1 1/1] DynamicTablesPkg: Fix serial port namespace path in DBG2 Sami Mujawar
2022-03-11 13:08 ` PierreGondois [this message]
2022-03-14 5:00 ` [edk2-devel] " Jagadeesh Ujja
2022-03-14 11:49 ` Sunny Wang
2022-03-14 15:00 ` Sami Mujawar
2022-03-15 14:46 ` Sami Mujawar
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-list 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=bd5ca5c4-37c2-16a7-0921-650dae5555ec@arm.com \
--to=devel@edk2.groups.io \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox