public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rebecca Cran" <rebecca@nuviainc.com>
To: Sami Mujawar <sami.mujawar@arm.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>,
	Leif Lindholm <leif@nuviainc.com>,
	devel@edk2.groups.io, nd <nd@arm.com>
Subject: Re: [PATCH 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL
Date: Wed, 15 Dec 2021 10:18:53 -0700	[thread overview]
Message-ID: <c2f9d242-1b42-3755-79b1-5a75eea8297c@nuviainc.com> (raw)
In-Reply-To: <f567e3a9-17da-f269-9868-725541a5b18e@arm.com>

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

Hi Sami,


I've been looking at this again to make sure I've addressed all the 
issues before sending out a v2 patch series. I'm stuck on one point 
though: I'm not sure how it can be split into 2-3 patches without 
breaking bisecting. The CpuDxe and MpInitLib changes introduce a 
dependency on MpInitLib, so I don't see how I can put the ArmVirtPkg 
change into a separate commit without breaking it?


-- 
Rebecca Cran


On 10/22/21 11:51 AM, Sami Mujawar wrote:
>
> Hi Rebecca,
>
> Thanks you for this patch.
>
> I think this patch could be split in 2 - 3 patches (CpuDxe & MpInitLib 
> and the ArmVirtPkg change should be a separate patch).
>
> Please find my feedback inline marked [SAMI].
>
> I think the usage of MPIDR and CpuInfo->ProcessorId needs to be 
> revisited in this patch series. I have kept my feedback on usage of 
> MPIDR and the MT bit [24] to give the context. But, it will be good to 
> only retain the affinity bits and mask all other bits of the MPIDR.
>
> Please let me know if you have any queries.
>
> Regards,
>
> Sami Mujawar
>
>
> On 18/10/2021 04:39 PM, Rebecca Cran wrote:
>> Add support for EFI_MP_SERVICES_PROTOCOL during the DXE phase under
>> AArch64.
>>
>> PSCI_CPU_ON is called to power on the core, the supplied procedure is
>> executed and PSCI_CPU_OFF is called to power off the core.
>>
>> Minimal setup is done before calling the supplied procedure: for example
>> the MMU and caches are not enabled.
>>
>> Signed-off-by: Rebecca Cran<rebecca@nuviainc.com>
>> ---
>>   ArmPkg/ArmPkg.dec                            |    4 +
>>   ArmPkg/ArmPkg.dsc                            |    4 +
>>   ArmPkg/Drivers/CpuDxe/AArch64/Arch.c         |   22 +
>>   ArmPkg/Drivers/CpuDxe/Arm/Arch.c             |   22 +
>>   ArmPkg/Drivers/CpuDxe/CpuDxe.c               |    2 +
>>   ArmPkg/Drivers/CpuDxe/CpuDxe.h               |   10 +
>>   ArmPkg/Drivers/CpuDxe/CpuDxe.inf             |    6 +
>>   ArmPkg/Drivers/CpuDxe/CpuMpInit.c            |  604 ++++++++
>>   ArmPkg/Include/Library/MpInitLib.h           |  366 +++++
>>   ArmPkg/Library/MpInitLib/AArch64/MpFuncs.S   |   61 +
>>   ArmPkg/Library/MpInitLib/DxeMpInitLib.inf    |   53 +
>>   ArmPkg/Library/MpInitLib/DxeMpLib.c          | 1498 ++++++++++++++++++++
>>   ArmPkg/Library/MpInitLib/InternalMpInitLib.h |  358 +++++
>>   ArmVirtPkg/ArmVirt.dsc.inc                   |    3 +
>>   14 files changed, 3013 insertions(+)

[-- Attachment #2: Type: text/html, Size: 3494 bytes --]

  reply	other threads:[~2021-12-15 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18 15:39 [PATCH 0/2] Add EFI_MP_SERVICES_PROTOCOL support for AARCH64 Rebecca Cran
2021-10-18 15:39 ` [PATCH 1/2] ArmPkg: Replace CoreId and ClusterId with Mpidr in ARM_CORE_INFO struct Rebecca Cran
2021-10-22 17:51   ` Sami Mujawar
2021-10-18 15:39 ` [PATCH 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL Rebecca Cran
2021-10-22 17:51   ` Sami Mujawar
2021-12-15 17:18     ` Rebecca Cran [this message]
2021-12-15 17:38       ` Ard Biesheuvel

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=c2f9d242-1b42-3755-79b1-5a75eea8297c@nuviainc.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