From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.41]) by mx.groups.io with SMTP id smtpd.web11.499.1610744148038720962 for ; Fri, 15 Jan 2021 12:55:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=QzJJX7L9; spf=pass (domain: arm.com, ip: 40.107.22.41, mailfrom: samer.el-haj-mahmoud@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fBqrojZLhaEfj+1OkfHIBt8MteAgpZs7PQALQUdfnQQ=; b=QzJJX7L9kGbVgExziqECGN7Myjts274BSY1IlMG2wnvo3JxyPJr2P1tq1DOBc9qt05QmjMZv6dmg1hiF1Tu+lNs7po90Y+WHdrpwmByg71b2T2MubTGlXzn+kixkw0UfQ7Lp1TalHKceNnEPIYqCHNU7R0MZByu2z7IbRe2FmN8= Received: from MR2P264CA0109.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:33::25) by AM5PR0801MB1842.eurprd08.prod.outlook.com (2603:10a6:203:3c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Fri, 15 Jan 2021 20:55:45 +0000 Received: from VE1EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:33:cafe::82) by MR2P264CA0109.outlook.office365.com (2603:10a6:500:33::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.11 via Frontend Transport; Fri, 15 Jan 2021 20:55:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT040.mail.protection.outlook.com (10.152.18.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Fri, 15 Jan 2021 20:55:44 +0000 Received: ("Tessian outbound af289585f0f4:v71"); Fri, 15 Jan 2021 20:55:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 726541e06cec77e1 X-CR-MTA-TID: 64aa7808 Received: from aa1a86c8bce2.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0C513117-6162-4451-9E15-EDEF2C0E0911.1; Fri, 15 Jan 2021 20:55:39 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id aa1a86c8bce2.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 15 Jan 2021 20:55:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wa3n3/7x+1hAY+30E6oBb+aVWeMhGxx8XbIbvJ2ATSylgBDOnqRXDCpQN90IqZHj+WrKcMmH0mcLI2jt8NAr+L0/x7fXHN8dAsAkhJE1+votC+y4QWp0d6iIwwBPfXSMz+Wv/xObjsXdoEttd2PYMSMxTWXEA/qmc29ZXI0p+B0PX276Kb2+bf0zdEiKCUq522AYa8aBGf+VrUSJf5sq0aOV2+40FfvPcFCzOsLbuViNm8zlWjC6uP2yxNoyHNCow8frboAimU0Fqrpwa+bV65OP3H7zu+hobT4YabiBb/M49L8SPuWOxf68bUK7b8but+TqHsyhfexNJ72Mc9W4OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fBqrojZLhaEfj+1OkfHIBt8MteAgpZs7PQALQUdfnQQ=; b=O2onmaT7ekGBWp+9DgQNuWy3tnYo4xpw/RCiVSS/S+cl5epf8bOXcbGTg/1RuwKDUf7LTVU0Hf2JC0+IVGRORtSGlQ6MpniAouSUqzrg/gJgEN4sN2PjeyPe3MHkspS88/U1KBLBBdzTypxJ8iRcKCjXA+Q+/hRQq/tUHk2wFs7eXfjzC5ItVfEclYmoiY8kV0xDT52JQDWPA7mkKOEGEI2efSjbKr8ZOtjlNi9YdaI7cyrJpHmlFFSJFtYxAN0cRylSMJVjOUAaRwCOHuSJugss2lA1k5jF2tnqkSK81+jKvWEiOckDjDnNjQa8vIpkRSeHYFVI6ImL2iEtJXrAZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fBqrojZLhaEfj+1OkfHIBt8MteAgpZs7PQALQUdfnQQ=; b=QzJJX7L9kGbVgExziqECGN7Myjts274BSY1IlMG2wnvo3JxyPJr2P1tq1DOBc9qt05QmjMZv6dmg1hiF1Tu+lNs7po90Y+WHdrpwmByg71b2T2MubTGlXzn+kixkw0UfQ7Lp1TalHKceNnEPIYqCHNU7R0MZByu2z7IbRe2FmN8= Received: from DB7PR08MB3260.eurprd08.prod.outlook.com (2603:10a6:5:21::23) by DBBPR08MB6025.eurprd08.prod.outlook.com (2603:10a6:10:203::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Fri, 15 Jan 2021 20:55:36 +0000 Received: from DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::a1f1:ccfd:b17f:a490]) by DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::a1f1:ccfd:b17f:a490%5]) with mapi id 15.20.3763.011; Fri, 15 Jan 2021 20:55:36 +0000 From: "Samer El-Haj-Mahmoud" To: "devel@edk2.groups.io" , "rebecca@nuviainc.com" CC: Leif Lindholm , Ard Biesheuvel , nd , Sami Mujawar , Liming Gao , Michael D Kinney , Zhiguang Liu , Samer El-Haj-Mahmoud Subject: Re: [edk2-devel] [PATCH v6 02/22] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Thread-Topic: [edk2-devel] [PATCH v6 02/22] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Thread-Index: AQHW6pPZyzNT5PnQiEqnKfwEGjwelaopLFNw Date: Fri, 15 Jan 2021 20:55:36 +0000 Message-ID: References: <20210114163628.31952-1-rebecca@nuviainc.com> <20210114163628.31952-3-rebecca@nuviainc.com> In-Reply-To: <20210114163628.31952-3-rebecca@nuviainc.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; x-originating-ip: [99.132.126.10] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: fddd7776-9fa1-4e2b-899d-08d8b997ed92 x-ms-traffictypediagnostic: DBBPR08MB6025:|AM5PR0801MB1842: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1824;OLM:1824; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: SDB4nFvqaHosuUAH78HpOl83T9ahLC4JZjSzUApjv6w+2bUnFp9Jm69l4yy4lKhWno2EosbcuBXef0kRCOW5Ngjqct8QLLcM3erqdxuS/qlfLeVdrbRJe/h4Sf99Ci/xzR5oQLcX61JucnRLEm2JEhKF7HobJE3PbVLrp/N0PtcmVjPVgyLB/WoOgGgTU4lVj8uTK/fgHjCXcR1UCE7NeM1iJLbjm5ZKD9oXZu8oTxnIYLIHerrSwmHTHlU0fEeOaCnn2avNpWLZC3S50HhVAdc0oIR+5cNthbcdMVqLYHKRjesHhilPsMxJDJNxKiABsdNXttCnoZyouAYyT+Adi/UjPbnc6MfSct7ywzsq7K1hh7pLHn4xvd+buukcKaN9Rt2pQPqZDa+GflTQvo1ZJABE7zpGelBTq7XWXIL6GkU0t8iHcgpZQwx/oDnUFuz5mw+7lERSVRx44xi12hfpJw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3260.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(346002)(366004)(376002)(4326008)(966005)(86362001)(52536014)(8936002)(8676002)(5660300002)(83380400001)(71200400001)(7696005)(478600001)(76116006)(33656002)(66556008)(110136005)(316002)(64756008)(186003)(26005)(53546011)(6506007)(66446008)(54906003)(9686003)(66476007)(2906002)(55016002)(66946007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?LCZaeuh4/sP5HJicKuNaLA+G28xvqHRgD6ftdl24mWl12jDZb9hCm4ohNKls?= =?us-ascii?Q?a/F41ihpxh/Fl6HpKj2jKD7X1e0G9aDpHVwRBaoH0Ffl+d0r+0xDXenQCQ2n?= =?us-ascii?Q?Qy/G2JF/1LRozzoJZSfBjpxv7lrLqzkmujC2YzCnTacANvIm862gGL02+zSu?= =?us-ascii?Q?BHm5v+/cavaROhci54UlzzZjqb5y8F1kzETuvtD5x2dhYwsr3ysPvHqx7tlL?= =?us-ascii?Q?SF4mHWtupLktvn5RJGE9F8k9OdNzRzcfH58YkA0r375xxUbt5fhaynNTIV7q?= =?us-ascii?Q?ZRD+0IYa77sYGqNcPBDMLHagb874x0dGRAlA6eEG8J1dMh7KlWwzVHcPnorA?= =?us-ascii?Q?ZAzWRlL5pmwBt+bXFMV5K3rjxh9sGjWyl1I3oqBRyX6NIrgmwjU8l1uObeYZ?= =?us-ascii?Q?HUiPiSQOCd4hOijiT3DwrlrL3eQCbVpFrHzTzynSxOFHEuEkAg4D4Ku1l/dI?= =?us-ascii?Q?fPr99aqI2EpHR/v4Z7sCYbUinDUFMfihMrrm5Ind70y7NRW4RQacRRf0vk1M?= =?us-ascii?Q?GVIzahN2n44JSbwrItwhnijcQxlRkB621RWyrrijNP9KFoCZYdNF6Mg2K2zL?= =?us-ascii?Q?hg0kWrJfgVEU+VxrIJtJSqq+JLgP7pmK5GqfeN5nBnn6BCCI4C6muXbbIUbE?= =?us-ascii?Q?znX6oUGVu4DjcixWOIZgD4xiAlb1Pn/MW0ovsYsv4CjuopyvTUBjhlw+PD3J?= =?us-ascii?Q?427gLPp77Ygbsy9Ol34Va4QLb0esq0Y8+R9UmQpZ2HHlxFshiNSZ+qfNdvBR?= =?us-ascii?Q?/qnzb/7F2NOXxFdwwuoKkrcC4ePwcvjDRqhNLiOum4yVaGI7p6/VgG9847iD?= =?us-ascii?Q?T44P2lD4/W15dYv/oHCCXc5UfDeKuSTSFVizxL5J7A3zvtFHajvjV+sAIgnw?= =?us-ascii?Q?cDtlmZO2Twh70CgJqUIjoVIgyAxnQyoM07UB+8VfizyvZwv9yHWGpW8Hge4f?= =?us-ascii?Q?klF+RawJqRx4slBefSkbVKlLVL7qkypyBk15BlvQO8k=3D?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6025 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Samer.El-Haj-Mahmoud@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT040.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 890a8af4-c1d6-4e28-93d4-08d8b997e8b3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AC2sjJW1bSAI3BNaOuo5swGMNGqzDENFAHZsQHMCrMG7MFYYkiY+ba5D/5i2ufvbiVta2AFfr0mV9d81xTyhCsHjbN0M5raKYr3HTal0iw2B7X/lIT5xy6BygDzGTjLxScZ8bnZf9mwpc/Of4ROUc3hXa5SHdv2lFqWtiiUV7QzfL/M0FyPicubwxvh95zdsfGdADc3Q2Rs6HUPFg4GIbOoUK2rBtc61nLae0e6d9J50TE5OGmzg16VxomtP1evA1R9h7T42my2Y2wrSC057GT1EeYG8QGa7Nh2Y6FpKrLLbCiZIYlQQ+7vrYPxaa1mJb2cKRjmj3ic8dWea8YPUPyrtfFv5W4HMrcGLD/245LxwwWMnARHPw+68u1K8p21CBdftPOUdv0wTOvLu6tydB+YfgfSTNok/H1d6JlToMZvJeETwuioktDaLEyMVVIKRTvae/XHZ54T/nZiTVe6lBJw4epEd18WrJi2dNmB5TDufEhfrO8tSADt2Ic7lK5XIzBg6jEtEUipK1rn0mzcqtOZDyrIzyom76DTFFbXXxMcHGqqjJtDf4FkIU9fHMHcF X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(346002)(136003)(396003)(39860400002)(376002)(46966006)(70586007)(9686003)(55016002)(70206006)(81166007)(6506007)(8936002)(54906003)(356005)(82310400003)(26005)(336012)(53546011)(4326008)(33656002)(83380400001)(7696005)(110136005)(34020700004)(47076005)(186003)(966005)(2906002)(86362001)(82740400003)(52536014)(478600001)(316002)(8676002)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2021 20:55:44.8639 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fddd7776-9fa1-4e2b-899d-08d8b997ed92 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT040.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1842 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Samer El-Haj-Mahmoud > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Rebecca > Cran via groups.io > Sent: Thursday, January 14, 2021 11:36 AM > To: devel@edk2.groups.io > Cc: Rebecca Cran ; Leif Lindholm > ; Ard Biesheuvel ; nd > ; Sami Mujawar ; Liming Gao > ; Michael D Kinney > ; Zhiguang Liu ; Sam= i > Mujawar > Subject: [edk2-devel] [PATCH v6 02/22] ArmPkg: Add ARM SMC Architecture > functions to ArmStdSmc.h >=20 > The ARM SMC Architecture functions were missing from ArmStdSmc.h. > Add them, based on the SMC Calling Convention version 1.2 specification. >=20 > Signed-off-by: Rebecca Cran > Reviewed-by: Leif Lindholm > Reviewed-by: Sami Mujawar > --- > ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) >=20 > diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > index 3509eb680f18..9e0a3a3960d5 100644 > --- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > +++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > @@ -1,9 +1,13 @@ > /** @file > * > +* Copyright (c) 2020, NUVIA Inc. All rights reserved.
> * Copyright (c) 2012-2017, ARM Limited. All rights reserved. > * > * SPDX-License-Identifier: BSD-2-Clause-Patent > * > +* @par Revision Reference: > +* - SMC Calling Convention version 1.2 > +* (https://developer.arm.com/documentation/den0028/c/?lang=3Den) > **/ >=20 > #ifndef __ARM_STD_SMC_H__ > @@ -52,6 +56,18 @@ > #define ARM_SMC_MM_RET_DENIED -3 > #define ARM_SMC_MM_RET_NO_MEMORY -4 >=20 > +// ARM Architecture Calls > +#define SMCCC_VERSION 0x80000000 > +#define SMCCC_ARCH_FEATURES 0x80000001 > +#define SMCCC_ARCH_SOC_ID 0x80000002 > +#define SMCCC_ARCH_WORKAROUND_1 0x80008000 #define > +SMCCC_ARCH_WORKAROUND_2 0x80007FFF > + > +#define SMC_ARCH_CALL_SUCCESS 0 > +#define SMC_ARCH_CALL_NOT_SUPPORTED -1 > +#define SMC_ARCH_CALL_NOT_REQUIRED -2 > +#define SMC_ARCH_CALL_INVALID_PARAMETER -3 > + > /* > * Power State Coordination Interface (PSCI) calls cover a subset of th= e > * Standard Service Call range. > -- > 2.26.2 >=20 >=20 >=20 >=20 >=20