From patchwork Mon Aug 21 20:27:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9913697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B250602A0 for ; Mon, 21 Aug 2017 20:31:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DF51287F4 for ; Mon, 21 Aug 2017 20:31:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42B2C287D4; Mon, 21 Aug 2017 20:31:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 88D9128706 for ; Mon, 21 Aug 2017 20:31:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djtJz-0003pp-AU; Mon, 21 Aug 2017 20:29:15 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djtJx-0003op-8A for xen-devel@lists.xen.org; Mon, 21 Aug 2017 20:29:13 +0000 Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id B2/BB-01712-8924B995; Mon, 21 Aug 2017 20:29:12 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSfUhTURjGd+69267mjeMsfHN94KASSdPIMIL yIyKNPiCoDEvv9OpG2xy7M9YfkSZls5BSmLpFViaVxQrxj2WtD0lNzSyz7IsQMjSRSDcsm1S7 u9Pqv+ec3/O8zznw0qTCI42iOYuZMxlYnUoWSmlWExviatIcWQmvPsckX5looFLQ1va7PmIX2 i/VGtRFllypptLdSRptyyyNrZ+IEvQUKlAoTeFSEjw1F4gKFEIjnA3NLVYkAAU+R4DbNS0VgA LnwYx3QCZoGV4Lzvo+uaAXYCW89rwMBEh8B8HFlilKABF4I4wMDQUCFF4O72oaSEEzOBMcj/u QoAEvhbfPrIH7ELwNeu+dRGJZJkzNuCnRHw5ddcMBTWKAR6OjpJiNhoe+OlIoBmxD8PhnDyWG V4LbNx40LYH23vOUqLfDDdf1YOAVAQPOF5R4KJPDqGdKLrpWwf33pXIRVMuhtvoWIYJMuGZvC 77bCN39dploeiOF5w9cMhEshpmr9UgEHVI409cRfFQufP3tC066ycAN+3bRZJVDk61cdhatsP /zW/s/v72IiCYUw3Omw5wpbk1SvNqkLdSY9axWF5eYkBSv53ieLeR0rJqPzyvSNyP/MhyTSJA LtZbvaEOLaEK1kLnN2bMU89VF+Uc0LK/JMRXrOL4NLaZpFTCpqY4sRbiJK+QsBVqdf6NmMdBh qgVMhoAZ3sjqeW2hiLpRdFQk05XiB1gAmmLDXGx2F/vRkqgIBkkkEkWYkTPpteb/+RiKpJEqg tkijA/TGsxz08f8xYS/OPGETSg2s39RVAlSal+MXPpNVD3JPXtqb/rbArtBnh4xmJRkTj407+ CdfdkFzMcf3wZDVesdsWmNnZP68uzoS46JNT27W5fd+p48fPfD9BdlTsyvGENZTm3x6Uqn48D m1AzvqhEzxpcb1+2xGWK975x296YQ62RVh3L8aEu34bkr3zoxuNPoTTmuwiqK17CJsaSJZ/8A 8qc7L4YDAAA= X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-13.tower-206.messagelabs.com!1503347351!92712392!1 X-Originating-IP: [104.47.2.59] X-SpamReason: No, hits=0.0 required=7.0 tests=UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61796 invoked from network); 21 Aug 2017 20:29:11 -0000 Received: from mail-db5eur01on0059.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.59) by server-13.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Aug 2017 20:29:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=EPAM.onmicrosoft.com; s=selector1-epam-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7Bif6HDinJ71SRyU7ggOwmxjU/t4HgovXktX7kcgkgo=; b=GJuZd/+n0M4s+j5faQIgokhVrrtiGkG6+BP1CufVMxZTB2BugnCMyhUOzm2b1MxfBvcouLV6ZxRUBQQv9NVa9nGh1avKr/EvWZEtpSkj0V5ezyY34Xdl8AMOz+F5e11ORDRqOWz8Owg2E92XIW8HYaBE5h/uLlqWigluS0P0ksU= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.58) by AM4PR0301MB2129.eurprd03.prod.outlook.com (2603:10a6:200:4d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Mon, 21 Aug 2017 20:29:09 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Mon, 21 Aug 2017 23:29:04 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Mon, 21 Aug 2017 23:27:49 +0300 Message-Id: <1503347275-13039-6-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> References: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.58] X-ClientProxiedBy: VI1P190CA0032.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::45) To AM4PR0301MB2129.eurprd03.prod.outlook.com (2603:10a6:200:4d::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9cdf8732-41cb-4512-1272-08d4e8d34720 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM4PR0301MB2129; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2129; 3:xtH2JyWon6ZZxxBgHdi+SBglb8Xxzrn6jrVPvn58EViY3/qXJxMtVsHndJIrWysbOgxCAcmAN23TQTY4RJ2FOfy3I9gWoEwm5bK2lW/ld29hbYkYAR2nm4//MMlkCyFYuNxRuM2WN6U0C2lir6fBIis7mz4QpexuHPEWIvljtKNBelg2vW39A5CHhzxLgBtskuIl4jDbM3ZNjlsc5sKgKnRsKOEDFzKhNSgzKr3/jwHYLUBeAn47DzJaTEnYeMkf; 25:KyxnwwA/JRLplUtYrUrLEMllmmMoQzrvNpgeuljFnwyG2pymNvDX+hvxiWA2HbvewqDjdm4K//n4PXkGD896moRq9pcuB1AI9hYO1q57uZ8u/RiMDckoKyQkWDtJxq+8nlwoYCtlPze58IGGYL1O2yVlFyVIHxbqOHTUmqs2DXguPCcS+mtPEZj7UTcN451pWtwvkSHNlC8bcSgVBZ0k2wm3Q54nMWHqIqdgnIDO/0+oZFXkjo21gSoEs+JO2Z3pJC4s/ym46xDhF7H5nG0vMRc7+5TrREXu+aS5DXScFID845HogV9rYA7/5sfAL/VMO5YirY1xKGnmJaOgcs66tw==; 31:z8+Q994ewyuOjS5SceF2VyNPbmjvCFZNkYpeWCMQShXUvwM734rOiXmXCEZIXNjvyantfpGGrbNYr8/pzioUWaGWLT+6z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VJg== X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(4114951738403); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR0301MB2129; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR0301MB2129; X-Forefront-PRVS: 040655413E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(189002)(199003)(2361001)(50226002)(2351001)(106356001)(122856001)(6666003)(8656003)(5660300001)(966005)(33646002)(54906002)(110136004)(105586002)(107886003)(2906002)(347745004)(80792005)(7350300001)(86362001)(36756003)(97736004)(189998001)(50466002)(8676002)(6116002)(478600001)(6916009)(2950100002)(48376002)(3846002)(42186005)(50986999)(53936002)(76176999)(68736007)(72206003)(101416001)(8666007)(47776003)(5003940100001)(4326008)(66066001)(81166006)(6306002)(7736002)(81156014)(305945005)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB2129; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0301MB2129; 23:l60hcT0yYHrPBZZGy6mzVO3t9z+z3rgiPEYjHyx?= =?us-ascii?Q?3aM7TfEhoX1LSLK406S1DN09PIwg/7a30xDbfnDYRRLzyPR/NkwWxyTP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HPU6cLtZapBOPLiuGa8j2nDwg3QpZi+POi6dyGS2TQmZgM2tLnC8aeTLXtTbOorF8/xf9VsspZlts+vv3dm4W/zcJpwJOQ5riPhGBFoQ/E08BHRgd1mnVnzw1pH4c1nKuoBZZznwGvquhr10h03c2PX/E3BdQqa0KbKnoPbZBz997Aas1D9QfKkTMx9E0c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2017 20:29:09.0266 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB2129 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v4 05/11] arm: add SMCCC protocol definitions. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch adds generic definitions used in ARM SMC call convention. Those definitions was taken from linux header arm-smccc.h, extended and formatted according to XEN coding style. They can be used by both SMCCC clients (like PSCI) and by SMCCC servers (like vPSCI or upcoming generic SMCCC handler). Signed-off-by: Volodymyr Babchuk --- xen/include/asm-arm/smccc.h | 92 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 xen/include/asm-arm/smccc.h diff --git a/xen/include/asm-arm/smccc.h b/xen/include/asm-arm/smccc.h new file mode 100644 index 0000000..67da3fb --- /dev/null +++ b/xen/include/asm-arm/smccc.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2015, Linaro Limited + * Copyright (c) 2017, EPAM Systems + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __ASM_ARM_SMCCC_H__ +#define __ASM_ARM_SMCCC_H__ + +/* + * This file provides common defines for ARM SMC Calling Convention as + * specified in + * http://infocenter.arm.com/help/topic/com.arm.doc.den0028a/index.html + */ + +#define ARM_SMCCC_STD_CALL 0U +#define ARM_SMCCC_FAST_CALL 1U +#define ARM_SMCCC_TYPE_SHIFT 31 + +#define ARM_SMCCC_SMC_32 0U +#define ARM_SMCCC_SMC_64 1U +#define ARM_SMCCC_CALL_CONV_SHIFT 30 + +#define ARM_SMCCC_OWNER_MASK 0x3F +#define ARM_SMCCC_OWNER_SHIFT 24 + +#define ARM_SMCCC_FUNC_MASK 0xFFFF + +/* Check if this is fast call */ +#define ARM_SMCCC_IS_FAST_CALL(smc_val) \ + ((smc_val) & (ARM_SMCCC_FAST_CALL << ARM_SMCCC_TYPE_SHIFT)) + +/* Check if this is 64 bit call */ +#define ARM_SMCCC_IS_64(smc_val) \ + ((smc_val) & (ARM_SMCCC_SMC_64 << ARM_SMCCC_CALL_CONV_SHIFT)) + +/* Get function number from function identifier */ +#define ARM_SMCCC_FUNC_NUM(smc_val) ((smc_val) & ARM_SMCCC_FUNC_MASK) + +/* Get service owner number from function identifier */ +#define ARM_SMCCC_OWNER_NUM(smc_val) \ + (((smc_val) >> ARM_SMCCC_OWNER_SHIFT) & ARM_SMCCC_OWNER_MASK) + +/* + * Construct function identifier from call type (fast or standard), + * calling convention (32 or 64 bit), service owner and function number + */ +#define ARM_SMCCC_CALL_VAL(type, calling_convention, owner, func_num) \ + (((type) << ARM_SMCCC_TYPE_SHIFT) | \ + ((calling_convention) << ARM_SMCCC_CALL_CONV_SHIFT) | \ + (((owner) & ARM_SMCCC_OWNER_MASK) << ARM_SMCCC_OWNER_SHIFT) | \ + ((func_num) & ARM_SMCCC_FUNC_MASK)) + +/* List of known service owners */ +#define ARM_SMCCC_OWNER_ARCH 0 +#define ARM_SMCCC_OWNER_CPU 1 +#define ARM_SMCCC_OWNER_SIP 2 +#define ARM_SMCCC_OWNER_OEM 3 +#define ARM_SMCCC_OWNER_STANDARD 4 +#define ARM_SMCCC_OWNER_HYPERVISOR 5 +#define ARM_SMCCC_OWNER_TRUSTED_APP 48 +#define ARM_SMCCC_OWNER_TRUSTED_APP_END 49 +#define ARM_SMCCC_OWNER_TRUSTED_OS 50 +#define ARM_SMCCC_OWNER_TRUSTED_OS_END 63 + +/* List of generic function numbers */ +#define ARM_SMCCC_FUNC_CALL_COUNT 0xFF00 +#define ARM_SMCCC_FUNC_CALL_UID 0xFF01 +#define ARM_SMCCC_FUNC_CALL_REVISION 0xFF03 + +/* Only one error code defined in SMCCC */ +#define ARM_SMCCC_ERR_UNKNOWN_FUNCTION (-1) + +#endif /* __ASM_ARM_SMCCC_H__ */ + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End:b + */