Message ID | 1507923164-12796-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 18698602B3 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 19:36:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B1512913F for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 19:36:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAC8729148; Fri, 13 Oct 2017 19:36: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 82C892913F for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 19:36:40 +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=IsIPAMe0JYxwWF aklFGMd7WjMKCYFIuiuJYpYibMyH8iZsrP9pyw3Qr4RpNbXGtvpu+YZ4AaAGKpD2HkfSXIaliZTVs dVHDmtfRCAEYb91Y8OQnWcygMlSFubf2F6JK+D+czHE15mNE/DreKsoBBosviLj56vtaKdzcVdhsi 0ZlavlUCEuheDqiyc55Xp2virHKQUSi+Dvd5HlmCKzzk+GbY6LoAyxbpfnQmEqirNagmwERDAx6Ra VSOUSmc5M9V/R6ao3uqi3YFtHl8kCE5WFGJLvYZ+SHbjbSAz3a/WGdq4pIWdv8IICIV9aRRNPIcWo Np795frYAyyQLh7pHz6A==; 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 1e35l4-0001qb-MV; Fri, 13 Oct 2017 19:36:34 +0000 Received: from mail-eopbgr30083.outbound.protection.outlook.com ([40.107.3.83] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e35jM-0006z8-5e for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 19:35:12 +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=VQVO71P1MXiqo/1bc/IAg4akcnJ12WxYL/RWB3ZcPFA=; b=XMciqPNgGaS+a7d8obrkrGPdXAdyg8o+AUGJO6x5thHL8Z+BXUXyYJhWTX0vxtmGxksqdRfuYzGF4JE9f/M09uVu5JvxS+lNXkow0WhSHh5oK+S5dt3moDOCFYCU9ZVrE4Jh0iIu1S6nVudD8Tc0evnfXswlZXDlUDCPZXNxhjE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.52) by AM4PR0301MB2130.eurprd03.prod.outlook.com (2603:10a6:200:4d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 19:34:18 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Fri, 13 Oct 2017 22:34:12 +0300 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: [PATCH v1 10/14] tee: optee: store OP-TEE capabilities in private data Date: Fri, 13 Oct 2017 22:32:40 +0300 Message-Id: <1507923164-12796-11-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507923164-12796-1-git-send-email-volodymyr_babchuk@epam.com> References: <1506621851-6929-1-git-send-email-volodymyr_babchuk@epam.com> <1507923164-12796-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.52] X-ClientProxiedBy: HE1PR0402CA0042.eurprd04.prod.outlook.com (2603:10a6:7:7c::31) To AM4PR0301MB2130.eurprd03.prod.outlook.com (2603:10a6:200:4d::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67f5dcf9-50f0-4a37-f15a-08d512716629 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:AM4PR0301MB2130; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2130; 3:2gyrGVZv+k8jivesqLQ56MNqLOiJg4R5oANMo4qDLW7koPP4ny6garfbGG08G/UmXQ3DT+LfXxYWDRDwk+y/3dwrhu/mLvbcJvIO494kTOdyMFUTc++HFAtWcCQTGzQcf5/C1o3AWOF+qWaAfZAL7sIQiNOlJd9cNanR8Dzw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FfBXxrfJcTJwQDql53QsKQ25A+CMuwgylJjhhy93Zl2rCkjxcLTWaYrOj+WeSGYax6fJWSqa+WMk3RHZuPV50gc/ZeBNB6R3fLuT1n26UfikdFyX/Cpq4E8WcRA8fC86ZjPa856bfTDqJdtzwK/BQvN0GR04vMQBrDSZUZCGopXB; 4:pI6zhTco7Nx7Kf9Hbphf4pjL46DWWH6+Nfw8KAns2jCrV+2gGirXlAzH2hs165vpDptVHm0EjYMXp2ybCY2plCG4sVIpVP5+RxarBtu2s0iMJ7Sv/zZ7V7MY4oLoQzCR54IGnRSijEZ69NGjGyeIVdy2bGFVyNonDKgMKkZO4kaC8lBJ84yd8XFjOYjFq/aGZpPeMdzkDRJVCRCY9bZEtFG++LxVBYMi7a0ucDFx4/YsAJtqSxF4Yokrukirp0ER X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <AM4PR0301MB2130DBF6695E51F5E51AEE64E6480@AM4PR0301MB2130.eurprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR0301MB2130; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR0301MB2130; X-Forefront-PRVS: 04599F3534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(189002)(2950100002)(66066001)(6916009)(47776003)(106356001)(105586002)(42186006)(33646002)(6116002)(316002)(16586007)(478600001)(72206003)(189998001)(80792005)(5003940100001)(3846002)(97736004)(6666003)(101416001)(4326008)(2906002)(50226002)(50986999)(48376002)(107886003)(53936002)(39060400002)(68736007)(76176999)(86362001)(36756003)(5660300001)(81166006)(8936002)(81156014)(50466002)(8676002)(305945005)(7736002)(122856001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB2130; 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; AM4PR0301MB2130; 23:aS1+MacpuQ+b8yVRQc0wruFt0SUgygSucmgSllq?= =?us-ascii?Q?yZ+G6E5I6JYCqVHJaVqXCxVU2l7eaYyMEcP/62J+xNay47r9nROxufH/UM3I?= =?us-ascii?Q?/BaqgrbHwMtf6dKAxGjiISGLsxfycZzWbFyrNGPX9j+mdsNjvb6KqksWnkSa?= =?us-ascii?Q?wTMtWjXfUAzOnKppDSLqgJgNDdrqNhlb73np7W3Z+82+ryNJldp/o9FCzIfx?= =?us-ascii?Q?DImZwiJ+oWoqFLGSxUn/0k70aVd6AOofBhA0tqhmvT7QYRwEWhg3LESLD8va?= =?us-ascii?Q?TbM2VPtVwSeq4LJ/EeI9GCkHveSPE55OgJm2w5tQUMzsUamtN2XnEyjuju7j?= =?us-ascii?Q?hPp2qvXUPYcby48iOxKOP23eirutlHJUtgSpekBesVItf7qok5hbKxUy7SBw?= =?us-ascii?Q?Va8Ay2wa/Ra/e7LrhvvzkNmDUsMy912MZqQWBP9BpdxGNw/rgI18qdk75Pok?= =?us-ascii?Q?QyGLIXuJlS52tT3XplBvyyRcBj0VnKwXxn8pnNhkxv/C9F9JwqUYxHv+SYRn?= =?us-ascii?Q?5skZbiBKUC7LESCkyGQCR6Fp2fDDVH+3nlRSU49GsW/1iqOkGMUe9cPfK7Lr?= =?us-ascii?Q?1mjg99zeAqITlVwG+1AUzJ6LtWCIBatGjklQetPdk9t0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ZAj52NDoA9q3ULzigkkeJ0+xrUihntZiEiY4C6N9QjiZ9gw5vhaUnjsx9+iYDCGHku6CWggCzdYMEiH79qRzk8g/A0=; 24:mGsvwwi/UjpKvb+IltQ4ec+ZqZrZUwJD6kDXcS4MXPZfLxdT2JGkFd0/AQdtYWxDL0ph57ZmTq6ZyXXuE6CvYEv2n03fiQVygg01xFAHZbA=; 7:7WnE9uPAiH7FXmqhXMIbOlgmLvQlRNf8vd+DT85S1mp6thKCMdm/HCs94rWyShmCJTj87/P/dEo5QgeqYM3HlKHTua6rb6IxeDVsK83qFPMpsLeQMoVAvTZwv/Mp9+F/iew4hWZ8sbgF5cjORePxwbVlFEqokGNQELzcmsxM69CuoyqryCqD9etSUfKP7i4KFl7uQ9wGqxTukgUMEJNKW+IezExypxm8wWurbi+L+ic= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 19:34:18.9609 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB2130 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171013_123448_568436_C06E124B X-CRM114-Status: UNSURE ( 8.73 ) 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 {