From: "PierreGondois" <pierre.gondois@arm.com>
To: Jeff Brasen <jbrasen@nvidia.com>, devel@edk2.groups.io
Cc: ardb+tianocore@kernel.org, Sami.Mujawar@arm.com, Alexei.Fedorov@arm.com
Subject: Re: [PATCH v2 3/3] DynamicTablesPkg: SSDT CPU _CPC generator
Date: Thu, 15 Sep 2022 10:03:55 +0200 [thread overview]
Message-ID: <145fd2d9-330a-7e52-386f-70a9c0eba34e@arm.com> (raw)
In-Reply-To: <5cb1dcf9ca892c00c03dfc69b74306b45305b05f.1663191097.git.jbrasen@nvidia.com>
Hello Jeff,
Just one remark:
On 9/14/22 23:34, Jeff Brasen wrote:
> Add code to use a token attached to GICC to generate _CPC object on cpus.
>
> Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
> ---
> .../SsdtCpuTopologyGenerator.c | 223 +++++++++++++++++-
> 1 file changed, 217 insertions(+), 6 deletions(-)
>
> diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c
> index 8561f48e1f..56741e7b58 100644
[snip]
> @@ -934,10 +1134,11 @@ CreateTopologyFromGicC (
> IN AML_OBJECT_NODE_HANDLE ScopeNode
> )
> {
> - EFI_STATUS Status;
> - CM_ARM_GICC_INFO *GicCInfo;
> - UINT32 GicCInfoCount;
> - UINT32 Index;
> + EFI_STATUS Status;
> + CM_ARM_GICC_INFO *GicCInfo;
> + UINT32 GicCInfoCount;
> + UINT32 Index;
> + AML_OBJECT_NODE_HANDLE CpuNode;
>
> ASSERT (Generator != NULL);
> ASSERT (CfgMgrProtocol != NULL);
> @@ -961,12 +1162,22 @@ CreateTopologyFromGicC (
> ScopeNode,
> &GicCInfo[Index],
> Index,
> - NULL
> + &CpuNode
> );
> if (EFI_ERROR (Status)) {
> ASSERT (0);
> break;
> }
> +
> + // If a CPC info is associated with the
> + // GicCinfo, create an _CPC method returning them.
> + if (GicCInfo->CpcToken != CM_NULL_TOKEN) {
> + Status = CreateAmlCpcNode (Generator, CfgMgrProtocol, &GicCInfo[Index], CpuNode);
> + if (EFI_ERROR (Status)) {
> + ASSERT_EFI_ERROR (Status);
> + return Status;
Could it be replaced with a 'break' just to be consistent in the loop ?
> + }
> + }
> } // for
>
> return Status;
prev parent reply other threads:[~2022-09-15 8:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 21:34 [PATCH v2 0/3] DynamicTablesPkg: _CPC support Jeff Brasen
2022-09-14 21:34 ` [PATCH v2 1/3] DynamicTablesPkg: Add CM_ARM_CPC_INFO object Jeff Brasen
2022-09-15 8:02 ` PierreGondois
2022-09-15 14:00 ` Sami Mujawar
2022-09-14 21:34 ` [PATCH v2 2/3] DynamicTablesPkg: AML Code generation to add _CPC entries Jeff Brasen
2022-09-15 8:04 ` PierreGondois
2022-09-14 21:34 ` [PATCH v2 3/3] DynamicTablesPkg: SSDT CPU _CPC generator Jeff Brasen
2022-09-15 8:03 ` 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=145fd2d9-330a-7e52-386f-70a9c0eba34e@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