public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: Rebecca Cran <rebecca@nuviainc.com>
Cc: 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>,
	edk2-devel-groups-io <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 18:38:07 +0100	[thread overview]
Message-ID: <CAMj1kXGkLn7LhskfDnE9=a10UKMB9Bf3dPk+q9u1UrJFB-H26w@mail.gmail.com> (raw)
In-Reply-To: <c2f9d242-1b42-3755-79b1-5a75eea8297c@nuviainc.com>

On Wed, 15 Dec 2021 at 18:18, Rebecca Cran <rebecca@nuviainc.com> wrote:
>
> 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?
>

No worries - just keep it as one patch in that case.



>
>
> 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(+)

      reply	other threads:[~2021-12-15 17:38 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
2021-12-15 17:38       ` Ard Biesheuvel [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='CAMj1kXGkLn7LhskfDnE9=a10UKMB9Bf3dPk+q9u1UrJFB-H26w@mail.gmail.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