Message ID | 1511959718-5421-11-git-send-email-volodymyr_babchuk@epam.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 1D63C60234 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 13:13:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1230A29802 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 13:13:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05CEC29808; Wed, 29 Nov 2017 13:13:40 +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.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7AD4229802 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 13:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=G1hRYet7CeS1OwDZHa+lC07CwqUCYWzU7mrajL0hfL0=; b=nCk4l0MrprCIM6 vc4iQQYsTmEFoREONtar1WgOCTSwCzP4WoWZ+H8BrUyh2EAfHr+UJmH3CWWCmbNuNL/vrh6Vea4MT gGr+r4OsntQdBmb+IAB9I6Lcas62pWbG64/FFZWtnWjETvj6GDNTS4jEdZP1Em3lmgmt9VXTB2x7+ JXnL/X8OsLUsbNHkRiIo/JKdwjtrrVYHZEIj8/LFNKtMrX2gn7A0fYhKcRXkikhdK1ZUY8pzoafAA cUS/pPNK1xPDyt95hmqlc7XsVcdIJajlvpSp7g577OjVg7bQ2h46zOgVY5oIb7X25RPw7gfQ+DRaq 4j8BjRt0Na5OsbXOOEbw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eK2BG-0000xT-Ba; Wed, 29 Nov 2017 13:13:38 +0000 Received: from mail-eopbgr30053.outbound.protection.outlook.com ([40.107.3.53] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eK1oc-0004TF-JZ for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 12:50:22 +0000 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 <volodymyr_babchuk@epam.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org, Jens Wiklander <jens.wiklander@linaro.org> 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 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: <VI1PR03MB1775A2B82FA6F3437BDBE424E63B0@VI1PR03MB1775.eurprd03.prod.outlook.com> 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+05iFCIx1+LY8LJv//1UO7?= =?us-ascii?Q?vE3J2qxB4Bxbnksge1e/5NLY/RS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AVM7RfY+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_045015_785176_C54E561A X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Volodymyr Babchuk <vlad.babchuk@gmail.com>, volodymyr_babchuk@epam.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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 {