From: "PierreGondois" <pierre.gondois@arm.com>
To: Jeshua Smith <jeshuas@nvidia.com>, devel@edk2.groups.io
Cc: ardb+tianocore@kernel.org, quic_llindhol@quicinc.com,
Sami.Mujawar@arm.com
Subject: Re: [edk2-devel] [PATCH] DynamicTablesPkg/SSDT: Require Package node in hierarchy
Date: Mon, 5 Feb 2024 10:38:46 +0100 [thread overview]
Message-ID: <4fd86ffb-766e-4318-952b-ef547342a4af@arm.com> (raw)
In-Reply-To: <c48ed7b24c741e89dec9f6e85077bae5731a7bfc.1706899817.git.jeshuas@nvidia.com>
Hello Jeshua,
On 2/2/24 20:19, Jeshua Smith wrote:
> The code was incorrectly assuming that root nodes had to be physical
> package nodes and vice versa. This is not always true, so update the
> check to simply require exactly one package node somewhere in the
> hierarchy.
>
> Signed-off-by: Jeshua Smith <jeshuas@nvidia.com>
> ---
> Note: This is a complete replacement for [PATCH] DynamicTablesPkg/SSDT: Remove incorrect root node check
>
> .../SsdtCpuTopologyGenerator.c | 30 ++++++++++++-------
> 1 file changed, 20 insertions(+), 10 deletions(-)
>
> diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c
> index 9e3efb49e6..e400ac4ae5 100644
> --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c
> +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c
> @@ -1083,23 +1083,24 @@ CheckProcNode (
> UINT32 NodeFlags,
> BOOLEAN IsLeaf,
> CM_OBJECT_TOKEN NodeToken,
> - CM_OBJECT_TOKEN ParentNodeToken
> + CM_OBJECT_TOKEN ParentNodeToken,
> + BOOLEAN PackageNodeSeen
> )
NIT: I think 'PackageNodeSeen' must be added to the function's documentation.
Otherwise:
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Regards,
Pierre
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#115111): https://edk2.groups.io/g/devel/message/115111
Mute This Topic: https://groups.io/mt/104126146/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
prev parent reply other threads:[~2024-02-05 9:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 19:19 [edk2-devel] [PATCH] DynamicTablesPkg/SSDT: Require Package node in hierarchy Jeshua Smith via groups.io
2024-02-05 9:38 ` PierreGondois [this message]
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=4fd86ffb-766e-4318-952b-ef547342a4af@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