From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.65]) by mx.groups.io with SMTP id smtpd.web11.5874.1608117848312989047 for ; Wed, 16 Dec 2020 03:24:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=TRms7/Zi; spf=pass (domain: arm.com, ip: 40.107.20.65, mailfrom: sami.mujawar@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=Sd9cmI3euk3eNlx0AT7OxuYPMZ+tYlP151DFdR+LA5I=; b=TRms7/ZiaUArgT/4XqlQ6ZSOPea+CQww9aJE+t85eFW5MBgHZOjiEKG/nP2bW6W4MBZVJJGeHBjnM29t7Vlewq7o0TK6Xidb18xwwXXt3OX1EGG/Wt9+MU0WtGnJPmDf3d6YBYaRGbmMiYt9j2ktEdI5wd8g4MncaBHno2KfMS8= Received: from DB6PR0202CA0032.eurprd02.prod.outlook.com (2603:10a6:4:a5::18) by VI1PR0802MB2384.eurprd08.prod.outlook.com (2603:10a6:800:a0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 16 Dec 2020 11:24:05 +0000 Received: from DB5EUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a5:cafe::82) by DB6PR0202CA0032.outlook.office365.com (2603:10a6:4:a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 16 Dec 2020 11:24:05 +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 DB5EUR03FT039.mail.protection.outlook.com (10.152.21.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Wed, 16 Dec 2020 11:24:04 +0000 Received: ("Tessian outbound 665ba7fbdfd9:v71"); Wed, 16 Dec 2020 11:24:04 +0000 X-CR-MTA-TID: 64aa7808 Received: from c34e12da9a81.6 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 36CEADEB-C57C-4285-88FB-1120D1D85DAC.1; Wed, 16 Dec 2020 11:23:59 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c34e12da9a81.6 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 16 Dec 2020 11:23:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XUL6GwXWRF61cO/SFZVIN8ChqTnzGkufyK30dOXkM/HPBOAkK+083Dobckn/J1/226PYkLSRwZumASkOkXCJ0iskZ7zDsC1cttOqzNrXPYvm9yor9PcEybsZVKaD5XiHtd3fm9FA4upqK7uNYRbM/VMIO7Z3/C+uTYTQ27wfCM1XNlY4QQEgFjwEyt0dRG/kTp7OUbi9i8C31xCmcNZCso7cP419XuBELExl9HlOFCEQoytYcUmDdrErSfUhutJY7iaLTrsEJliDUOwWW3FgaFcwXjy/2byT8Qwjc51CJgP+rQjREtiBLKRWjSZZCSNqjjzOwlocMSCtLiN2Tgxanw== 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=Sd9cmI3euk3eNlx0AT7OxuYPMZ+tYlP151DFdR+LA5I=; b=PKhPuGhQRdTH6aEqYafGjdGYaSwHdAGh1PeWqv5/i1eU1ZuEbjptmy1V3h/wK1+F/dVjILUsYUKV9oYdStvXH8ZMPpIIhoR1zYMX2Ufgwm8LLxRX2xzIgBacATsf/Lh4doggxCgGGFagYixL5dSbkLjl6yOwzxNOpO3Hf9of58sFiofnr7WDfZhkrlDr0L97i1qnRlulNH0d71mipBHowXead42njmLY79/0H+TEWNKatpHHsqm8xFSD52c/yNHp2SR68yjxPF65VPIwI/eSfMm7bOkf7YONsJoIurdFVia4PAQB7e8xNLQllyax5wJAnessd+RHeyf3xUuWqKfu/g== 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=Sd9cmI3euk3eNlx0AT7OxuYPMZ+tYlP151DFdR+LA5I=; b=TRms7/ZiaUArgT/4XqlQ6ZSOPea+CQww9aJE+t85eFW5MBgHZOjiEKG/nP2bW6W4MBZVJJGeHBjnM29t7Vlewq7o0TK6Xidb18xwwXXt3OX1EGG/Wt9+MU0WtGnJPmDf3d6YBYaRGbmMiYt9j2ktEdI5wd8g4MncaBHno2KfMS8= Received: from DB7PR08MB3097.eurprd08.prod.outlook.com (2603:10a6:5:1d::27) by DB8PR08MB4076.eurprd08.prod.outlook.com (2603:10a6:10:b0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.14; Wed, 16 Dec 2020 11:23:56 +0000 Received: from DB7PR08MB3097.eurprd08.prod.outlook.com ([fe80::315c:f6c3:2600:bd39]) by DB7PR08MB3097.eurprd08.prod.outlook.com ([fe80::315c:f6c3:2600:bd39%6]) with mapi id 15.20.3654.025; Wed, 16 Dec 2020 11:23:56 +0000 From: "Sami Mujawar" To: "devel@edk2.groups.io" , "rebecca@nuviainc.com" CC: Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel , nd Subject: Re: [edk2-devel] [PATCH v4 01/10] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Thread-Topic: [edk2-devel] [PATCH v4 01/10] ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h Thread-Index: AQHWzMI14z2wYAZmAUO9pjucHIbmk6n5oLtg Date: Wed, 16 Dec 2020 11:23:56 +0000 Message-ID: References: <20201207175427.28712-1-rebecca@nuviainc.com> <20201207175427.28712-2-rebecca@nuviainc.com> In-Reply-To: <20201207175427.28712-2-rebecca@nuviainc.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: EBA11D951930D74DAAE6F47454327D98.2 x-checkrecipientchecked: true 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: [2a00:23c6:548a:4800:ac83:fe43:cf2a:e70f] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 70366e92-f614-46c1-9df1-08d8a1b518ba x-ms-traffictypediagnostic: DB8PR08MB4076:|VI1PR0802MB2384: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:7691;OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: GLE24It0n5upwp60LnN0H8vJMpoq8x6x9BVLQkJsG5Cz47HoaNBIp1xIi6El7+GV6c5IVDkyEUAQCOUi8SNTX2Jtv/IoN6aJ+Vf0n6i7YQR/x+kCxtyWxNkWEutIpHm331fFQTyfrdzbapjpIH34i8rWyFbssyV6b0/LwghMXoMPDVoubQS5fMg8I/jAThuzzmiCDmxx/CJi5Rdw4pcCKRUPbcjDF5MzWdbfumIPtWEx4d7PxQ8tAsQVBcg8x0iyNV7gSoRSSlDCBQeWeEG39izlK7l8M1dgoDtMZW3gyGXjK4yDuIe6+y9wb5lUgPR2T5YnyWjbP14jEFKzAh8YchGeYpcVX9G5giR+CsPLUKcJsuZI7FP/4Ny+OoKp6p9vZJDgyrtknd+NtY1gW8rk3Q== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3097.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(376002)(39860400002)(366004)(136003)(316002)(71200400001)(33656002)(76116006)(66446008)(66946007)(478600001)(8936002)(5660300002)(66556008)(4326008)(110136005)(8676002)(52536014)(2906002)(64756008)(66476007)(6506007)(86362001)(9686003)(55016002)(53546011)(966005)(186003)(83380400001)(54906003)(7696005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?qBlSvuLFLwybQ9IszUJl9r2XkY7fhCbs3jEfpnXnHIizqvFxIKHFvtkEbeJZ?= =?us-ascii?Q?+hmuz6P16aU4Af2NUvEkZn0Ik+6MMMsPAq5H4J+70Zfffanb1oxwfDJzwaqf?= =?us-ascii?Q?cGq8Qd0hMy3fgSIl2XNJp6qNq8mRrQZgbNVgNBnXk3ep8xbLSUWhW7i/QvQJ?= =?us-ascii?Q?UTUDcJu1pcvDEwST70nOO1KhqdtEoLsNONOVB0fKAnl7GTLCGqxvqX/Q1bdL?= =?us-ascii?Q?8U+JWMbYsqltoKA1PqrBeDAmvUTVFSMcSAUIc5+A+l2fKmylci+FQiBeWHoH?= =?us-ascii?Q?lQQo66EK4V0j7B2WNu4yVri26PzXpoa9wBlXXuKpZwpDbuoCxlqS23okQ/dX?= =?us-ascii?Q?MN124UnfzDBw2mP2pmjVIc60/EE5zCCqMMe67cIeFlHF0L/M+ly2gblBddRJ?= =?us-ascii?Q?n+X50BEpVPeQRk+mCaOL49YN7jL+LtGTfPgmQliA+nU9iHdP8KSvEpWVaclE?= =?us-ascii?Q?udIqjhecCCRp2wEVEQ+0LtYbQLRcbwxPmvYR5D07BMbYh+GHUQLEUtec759/?= =?us-ascii?Q?9k5RY42/40g8Nr3Ner93vLHwArCi6CJ3uyyeWhUTDmThj8DCp1Vm7R94YMNm?= =?us-ascii?Q?uYo++fcn8s0yXy5GD1ZEWApZhzi19WcWJs9Iw1hIov/PLg7e0bF6Q8rGAati?= =?us-ascii?Q?DbF2yhuURKUsenMO7MmWxvlQVmUUjk3zUgGxmHtZBDGCROLjt2+CkaA6jHl3?= =?us-ascii?Q?DveuBfCOFHTdDn58fCptJBYHXPzr84ZUMF1NMStRgvJwC98JUO8Lt5qCHOya?= =?us-ascii?Q?cXqaZewUIqpYXA7P5CqiMZFsN6LEQsXmuvrx6HpGk4kd9sJ/3GV1JcUvqfj5?= =?us-ascii?Q?r/KYjr9ajpQXIs2nCtXRdAs7bbgVf7Ld7a/x2bJeeZIWSrlYW2CWNCvpzMtO?= =?us-ascii?Q?vgdjyHBk4tNKbtOWptbXT9YEViCGP6TNmMRVxjY6dRhXwiuVH0BVb3cs/YXs?= =?us-ascii?Q?Bk7LQBi6AEnn6CgWnBomn/OOt0ormDYMkcLFIkyoiZXkORoW0uVWdP0cmErU?= =?us-ascii?Q?WI1169opQ2PdUPdPqd38E+BcOo9cNNJUetaBm02Plw6cN58=3D?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4076 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: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: b969d537-02c5-4900-9b64-08d8a1b513f7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dbbawn7FNatIx+Yyv1CadFQ6nVHYMV965oRDjBcfasUlTJ+oKlOdN6hOCUFWn/gWwtqpWCT48a3ad05dWwMrZNcydrGO3WgE6GG9NvxAO8EMZOuxfWHUMhNun0mYE5FYE8UjEkOiN/MoQjufXDbcswc9xDMhl+Bx5tONUOtcELQwfEz+e3kFrUqZCUbaZexv1QrghKX3x/rG8wRKKmC37n+gFa42s8qBHMyYFr7KiXOyv7cnQc/5u5yalTRGtP/i0Fsz0guXrfj7H5wgPz0D/h0gkpCDbbJYSKciIIRlEXcQYINZy5NJNloBMChrax3nKcmUKu3ueJXe7+jhWdGHhCr30IFK3vWNwxVv92CYbUOJKcYHjAgLq/KHkU6T1/zvPEQXG67UYc3kTPclVgxCWpwZJ8Y3avHEspthXqCZrCqPiLdGx/VRyFOLMS40ivGJkMH6APaFoWQFrjHD9AVuCugSpkpZgVH9laus9MEBWqU= 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)(396003)(346002)(376002)(39860400002)(136003)(46966005)(26005)(966005)(82740400003)(52536014)(70586007)(8676002)(8936002)(5660300002)(356005)(4326008)(82310400003)(336012)(2906002)(7696005)(83380400001)(33656002)(54906003)(53546011)(6506007)(478600001)(316002)(55016002)(86362001)(110136005)(81166007)(186003)(9686003)(70206006)(47076004);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2020 11:24:04.8881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70366e92-f614-46c1-9df1-08d8a1b518ba 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: DB5EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2384 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Rebecca, Is it possible to add the specification reference as mentioned in https://= edk2.groups.io/g/devel/message/67400, please? This would be helpful for someone trying to understand the code. With that changed Reviewed-by: Sami Mujawar Regards, Sami Mujawar -----Original Message----- From: devel@edk2.groups.io On Behalf Of Rebecca Cra= n via groups.io Sent: 07 December 2020 05:54 PM To: devel@edk2.groups.io Cc: Rebecca Cran ; Michael D Kinney ; Liming Gao ; Zhiguang Liu ; Leif Lindholm ; Ard Biesheuvel Subject: [edk2-devel] [PATCH v4 01/10] ArmPkg: Add ARM SMC Architecture fu= nctions to ArmStdSmc.h The ARM SMC Architecture functions were missing from ArmStdSmc.h. Add them, based on the SMC Calling Convention version 1.2 specification. Signed-off-by: Rebecca Cran --- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/= IndustryStandard/ArmStdSmc.h index 3509eb680f18..13f2245f37f5 100644 --- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h +++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h @@ -1,5 +1,6 @@ /** @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 @@ -52,6 +53,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 the * Standard Service Call range. --=20 2.26.2