Received: by 10.223.164.202 with SMTP id h10csp4692868wrb; Wed, 29 Nov 2017 10:15:59 -0800 (PST) X-Google-Smtp-Source: AGs4zMa4oQD6l/bfY0ETKp1ZPJI7gy5Uc/9TmzuWiWP6i4Sj02scPsL/stcSkOHdrC7K54bEXRn9 X-Received: by 10.101.101.12 with SMTP id x12mr3617534pgv.420.1511979359509; Wed, 29 Nov 2017 10:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511979359; cv=none; d=google.com; s=arc-20160816; b=tew1TSq+V6qHX55zX+GxPgiGGYZXp0cPKzl6inj8Ul0WSjJKLKz4BZDTrXApQA14nU /KLzkVFXp8LE2mfHbT9hGN6nSCH0eK8zIRe0179hpKT5/BJqdqgJkxulpGUQqGpnTOHK dt/20IFRXKvV1W8fkvJkmO8ugRwKt1Gtah+Oraicp1ciwUCOQLdM1v+rTN9TL3RHfnPi 6ArGAJEahz4NkItezjHvSwdG94sRsdUJktbmxFIgQzP8hc5JYqiDN27yut9mNCS5649b KD3B+Hr+KwOCrPBlGKWJYkkDDWz/1b54CgVga4Pr0jw8shQyl/fdR/MMW9Y15K5QC95y eMSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=VQVO71P1MXiqo/1bc/IAg4akcnJ12WxYL/RWB3ZcPFA=; b=lzfOOtSzaZwB6rFNtwINVTbG2mCin6RMBuR+t5TrHYNLl5W4Ci4tsvxLCu4XwMGm0O nZJCkIB0R9diDBuSprwrY5/aCMaE9ch5pXQZAFrGSrf8g7X8LtgcmHfDZzBg5HgxJss3 SKJxfzstvk9s0qr5mfifyHr122eL4klKSLZ/hBzt3hF9p/7IPhfE7LnPmr64m43mUkC+ SSCXHDBW5Bm4+IdA53V762kK2V8aVFi6p1JH76k5s0kKUpZSIRHAtyPdjIZFuJBiE1jd oJnJT9mhWr/2Db/k9UUiVBJlTs30IsiqVcO/mRpDSb6fVMGk8mvoQ8M7sO1upxtn2Meg IG2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@epam.com header.s=selector1 header.b=U4sTywWJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si1590156pgq.366.2017.11.29.10.15.49; Wed, 29 Nov 2017 10:15:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@epam.com header.s=selector1 header.b=U4sTywWJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932631AbdK2Mt5 (ORCPT + 70 others); Wed, 29 Nov 2017 07:49:57 -0500 Received: from mail-eopbgr30047.outbound.protection.outlook.com ([40.107.3.47]:3936 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932621AbdK2Mtx (ORCPT ); Wed, 29 Nov 2017 07:49:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VQVO71P1MXiqo/1bc/IAg4akcnJ12WxYL/RWB3ZcPFA=; b=U4sTywWJP0AZWFTOL2XvzD/F7p8UQO33gwNRVs/i2Z01KR5FW4bzQPZH7J0p5HjhS2hnsBkJGILHZxuiIec/mjNoat2sWJ/00xkfYiVp/qfeR49tHUhh8LJ0kWWGB83aUKLM+l4JsX81HVq0TqEcXRcb0V3LBziEHTnfA3L4/TU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by VI1PR03MB1775.eurprd03.prod.outlook.com (2a01:111:e400:7bdd::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 29 Nov 2017 12:49:49 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Wed, 29 Nov 2017 14:49:46 +0200 From: Volodymyr Babchuk To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org, Jens Wiklander Cc: Volodymyr Babchuk , volodymyr_babchuk@epam.com Subject: [RESEND PATCH v2 10/14] tee: optee: store OP-TEE capabilities in private data Date: Wed, 29 Nov 2017 14:48:34 +0200 Message-Id: <1511959718-5421-11-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511959718-5421-1-git-send-email-volodymyr_babchuk@epam.com> References: <1507923164-12796-1-git-send-email-volodymyr_babchuk@epam.com> <1511959718-5421-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: AM5PR0102CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:206::14) To VI1PR03MB1775.eurprd03.prod.outlook.com (2a01:111:e400:7bdd::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f3bdb06-3572-49ca-be8d-08d53727adc4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(2017052603270);SRVR:VI1PR03MB1775; X-Microsoft-Exchange-Diagnostics: 1;VI1PR03MB1775;3:0bVraKtY13jeqweU3bg8tWqOWgSe9An8L0xofgvcvdJpKgtg02UuF1pJor8/2ttmsPHKwoDuCRRlYT6P4iaDf5rk6iD+Qdk2ZfDt4SHZTesJ/VrWr74Xq2nhWYCioRvjs1PZb5Zc/gWTiUmhy9lLDebTRB57ZamMlFr+O552Ul8EpPjgWamTTu52d816jidyls18JWnv2yb43WbG6eo47uGro3ZWQleGMxURf+mFsbhm0jiOnGWX1QJwgJhBlVH0;25:8KTemkABEjrxrfAomm+hQNdbEbChmvRGYp7oW4IuwoNCbD1KzYFYYnYRftWa6nCopajlKaboFfbtWq92i1Mv150nd6T4bst43gLw1eiZi6sFOeexl5gHWTcysOgpW7meV757qM+Z2FB3JO76YtcBNJj0KKTmKEe4sirufDlEDR6Cv8qy1J6nemGGT4reRDdBDQsjX6VqZVG59A8P5q+dtgyalEF2at8aKWPSor2qA3rh0PbQcHBtQXYRBJm1hYV5LNwA5rQO35DxowyqkyJcGsrMvUHJQASkqYc3PjPHrVC8tvZ3orXLJoS+xPdM1aCYL4Cagrn2KPtQtDE2i5elYyP8llD682nj0AgaCZgW/d4=;31:3w2nI+A0gdz0bEsEczjsJYL3d4OJVMIT3i36mBiT6B5/IqblNHjdt3nXt6GliWsbraZ96Qq5Bea5Us+/3/otMLec5MS9f4mMLUCvTWs34VuMO20GwMltdjZvgbekQPdzgfeHhXJS/QcBxLKghw+R0ouDaiE1A13EvPje1wNKegxO9VT2daVSWztse0RHgnfwmSHHqiMcje3l0slKrkVlkY9FLvM06nfG7wEzzePWqSY= X-MS-TrafficTypeDiagnostic: VI1PR03MB1775: X-Microsoft-Exchange-Diagnostics: 1;VI1PR03MB1775;20:VkYwNLy01hb612ALQ4eIBuucgeRanWFzdEjUSpuwmTFyZhA/5Z+QUPv0KKjKbAVjwqCdzpXNZMXfedyOj0u1SBRwsqg1hzm/JZb0AQexQftQ03NqfIzzXntcoMWFhIdW+sQA9JwzIF0U7i4uggNHPqXWbs+x2xyB0eLBCN7mt69F2ngY5h+PjQ5xF87K14WfLwc+YLg/8ALicp8w8lJIWXR8A4RIJwGiUqe2FHOQnF8XqhEWyxEbUA/71SDHQxWsR+SHkakmxh+bS7Hk4MFbQ8T6XaxXAEnyeyevkmU4NG5/bw49jsBVkVDSZmyZC88zHiZ8RxqsqSl5XBzeIOwSH5WqtmQfBPZQbTkmCIhV/JCtGNOqbCEL+ycMRHAPQGeC8K/IU434WRR2GZ9CccAp0dgu0JM1aQ8El7uqQE9oc4PPspeJOXs/p+qZZlsWb1lfS6LeRWbSNLHeUuvmC8fr+e8RKQ+QEVN6exC6qkvVfQKDUiUQXYbxv+Q3WEKIDegN;4:5Em7U5fGDkxZdFaVAAsOCfgOUgNAvEsRCqQvbGDIu+tKHznUbOiqYK1i5kh6Ttwwr1gs8s9TYBUujmqrq84+UHBuTng+LAGT2uJJhnLFCSTXwOmAPVVlm0DPe4d3ZPDbJ/+z3mXsIlAxoR2LBs4Nfjy0fq9Ti9qHzY9IK4kYGTpy5neXWnYyHdJOyYfuK9fM/bgR2hjAAfMrS/ECxEdKL1Uf5KqR8PBnoCHdZFmrj+MlV3dJnLJKxkjlgUHlM+MRtOWnjtu8uoB899SE6oK2Xg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231022)(6041248)(20161123558100)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:VI1PR03MB1775;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR03MB1775; X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(366004)(376002)(346002)(199003)(189002)(106356001)(105586002)(107886003)(101416001)(72206003)(6916009)(2950100002)(6666003)(5660300001)(76176999)(50986999)(39060400002)(4326008)(6116002)(3846002)(478600001)(50226002)(50466002)(8936002)(48376002)(122856001)(2906002)(68736007)(36756003)(55236003)(66066001)(189998001)(53936002)(47776003)(7736002)(81166006)(305945005)(33646002)(97736004)(42186006)(80792005)(16586007)(316002)(86362001)(8676002)(81156014)(52116002)(51416003)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR03MB1775;H:EPUAKYIW2556.kyiv.epam.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX: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;VI1PR03MB1775;23:Vfyik4etthHeAOXL3x/KlSZOdgde4QY3axmoSurxj?= =?us-ascii?Q?wwVLac20D670XD6q0+zEkrIIKm6uraLOQztleNvSKfcMqFvKYxxiR525CMQF?= =?us-ascii?Q?WK6WZyg1ktYs5LWjukLmNwOJD18pss6BmUWtTKR3dYuqzUUiTPDgcwt7bebO?= =?us-ascii?Q?kBpb0XvSOKjdXoP+qOsri0u2BeaA0hPVnDmnoleFZMzOZ4E6+nnpzQP9UkHK?= =?us-ascii?Q?Eo+YlCPL9cwu1tifnxOHbvjY3xBeka1xx5xLWlHAcS+AiUifAqmV3PnuOoM7?= =?us-ascii?Q?9F7nGAw+QQVTlSnt0kUpkQ91o1iJGJFNnF5RcHW1zj/3KtU0uRUqYG96kYxN?= =?us-ascii?Q?jDwbNy275Mn4W/QSMDwNJozdk8pBUjR/NVnI1GYrS15WKhFreJ5YqGJsJHb0?= =?us-ascii?Q?6LbYD5EdfU3xMhFY9GIh/8oozHcfCCd2rr2wCCXLMB/CQX2TiDVbx9vKv8kV?= =?us-ascii?Q?Qrfn+PPXBzE4ffFf/8JifjDcvcK1gIfsvYVJHt0rE63MmPXpHitxQxzqf79N?= =?us-ascii?Q?F6QoV/oK8ol9xNTo060S3SKH0+Xqk6q8uxet+yls7WU1fBAGtvNK/5E87HHU?= =?us-ascii?Q?qIoMVU89e3kDbLyE9Qx3nO46mriMklDxehflEw+05iFCIx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sVNXk=;5:VyhMPFM/Uy9N0nkG3TlW2Z04+1B+GMpN6vRMtMz7AVM7RfY+IH4V7CNSgONUhsKAdC//KKSPb+o4Eeq4Ii9d8JMuqN+6kXFu6b5anRbpGms8Y4Mvocvj4vllMXNkGnaMDbFIQ7cjp1KhvYznSJMJp2jNwJc6OKAsAE62VhjENAM=;24:3pJc2DjWFDBhZe+Q/NCvvyYsYw9o9cCPBtsm6cl2tTxoqEzj84z4S0lbYgJBYWTXfxKPsW+yZeChYMVg4whTc5wTvbUkMlvlhPqVJonwC8E=;7:GQntbpL9emG3e86NsGA7ipQAq/v76oMm5ljRBe4ZkQm4K6K2SkM8Hc1rundYkxuNuaGm3hWv88nE/CtgGb3TnDaR+MpvIrcxjoYzt7A0bO9eI+PUad7rFTSueUoFWQfHe/Eip29+hcgivRbf0ayaX4NtcXEXJMJlQHm2bYsl+4GXKZnbfGZxMmyP+EsayBvO2Nzit9Uyp+T7kCAsKMqqTrMYP/atfJXDQ3FH0gWnkC0fNuS+4Mb/0p5j7MsM+xgO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 12:49:49.6085 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f3bdb06-3572-49ca-be8d-08d53727adc4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB1775 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Volodymyr Babchuk Those capabilities will be used in subsequent patches. Signed-off-by: Volodymyr Babchuk --- drivers/tee/optee/core.c | 1 + drivers/tee/optee/optee_private.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index d22433c..dbe5a61 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -545,6 +545,7 @@ static struct optee *optee_probe(struct device_node *np) } optee->invoke_fn = invoke_fn; + optee->sec_caps = sec_caps; teedev = tee_device_alloc(&optee_desc, NULL, pool, optee); if (IS_ERR(teedev)) { diff --git a/drivers/tee/optee/optee_private.h b/drivers/tee/optee/optee_private.h index 61a0052..de7962e 100644 --- a/drivers/tee/optee/optee_private.h +++ b/drivers/tee/optee/optee_private.h @@ -96,6 +96,8 @@ struct optee_supp { * @supp: supplicant synchronization struct for RPC to supplicant * @pool: shared memory pool * @memremaped_shm virtual address of memory in shared memory pool + * @sec_caps: secure world capabilities defined by + * OPTEE_SMC_SEC_CAP_* in optee_smc.h */ struct optee { struct tee_device *supp_teedev; @@ -106,6 +108,7 @@ struct optee { struct optee_supp supp; struct tee_shm_pool *pool; void *memremaped_shm; + u32 sec_caps; }; struct optee_session { -- 2.7.4 From 1581172296872689064@xxx Fri Oct 13 19:36:49 +0000 2017 X-GM-THRID: 1579807684427921904 X-Gmail-Labels: Inbox,Category Forums