From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 154B3D80419 for ; Mon, 16 Oct 2023 22:55:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ZlBMhl1kQdbI17H0Ehv2zUre75EAFxmzGfwEGnuczWc=; c=relaxed/simple; d=groups.io; h=Feedback-ID:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1697496935; v=1; b=XqgGNqatyDovPDCNVfJGmu0vPEybAqxAR99PVjuEUo/mJcMSqHKsaOwVEHGODlyqMobAm5Zp LkCfdpeXM0rOnQs0gTPYWLAtyvXlU8gFIKbgcFiwBRUGUE0vRzxDZnPUmrQ+VBVQDAr66st0GcN ElGIlnmyrwjyHTDhBXfB6C04= X-Received: by 127.0.0.2 with SMTP id MAeNYY7687511x15S2CiQLgq; Mon, 16 Oct 2023 15:55:35 -0700 X-Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mx.groups.io with SMTP id smtpd.web10.183314.1697496935071986009 for ; Mon, 16 Oct 2023 15:55:35 -0700 X-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6EDCB5C044E; Mon, 16 Oct 2023 18:55:34 -0400 (EDT) X-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 16 Oct 2023 18:55:34 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjedugdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomheptfgvsggv tggtrgcuvehrrghnuceorhgvsggvtggtrgessghsughiohdrtghomheqnecuggftrfgrth htvghrnhephfekvdekvdfhtddvteehueeuleetjefhieehjeeuhfdtuddtvdeguddtkeev lefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprh gvsggvtggtrgessghsughiohdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Oct 2023 18:55:33 -0400 (EDT) Message-ID: <8d01f157-ad20-421d-a1e1-9aebeba1f028@bsdio.com> Date: Mon, 16 Oct 2023 16:55:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH] ArmPkg/ArmPsciMpServices Add EFI_NOT_READY return To: Jeff Brasen , devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, ardb+tianocore@kernel.org References: <0048beef351cf6fb6646a171c0a6eb01f2d3829f.1688071551.git.jbrasen@nvidia.com> From: "Rebecca Cran" In-Reply-To: <0048beef351cf6fb6646a171c0a6eb01f2d3829f.1688071551.git.jbrasen@nvidia.com> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@bsdio.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: LlHKbzBmG73HiKO5jsnB6eNax7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=XqgGNqat; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none Reviewed-by: Rebecca Cran Looks like this is still waiting to be merged by an ArmPkg maintainer. --=20 Rebecca Cran On 6/29/23 14:46, Jeff Brasen wrote: > Add EFI_NOT_READY return if the CPU can not be enabled if the > processor is already on. > > This can occur in normal use if the CPU is still being turned off from > a previous call when this is called again. > > Signed-off-by: Jeff Brasen > --- > ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c b= /ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c > index f822a9877c..e7f4223513 100644 > --- a/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c > +++ b/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c > @@ -103,7 +103,9 @@ DispatchCpu ( > =20 > ArmCallSmc (&Args); > =20 > - if (Args.Arg0 !=3D ARM_SMC_PSCI_RET_SUCCESS) { > + if (Args.Arg0 =3D=3D ARM_SMC_PSCI_RET_ALREADY_ON) { > + Status =3D EFI_NOT_READY; > + } else if (Args.Arg0 !=3D ARM_SMC_PSCI_RET_SUCCESS) { > DEBUG ((DEBUG_ERROR, "PSCI_CPU_ON call failed: %d\n", Args.Arg0)); > Status =3D EFI_DEVICE_ERROR; > } -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109659): https://edk2.groups.io/g/devel/message/109659 Mute This Topic: https://groups.io/mt/99859167/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-