From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, ardb@kernel.org,
Rebecca Cran <rebecca@quicinc.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Jian J Wang <jian.j.wang@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Tiger Liu <TigerLiu@zhaoxin.com>
Subject: Re: [edk2-devel] [PATCH v4 3/3] MdeModulePkg: Add new Application/MpServicesTest application
Date: Fri, 6 Jan 2023 12:02:10 +0100 [thread overview]
Message-ID: <5da2a432-e609-4c3a-1b65-048da876bf0b@redhat.com> (raw)
In-Reply-To: <CAMj1kXEcRStzBwsB-L6v9UCebfXRHci90DV6BwuDEbJq=Ax31A@mail.gmail.com>
On 1/6/23 10:40, Ard Biesheuvel wrote:
> On Wed, 4 Jan 2023 at 16:37, Rebecca Cran <rebecca@quicinc.com> wrote:
>>
>> The MpServicesTest application exercises the EFI_MP_SERVICES_PROTOCOL.
>>
>> usage:
>> MpServicesTest -A [-O]
>> MpServicesTest -T <Timeout>
>> MpServicesTest -S <Processor #>
>> MpServicesTest -P
>> MpServicesTest -U
>> MpServicesTest -W
>> MpServicesTest -E <Processor #>
>> MpServicesTest -D <Processor #>
>> MpServicesTest -h
>>
>> Parameter:
>> -A: Run all APs.
>> -O: Run APs sequentially (use with -A).
>> -T: Specify timeout in milliseconds. Default is to wait forever.
>> -S: Specify the single AP to run.
>> -P: Print processor information.
>> -U: Set the specified AP to the Unhealthy status (use with -E/-D).
>> -W: Run WhoAmI and print index of BSP.
>> -E: Enable the specified AP.
>> -D: Disable the specified AP.
>> -h: Print this help page.
>>
>> Signed-off-by: Rebecca Cran <rebecca@quicinc.com>
>
> Acked-by: Ard Biesheuvel <ardb@kernel.org>
> Tested-by: Ard Biesheuvel <ardb@kernel.org>
>
> However, I imagine this may violate some rules regarding dependencies
> between packages, so I defer to the maintainers to suggest a way
> forward here.
The application does not in fact need ShellLib. Squash this patch:
> diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc
> index 6992b3ae8db6..24c9b3d5b4b3 100644
> --- a/MdeModulePkg/MdeModulePkg.dsc
> +++ b/MdeModulePkg/MdeModulePkg.dsc
> @@ -166,7 +166,6 @@ [LibraryClasses.common.UEFI_APPLICATION]
> MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
> FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
> - ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
>
> [LibraryClasses.common.MM_STANDALONE]
> HobLib|MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.inf
> diff --git a/MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf b/MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf
> index 07ee4afec845..fb19e487c129 100644
> --- a/MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf
> +++ b/MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf
> @@ -31,10 +31,9 @@ [Packages]
>
> [LibraryClasses]
> BaseLib
> - ShellLib
> UefiApplicationEntryPoint
> UefiLib
>
> [Protocols]
> - gEfiMpServiceProtocolGuid ## CONSUMES
> -
> + gEfiMpServiceProtocolGuid ## CONSUMES
> + gEfiShellParametersProtocolGuid ## CONSUMES
The ShellLib dependency was incorrectly used for bringing in
"gEfiShellParametersProtocolGuid". But "gEfiShellParametersProtocolGuid"
is a standard protocol GUID, it is declared in "MdePkg/MdePkg.dec". So
you just need to spell it out in the [Protocols] section.
And then (IIUC) no invalid cross-Pkg dependency remains.
(The INF file was not right in the first place: the ShellLib class comes
from "ShellPkg/ShellPkg.dec", but that DEC file is not listed in the INF
file's [Packages] section.)
Laszlo
next prev parent reply other threads:[~2023-01-06 11:02 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 15:37 [PATCH v4 0/3] ArmPkg,MdeModulePkg: Implement EFI_MP_SERVICES_PROTOCOL for AArch64 and add an MpServicesTest application to exercise it Rebecca Cran
2023-01-04 15:37 ` [PATCH v4 1/3] ArmPkg: Add GET_MPIDR_AFFINITY_BITS and MPIDR_MT_BIT to ArmLib.h Rebecca Cran
2023-01-04 15:37 ` [PATCH v4 2/3] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls Rebecca Cran
2023-01-06 22:11 ` [edk2-devel] " Kun Qin
2023-01-16 18:41 ` Rebecca Cran
[not found] ` <1737D7D0377487BE.3916@groups.io>
2023-01-06 22:16 ` Kun Qin
2023-01-13 2:01 ` Kun Qin
2023-01-16 19:06 ` Rebecca Cran
2023-01-16 18:45 ` Rebecca Cran
2023-01-04 15:37 ` [PATCH v4 3/3] MdeModulePkg: Add new Application/MpServicesTest application Rebecca Cran
2023-01-06 9:40 ` Ard Biesheuvel
2023-01-06 11:02 ` Laszlo Ersek [this message]
2023-01-06 18:40 ` [edk2-devel] " Rebecca Cran
2023-01-06 22:33 ` Kun Qin
2023-01-08 4:56 ` Rebecca Cran
2023-01-09 1:32 ` Ni, Ray
2023-01-09 14:25 ` Rebecca Cran
2023-01-09 17:12 ` Ard Biesheuvel
2023-01-10 1:08 ` Ni, Ray
2023-01-15 1:02 ` Rebecca Cran
2023-01-07 22:19 ` Laszlo Ersek
2023-01-05 17:39 ` [PATCH v4 0/3] ArmPkg,MdeModulePkg: Implement EFI_MP_SERVICES_PROTOCOL for AArch64 and add an MpServicesTest application to exercise it Ard Biesheuvel
2023-01-05 17:59 ` Ard Biesheuvel
2023-01-06 5:11 ` [edk2-devel] " Kun Qin
2023-01-06 18:42 ` Rebecca Cran
2023-01-06 19:56 ` Kun Qin
2023-01-08 3:55 ` Rebecca Cran
2023-01-11 16:41 ` [edk2-devel] " Patrik Berglund
2023-01-11 22:54 ` Rebecca Cran
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=5da2a432-e609-4c3a-1b65-048da876bf0b@redhat.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