From patchwork Tue Mar 9 08:11:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rijo Thomas X-Patchwork-Id: 12124331 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBB01C43381 for ; Tue, 9 Mar 2021 08:13:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B2BF2652AB for ; Tue, 9 Mar 2021 08:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbhCIIM2 (ORCPT ); Tue, 9 Mar 2021 03:12:28 -0500 Received: from mail-co1nam11on2072.outbound.protection.outlook.com ([40.107.220.72]:56608 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229481AbhCIILx (ORCPT ); Tue, 9 Mar 2021 03:11:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j0+7jaKSzW0yyDe5vzpINpJUd/PkYcvDSjQMX9X9xY9qDp7LBlN8mfdXhRXtsZZwNNWPwZ1s6oYemM/a7wHT5T01sbO/y0M5tjQYrqNvyBfisvZIU+twCt4BKv927wrRM5hSKQ3Tl1pzVZa2eA3YvQsaEBT3MgQZVKrFVAcH3EyH6/KCkgGbOvNPsyCAbVVTqHYF8fMyvbEJe2Sr+PmWZqqzFJKMaz/Tz+MwiIc9NaqH/ZcFdk1ruh28tuNk1/LWOkNYX3IYLHXebF0SRvVCa+xraRDO4naxvPYfyTQzty3N9jnWX/ojLJ6/LzVDoFAPedjczT/wqVjyY+dUV6XyrA== 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=NvjwnCt2abTdauRa/uML1N1ktrM1KajkJKGSQnq0ZoI=; b=HGZmmakeL5wsx5jR18CbxJt87cBTNNbwoh2L0l1GHPDTE21fmToyO08iRwMCXa7WJ6iHvdkdRhVsqvfzUNDBEP9YChP2Xm04A4qhnKXj9KfPi29NCKYDR1ifVhoMeNr/+gaoxHUIy5JpjknOQ0499A5joZFHU3LVKuqo2PuZH5hD3S413rPjT104sneDpfp/k1NIcIFzA9UF521lPCB5k2wBEQfGQQAxccj8bTbUnEz4U5rXGUky0j6C7unVth4KKib9usSt1qVFFxnMLk5Tc2j2+pv6eWZ1JpUK3dQifEblIiuaPEhXo3dmitsDPCgbTuL2b3BZzSSuc1ERPpARDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NvjwnCt2abTdauRa/uML1N1ktrM1KajkJKGSQnq0ZoI=; b=f/FvGjDjB9b+YuTffnfOv/CDJxjDVkOSIbnDuYDfV2GW9s7ZD8G58nNF/NISP7C8q/VQi8gH30nGbuBwO2+JS5Bhj4XcpG/V5D/2QExTj9QveKGSVMoD8AE9SdkiUDQeBlt1ZmdvdTkntrk3l1PL+RMLaaCZb2C3/sxn8Puc9Vo= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) by SA0PR12MB4397.namprd12.prod.outlook.com (2603:10b6:806:93::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Tue, 9 Mar 2021 08:11:49 +0000 Received: from SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::c32:245b:4812:ee03]) by SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::c32:245b:4812:ee03%3]) with mapi id 15.20.3912.027; Tue, 9 Mar 2021 08:11:49 +0000 From: Rijo Thomas To: Tom Lendacky , John Allen , Herbert Xu , "David S . Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: Rijo Thomas , Mythri Pandeshwara krishna , Devaraj Rangasamy , Jens Wiklander , Ard Biesheuvel Subject: [PATCH 1/3] crypto: ccp - reduce tee command status polling interval from 5ms to 1ms Date: Tue, 9 Mar 2021 13:41:11 +0530 Message-Id: <5cc883bc9bf3ed88056f87ecae1a4e28a52adfe8.1615276206.git.Rijo-john.Thomas@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::30) To SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from andbang6.amd.com (165.204.156.251) by MA1PR0101CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Tue, 9 Mar 2021 08:11:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2fe53886-7949-47eb-f5d4-08d8e2d2fd2b X-MS-TrafficTypeDiagnostic: SA0PR12MB4397: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VVJCv2xYTtFxZk8mK5TGyWWTe8KdYvTpFP8U4rTtF4oWx8Sjr6/VK+wlAVXU2VyB3a/HqnEvAsE2NYA2ZKGqbZAzF79hULzGjS4ReB/0kebEvKyjUh/ZfEmbbbPUNCKSRzcogNzfmsQUTE5mlcFr3jr04o6xLzMUJxq5m2V3HPmEVEJfIErjuRd/VC0kYak5GYK69b6lOVlOTfBahun8ixbZOePs9DCDYM67TZOATr7n59jF8vrXhnHMLnD98aqkOuPtOmOY7i2GKBKOUVZZFO38UtxEUogGDk67+eA7QH5gf2d80s10VqbUYyr6Z+PpBe8NmdKW3hGJIoz9g+cjh5gQAIOqeUnLwdj//oBK33j+mexIoER+SVMPbYFA7/mTYAPVUn97VBQU54KMkpV3mhghKqHM8lYH+3LR1APKU+rsk+ItPYafcjsIB0Cc+VL2+t5Pgas+g9rsrH69SAsXCSTnZ8a6Go2HgVENczLhvDM2kyZcEw6R2yJUdLaMm1TbuXCCHwo8byXdSM4LwlFwfw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB4719.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(346002)(396003)(39860400002)(136003)(66476007)(8936002)(5660300002)(4326008)(66556008)(2616005)(956004)(316002)(54906003)(26005)(2906002)(6666004)(8676002)(110136005)(6486002)(83380400001)(66946007)(36756003)(86362001)(186003)(478600001)(16526019)(52116002)(7696005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ddR1vlnRUmgkLYEfPIGSu3l6MdjRaXGJmTEBDAjPOhQk4EpqkqnmvdQLIsXvBjFpD6vIZvmduW5JoBujUeh8jtXHThyGRcNAAUVo58tfWBzJTsUaKuO/7HldB+fkbM2OqPWQPJNXzkT1snQCsY4SxTuk0Wx0EhlQpq1yeuviRGvrA+fpTvhh2QVIk7Xfcje8nz9Uo1Y9qlIUQvxAdKmEs7qEWXvGxojD5QSTI/VG20aYgfC8oqa4k8Oyg0ZBMUN6pC8dxMOJFlYhhQnbYLShmlQjgIWofRdT+pB6yIloajCtOLEmFvGulzUL9d2Y/HOfTxn7YIWxaT9VLydKPujmtKiqdlQpRDN68LmANDjpuP3NKT9jaNbtbLZyqxt0djpVYutjDNB4mc7wb4UTT6LlSi5qqAMUakc3Ne9VmAZ4B932frb0B31/grrkICWuIw/q1wiuai5B6nBRKN/7XcJIE5nGUK8iQKjv1840Iy2zG5sgeM/E5Jmyp+/BAj93DfoOy77slIEsC0TOJnQ7XozjTsT6FIexYifJViT7MW3okicVcROGfyDCyLoxo7Yp5oAaiDAU5/LB4VekmCnSHbnkA5VnR4wnB90VMJPwSpztCmBsvjx5CWPkN2c8JGr6iKuRFoBnfi6TTQ46Gml2UTz+D5sOAaZ6waeGOnkbiRbztnAiqYcLX+crY7/zmISmcFcwYJsKc/7Ea99XOVoz8b84dVLhqN7tv1ACme6z4qKOZHh8z9J8a40klYcYxJ77OJ2yLg9uOrKxKmYxW9dGST+VVSsf70ZhcM0mNL02VUZsvGqPBiCjn6ITwaEwPwMXW/rLg9BMVxqv9vySJTmLrn6K2no/v/ztTxBiwhDhCnqcpHF6YKnjJx+821Gfs+Dmx0idrOaLB0U/4vN8x1medoDdiONgz79smmiEQZg3duy86kkbOJppCx7yFQHy/j0dcXaZS3r6dTzb/y6L38wohfyXS0LS29i1BXu4R59LhpSkw+FBi1zjRmFSKDR2yhiVGxSLfHFkghvwd2DVJBYqalNXDbk4Ue7i4XJkEFXY/4/LUUurhdxyvdvT5bfnW+u5IlZujGSRVOMZI6pHt42dpwUwbGZu8xIir9cxosw1HVkUiWxZKWlbK1LZIKCHmbK/g3YFAJe8Vfo2HfP5Vn+pqN4LwI/s2LnK1EYKurxBxRU9RnmfZgY8ogDNE0r2EkZ4Aj4qIAD4Vp8b+rjD4J191D79EvwfEvh4sRQE1qsFTu87m4996ChOqH0r3DWJAyH5fe8dVntBGN4kDLCyR8HX4QlwfEpWh0nq6/4xIoDL4rZdKMcI8265M5CIT6l6ZodYcIEw X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fe53886-7949-47eb-f5d4-08d8e2d2fd2b X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4719.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2021 08:11:49.5798 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DgRIndQ+mHjAskdyxqPYGPBRKSue61NVCeyBq2QGkvAG02xbkSUSg00ckcjFZMRYuI2R9hnetVjhXqEWpdnscQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4397 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The PSP TEE device driver polls the command status variable every 5ms to check for command completion. Reduce this time to 1ms so that there is an improvement in driver response time to clients which submit TEE commands. Reviewed-by: Devaraj Rangasamy Signed-off-by: Rijo Thomas --- drivers/crypto/ccp/tee-dev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/ccp/tee-dev.c b/drivers/crypto/ccp/tee-dev.c index 5e697a90ea7f..fe18a92d51ad 100644 --- a/drivers/crypto/ccp/tee-dev.c +++ b/drivers/crypto/ccp/tee-dev.c @@ -309,14 +309,14 @@ static int tee_wait_cmd_completion(struct psp_tee_device *tee, struct tee_ring_cmd *resp, unsigned int timeout) { - /* ~5ms sleep per loop => nloop = timeout * 200 */ - int nloop = timeout * 200; + /* ~1ms sleep per loop => nloop = timeout * 1000 */ + int nloop = timeout * 1000; while (--nloop) { if (resp->cmd_state == TEE_CMD_STATE_COMPLETED) return 0; - usleep_range(5000, 5100); + usleep_range(1000, 1100); } dev_err(tee->dev, "tee: command 0x%x timed out, disabling PSP\n", From patchwork Tue Mar 9 08:11:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rijo Thomas X-Patchwork-Id: 12124327 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8EBAC433E6 for ; Tue, 9 Mar 2021 08:13:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 89F68652B2 for ; Tue, 9 Mar 2021 08:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbhCIIM2 (ORCPT ); Tue, 9 Mar 2021 03:12:28 -0500 Received: from mail-co1nam11on2085.outbound.protection.outlook.com ([40.107.220.85]:10145 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229495AbhCIILz (ORCPT ); Tue, 9 Mar 2021 03:11:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n958C4z7UY73+daJHKXr0zkk4QDImeIEmfliKFdjvgR7eTFxODtF1NjsIJkZbjH34fx8WEJvjbjdszDs5eSLT2LPy0l+yhMVoCHabw97b9qqljTzLZFfONzkLjzu3dHvyv9vvF0ecNNxqh+e1Hwt491W/ylu7MwDqDeLM1QUiDDiH/Nx4elLNzlgnJP5yCr1mc1IJfhVU2PhCZnCHH2saGAgpZ7EENg7oYUR7w34IentcsyEl+sa4IG+7KPh3SSpfRYHfEyr0P4ZYL2cNW70TRQ5Txc9ctTQy2gJ0RovrEEwYH8ujTAn8IiRQsgkZUXpcZ+GTfx8ePIR5KhEJs8EIw== 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=4nkk+qdW11f0f4aSsFCWK9rI3hsy5kHayc8Qs0kBNQs=; b=d4qTnLSTCVnbQH558/E/ap3il1y2EKP63NgtNEgsFh6FfDShdvcx+aqdG2ad7nKg4VIgGHXWiJEH2xS5QEkPUnV1dKyZRNGMwH6cS/z29QE91jyCTAkWl2Oc2dD31mmIsJfKkPW5OaTDp0BIMN79I9C+Y5cyNyRQCeQmTlezowrlAzfUIaLAj5YeRXoOzI2XwL+GDFuzzND5SwqnmM1TxHT4fDjEszBKiig0K2XDE5ws+6Lxf2fiJpiOpbiNgyQr+/5ko7Nn0bLsofQg+3Gu2qRBuy9DiVYMJd7Sbn06efmW/LZz9scTiOsKtWd+Jwi5zRaQoESUMoVCCmNoHa3j8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4nkk+qdW11f0f4aSsFCWK9rI3hsy5kHayc8Qs0kBNQs=; b=CMEwOAp/hAbYlJz1vHx8h0PnSOvqmRSfnG+4J1l2/lWKCEEpZPAhZpBXxCD4QqFoBozl5Kb471iaWn20MtsHBdjCn0EjzZGetUEMafs556OL0VNGl9te6yb2wq4MHWG2hr4dnQa8OFE3CaRn1doScAsYU5EedUjgeIi+38cb1Wc= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) by SA0PR12MB4397.namprd12.prod.outlook.com (2603:10b6:806:93::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Tue, 9 Mar 2021 08:11:53 +0000 Received: from SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::c32:245b:4812:ee03]) by SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::c32:245b:4812:ee03%3]) with mapi id 15.20.3912.027; Tue, 9 Mar 2021 08:11:53 +0000 From: Rijo Thomas To: Tom Lendacky , John Allen , Herbert Xu , "David S . Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: Rijo Thomas , Mythri Pandeshwara krishna , Devaraj Rangasamy , Jens Wiklander , Ard Biesheuvel Subject: [PATCH 2/3] crypto: ccp - fix command queuing to TEE ring buffer Date: Tue, 9 Mar 2021 13:41:12 +0530 Message-Id: <14a55bca9454ce2d7e1a549176ade1367cb3084b.1615276206.git.Rijo-john.Thomas@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::30) To SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from andbang6.amd.com (165.204.156.251) by MA1PR0101CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Tue, 9 Mar 2021 08:11:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9f34af3c-b3d8-4f81-44a8-08d8e2d2ff7c X-MS-TrafficTypeDiagnostic: SA0PR12MB4397: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k2ZnY97JWcKjY8a323l7mK/Xysx6KfaLofArknjV1rbxNv91W7W5NxHeLqTovLmYgKnRIvY73adPbJTMtEaaRFD8PLsPoOx9+9+/uW0lDvZxZYvnJYJOulIDOOrTnlNs6Enp88pQ7IeP1HHbXfEzqgC4WoiEeiJeKk/n/lnyn7sZVtpiLhJGwdc3ESZBxDnt0vITFHLzYuepeBKn+czhV8iMsi+Pq3TA+AYWtwM2d20hLsEkM1kFDE1WVXXZ5ukOCVT3WiWsCcYpiS/RgP+afUExT23Xmy5DiId7FhS5DtzgnGm8DCVqUdCkvroqbRGN/kcA95bMOQ9YYi+gJMydaUYZPUk4pZcv5vh4j1+RcNX9newKXBf7IucJLNGwT5CRs9fQGdiLS83xY5KOFZS+QBVo6UltF2Gti9WlDAEy6Zw8POh4G9ZpoWdpN0ymuJCJwC63chl6uZ7g/Edjp5drIomTDHod9ErmLIkT7H+QYwFXEwC2z7IO9YtCD37Sm8gt96+lgUFRe+Jyz5OMqZpEwA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB4719.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(346002)(396003)(39860400002)(136003)(66476007)(8936002)(5660300002)(4326008)(66556008)(2616005)(956004)(316002)(54906003)(26005)(2906002)(6666004)(8676002)(110136005)(6486002)(83380400001)(66946007)(36756003)(86362001)(186003)(478600001)(16526019)(52116002)(7696005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 2IFvbUVjyheaw1GCdpMPc6CfaiH4iQNsv5WKbc58DTT3m5thgEq+N4ZF4/o67Xq691LLJMD7eI3KNb8TYAFgRfcf2FPj/ik+w2NnH2ekdLoSkMe3abLrIJyFHNT3iCBQzXF0SL6eTBqJHy/mhsSu8ZRfPNedX42K5fqD8tYIg7u5Spgrx//s+5gUB3tfPZPd46m6Vc8cTeAsYYbQHlFEVL7CffVQJ+WfEWj1m9F1TdP0LL5MaeCwRBFy8dNon6DqzgTS82u2rIBUY5TuiLdD5yno42SSKQ4Mp1EfGuKBfpoU31dsAr4l4LxbvFCWVskUYRAZUVEIs3c8k47a1UoBJFNOIM6FmG7Rp//0bQiYe2b+JxL2/9FKkuMXQRI8tVoji2Qi2r28vFNMiO7xh+gIC5NwB2XPxdewP/VU5g4pOpDO1sCUGiRSd45jaFj9KfNaFnZ6tqJvdT1uDgRCx2jYneulUxaN03k9gspQVH01Az66Avveylf6sIV9vaNooFar4KTADtJD5fT8c/XBaqEbDskRsfbQMoxGHQTWDelyms7rYGO6cBSAVrW4XUuf7iLvOXdjToXL73xOzW08CxXqdVFd5w6xghSLMA/JUZ5GkGe5lK51NKUaM85k1UKmmacVjzBXPLej8w0TdsI4NH0yfZ97jNHpakgKTbOxrz2ISTpnyWpteKChHpxteCMxwy0mk6YkIUu16N4JUH/ewzra49391QNAWzO8MalUwAniuur8ooayNJ2pUmevTY/8NKHI5axTGw5H9lJTun20Z9LmMI3GuvtCathHwbB8EcSaaem/mE6QhhHGC84q9bh32VJFkbTEO4WtCV+rXUgcnYDdFrhCMMxDtI8LnhoxtdxOG3qDBCnV3S7qSSU6jGewSUdXC7245lIg08JKjY9TPHpsgzE7gZyZsC3meVz1CfbQRi8lUX96+Xl5+V+fUPYWaTgulFfHCHNsRWXUZuiVEyE9Pri+38j/c4cA4CXVi5cxTEb4Tj7sGNgn4OCGw3dH8SJIiA4nF5AgvsJ49fSAPILzh2CSxbEvRqZGqsoDYXFJYf/b47SlsXojE+wk4f37ZH673R8LT18KjG/MExbiKATVb0lXA+6IKS6r6hRwU1t+vouI9f8uo8B+wW8E3UqhiWPXK4AHd8E5viBe9p49MG7O4zng+g5rZ7j1GiX50SUE6p/qiVvF6f6O03+Q9wkRYjzg88AgUnQZ9f7xMPGrho2ZMD7x8Vjb7dlut7WA/7rSThVldTMXeeTyQfSmeSaCOlH7BYDsUGs8RtvaD4p1qa2p0oxbAVfXU0UqkK5+4SK08ZNIr9bPXIeWbIzQBvOouXAD X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f34af3c-b3d8-4f81-44a8-08d8e2d2ff7c X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4719.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2021 08:11:53.5036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: L8x2Pf0BbAzyU2ovX3e8vCgym5CH01J8sIB3Za/b/UVAm+7cWkribswcn+Tzp1PXhBOOmzHQbIWEfOI3VTvsaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4397 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Multiple threads or clients can submit a command to the TEE ring buffer. This patch helps to synchronize command submission to the ring. One thread shall write a command to a TEE ring buffer entry only if: - Trusted OS has notified that the TEE command for the given entry has been processed and driver has copied the TEE response into client buffer. - The command entry is empty and can be written into. After a command has been written to the TEE ring buffer, the global wptr (mutex protected) shall be incremented for use by next client. If PSP became unresponsive while processing TEE request from a client, then further command submission to queue will be disabled. Fixes: 33960acccfbd (crypto: ccp - add TEE support for Raven Ridge) Signed-off-by: Rijo Thomas --- drivers/crypto/ccp/tee-dev.c | 49 +++++++++++++++++++++++++----------- drivers/crypto/ccp/tee-dev.h | 18 ++++++++++++- 2 files changed, 52 insertions(+), 15 deletions(-) diff --git a/drivers/crypto/ccp/tee-dev.c b/drivers/crypto/ccp/tee-dev.c index fe18a92d51ad..1aa264815028 100644 --- a/drivers/crypto/ccp/tee-dev.c +++ b/drivers/crypto/ccp/tee-dev.c @@ -36,6 +36,7 @@ static int tee_alloc_ring(struct psp_tee_device *tee, int ring_size) if (!start_addr) return -ENOMEM; + memset(start_addr, 0x0, ring_size); rb_mgr->ring_start = start_addr; rb_mgr->ring_size = ring_size; rb_mgr->ring_pa = __psp_pa(start_addr); @@ -244,41 +245,54 @@ static int tee_submit_cmd(struct psp_tee_device *tee, enum tee_cmd_id cmd_id, void *buf, size_t len, struct tee_ring_cmd **resp) { struct tee_ring_cmd *cmd; - u32 rptr, wptr; int nloop = 1000, ret = 0; + u32 rptr; *resp = NULL; mutex_lock(&tee->rb_mgr.mutex); - wptr = tee->rb_mgr.wptr; - - /* Check if ring buffer is full */ + /* Loop until empty entry found in ring buffer */ do { + /* Get pointer to ring buffer command entry */ + cmd = (struct tee_ring_cmd *) + (tee->rb_mgr.ring_start + tee->rb_mgr.wptr); + rptr = ioread32(tee->io_regs + tee->vdata->ring_rptr_reg); - if (!(wptr + sizeof(struct tee_ring_cmd) == rptr)) + /* Check if ring buffer is full or command entry is waiting + * for response from TEE + */ + if (!(tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || + cmd->flag == CMD_WAITING_FOR_RESPONSE)) break; - dev_info(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u\n", - rptr, wptr); + dev_dbg(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u\n", + rptr, tee->rb_mgr.wptr); - /* Wait if ring buffer is full */ + /* Wait if ring buffer is full or TEE is processing data */ mutex_unlock(&tee->rb_mgr.mutex); schedule_timeout_interruptible(msecs_to_jiffies(10)); mutex_lock(&tee->rb_mgr.mutex); } while (--nloop); - if (!nloop && (wptr + sizeof(struct tee_ring_cmd) == rptr)) { - dev_err(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u\n", - rptr, wptr); + if (!nloop && + (tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || + cmd->flag == CMD_WAITING_FOR_RESPONSE)) { + dev_err(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u response flag %u\n", + rptr, tee->rb_mgr.wptr, cmd->flag); ret = -EBUSY; goto unlock; } - /* Pointer to empty data entry in ring buffer */ - cmd = (struct tee_ring_cmd *)(tee->rb_mgr.ring_start + wptr); + /* Do not submit command if PSP got disabled while processing any + * command in another thread + */ + if (psp_dead == true) { + ret = -EBUSY; + goto unlock; + } /* Write command data into ring buffer */ cmd->cmd_id = cmd_id; @@ -286,6 +300,9 @@ static int tee_submit_cmd(struct psp_tee_device *tee, enum tee_cmd_id cmd_id, memset(&cmd->buf[0], 0, sizeof(cmd->buf)); memcpy(&cmd->buf[0], buf, len); + /* Indicate driver is waiting for response */ + cmd->flag = CMD_WAITING_FOR_RESPONSE; + /* Update local copy of write pointer */ tee->rb_mgr.wptr += sizeof(struct tee_ring_cmd); if (tee->rb_mgr.wptr >= tee->rb_mgr.ring_size) @@ -353,12 +370,16 @@ int psp_tee_process_cmd(enum tee_cmd_id cmd_id, void *buf, size_t len, return ret; ret = tee_wait_cmd_completion(tee, resp, TEE_DEFAULT_TIMEOUT); - if (ret) + if (ret) { + resp->flag = CMD_RESPONSE_TIMEDOUT; return ret; + } memcpy(buf, &resp->buf[0], len); *status = resp->status; + resp->flag = CMD_RESPONSE_COPIED; + return 0; } EXPORT_SYMBOL(psp_tee_process_cmd); diff --git a/drivers/crypto/ccp/tee-dev.h b/drivers/crypto/ccp/tee-dev.h index f09960112115..dbeb7d289acb 100644 --- a/drivers/crypto/ccp/tee-dev.h +++ b/drivers/crypto/ccp/tee-dev.h @@ -18,7 +18,7 @@ #include #define TEE_DEFAULT_TIMEOUT 10 -#define MAX_BUFFER_SIZE 992 +#define MAX_BUFFER_SIZE 988 /** * enum tee_ring_cmd_id - TEE interface commands for ring buffer configuration @@ -81,6 +81,20 @@ enum tee_cmd_state { TEE_CMD_STATE_COMPLETED, }; +/** + * enum cmd_resp_state - TEE command's response status maintained by driver + * @CMD_RESPONSE_INVALID: initial state when no command is written to ring + * @CMD_WAITING_FOR_RESPONSE: driver waiting for response from TEE + * @CMD_RESPONSE_TIMEDOUT: failed to get response from TEE + * @CMD_RESPONSE_COPIED: driver has copied response from TEE + */ +enum cmd_resp_state { + CMD_RESPONSE_INVALID, + CMD_WAITING_FOR_RESPONSE, + CMD_RESPONSE_TIMEDOUT, + CMD_RESPONSE_COPIED, +}; + /** * struct tee_ring_cmd - Structure of the command buffer in TEE ring * @cmd_id: refers to &enum tee_cmd_id. Command id for the ring buffer @@ -91,6 +105,7 @@ enum tee_cmd_state { * @pdata: private data (currently unused) * @res1: reserved region * @buf: TEE command specific buffer + * @flag: refers to &enum cmd_resp_state */ struct tee_ring_cmd { u32 cmd_id; @@ -100,6 +115,7 @@ struct tee_ring_cmd { u64 pdata; u32 res1[2]; u8 buf[MAX_BUFFER_SIZE]; + u32 flag; /* Total size: 1024 bytes */ } __packed; From patchwork Tue Mar 9 08:11:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rijo Thomas X-Patchwork-Id: 12124329 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD85AC433E0 for ; Tue, 9 Mar 2021 08:13:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79BA565287 for ; Tue, 9 Mar 2021 08:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbhCIIM3 (ORCPT ); Tue, 9 Mar 2021 03:12:29 -0500 Received: from mail-co1nam11on2079.outbound.protection.outlook.com ([40.107.220.79]:58721 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229520AbhCIIL6 (ORCPT ); Tue, 9 Mar 2021 03:11:58 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VWQgTBwq5Iy9cFv8kgApy5j6qcvT6soJyEKEKYl8Pu8xiC5RioKlV2G8vbzoq/Ob1g9dwrxcuXUSfuOesVfFmR7YLu+Iy74PgFiQ16eKlR/yz8hawC0QF2HqDJO9nPnfyt9nRL5LdADfS88Hr3Zlr4IBe4Nu9ef0UYX0oR+MydU7x1nHZKjUrUmzj18KHeALxT7MUC18REO97yxVuhOFiZbhRMHa1dCd5WKcdi9Xa65OhyeuLOEBC7p/YUtQgiRwmmoh5Ow62NYcobfKnQbFGmXvwMtmyF+w4qmdEW9L+lVAykWFeGSVlqkaodYw1o2nQPI4mlvXCq5vltI7LU6geg== 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=aQOwS+A8HdLAiWTerKUibK80WJRzhUKlIjF0VAdpRv8=; b=bOTsf0TU5kiWAoMLVb8gFUHtX8r8CoRSL0tVPl773HFTUPj6I/WlfWYcn8Pw2zktwdBh872kKrClt0sQlAbcp6LldbpPWdQ2vmTCiLNElJMsPor8C50Hoy0xCtnk49+Pu1Jrj/yV6Yj5QL/dtJU/WbVwwgo66Y6i9BG32PTfLRwpJPkprM5CdcfaZLyP9Ynu4Rpu3OHYzTLBkLNKrA4s2C78unNhX4IH3EobA8CpPeVRwv8P4w/FT3qUnZN3c7h76I2UTHL+MVZsqiIejthSGNWGgUHsylrPTJdT29gO3WQy4MaMOLRlEme0O7V1gaSeFG/8WhNlCX4cwOihqy369A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aQOwS+A8HdLAiWTerKUibK80WJRzhUKlIjF0VAdpRv8=; b=MEkMnsINmq996spC4rX5/o++Yg6C/2FPn2n81vwkzAGohgjpxiz+ACG8hjIemCSNlepeBqu3LaCxkJqtBM8gdN2RQI9M3WgFQVXypi16rhzVTxRulI8jCGV4hygpJDY5vuo+CAJv011VhteBF9c0iohtNw2SFped/p6ZZZtIZAI= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) by SA0PR12MB4397.namprd12.prod.outlook.com (2603:10b6:806:93::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Tue, 9 Mar 2021 08:11:57 +0000 Received: from SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::c32:245b:4812:ee03]) by SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::c32:245b:4812:ee03%3]) with mapi id 15.20.3912.027; Tue, 9 Mar 2021 08:11:57 +0000 From: Rijo Thomas To: Tom Lendacky , John Allen , Herbert Xu , "David S . Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: Rijo Thomas , Mythri Pandeshwara krishna , Devaraj Rangasamy , Jens Wiklander , Ard Biesheuvel Subject: [PATCH 3/3] crypto: ccp - update copyright year for tee Date: Tue, 9 Mar 2021 13:41:13 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::30) To SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from andbang6.amd.com (165.204.156.251) by MA1PR0101CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Tue, 9 Mar 2021 08:11:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0ee93f39-4239-4a97-3c44-08d8e2d301d0 X-MS-TrafficTypeDiagnostic: SA0PR12MB4397: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UbolDd2ABQRQywyPJmExj3yWIuW3sfEIF5CyvxAoklp88g3QqEigV7NvUGzlKP16ersf3KyD0211zwYZHoU5wtYO4kBhZztj5mfsjhxaOp9jCnXQ3VVo/ZQC8HoTJ71K6sRIzyQbMYcr7cxdS4Wr39qB3FhYZGG7sOBQkbaLTPGqSOtf8K/AGO0QVVPKhzGIBgc0BYwYfyCS8JqJjaC9/SKaGCtjwJqwzvvDj98PNoueggaOJ1qgz+Lf/t61WoKQsCb/gsKUlkM4/AAh2RGPG3tLTm+wFr38IYVi4jxdlP3zhYK1PtKy9bJgO4i8xz8n8nZuCFnKe3QEhdA9iO9i9MiNZFlgr9Z1JYQwP6H2VvIBPZnwpzXrH7+3Ud6xrjTAbGYoyPMUPCUkFo0toCdo7ZGeNvVYHUHa0H08A5VW0bh1btUZ5u7wWT12IivDCNG1X7WUA/eaczwXFKzgjFnuiKnMjGD+FD29oUVfza19CbMkvT1K+eMvftWEJjthszvRv5VjNLhaTCgfsY6DM/Ij+A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB4719.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(346002)(396003)(39860400002)(136003)(66476007)(15650500001)(8936002)(5660300002)(4326008)(66556008)(2616005)(956004)(316002)(54906003)(26005)(2906002)(6666004)(8676002)(110136005)(6486002)(83380400001)(66946007)(36756003)(86362001)(186003)(478600001)(16526019)(52116002)(7696005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 5NeWXrz5EccJUMw+F/ASYNPWmeTecoknCKs6GtyH9ptCEafHOHgzM53jAS/weFPjGzvTMHs7/cHr1Pc2v5NGHhmVU7hCxk9UyDq8kyIrr20+CbkmD7RUxDM/W2xZjNXi7TP6UJvUCCRXghHnTn17d7yXuZKi8QgMmr3ht5BW1P+tVtnzlIPHsz7kjAch43+QUoJAoqZlUnJRFBBddomYY+V16JnZ7gwI8inwIecG4OyvPbQSBUlKe4TBvr8qwnMpU9Sic/LbBJjkjSjh0dvrj+RYMHbfHqijr7UBo+PxkLV398JMNPVt93zvjEjEmk5LqCW/WiDQ1K0J5e2OQ5WwVTPHDTHU5nfsO4cj7nrnK/24vFY7oSZkO8ShYGPWWgskf6iJeXlL1kVLyE8ygSsAfX2BQ0PjIJvGn6FiVGm8h5B6PxgCyeLVc/ypusKdSZU8sMPWtE6m7v8eH7cEVbpJN5MHfNJ9NXkeVh1ApJQEZhE28awPJl5z5MjxOHfMc+KDcEr0TgSYjUo2pmzdOPhGcNHVZNwDfo8wPPSpCBa5w1zqpNESg4UajIZjdEYGkQ/fLLoOuFrMYn6uxuyK6kFEl4NFipwk+8fUVAK/cdRsCG+MTQ8UHgMvmhqVkPbZFOd4e7pI/zQjtRaVbMZRz+BzKs5g1ES799kF8dDJ9jjUKE6f0T3tPr/RmLLbXXfavH7xec7CI3v2TfuJtEjiCV4eV6pB+Wsj2XF3uGXgNIIGdwXtGivYZavAA5unIOg7v6ud3aJfPUc34HcOaEKoTUj6t5lz1uTqKSsiPSXCC7PRaOQUteHAqCs/C7kQj3tTeYoe1tegp7OskzTE5RsKVwhQjZl//xeETrkCb/KizTh7S9F5nOdCNxxvg0fFua35BikLyUPRtLoFPJSKXfhbv3/bZH5lO2MUmRCHNrroqA+NM6iLLS/wDMQYDFAspeTvOR/K/mnh0JarLzv7AJBt4lGMd8BOuWnLXe4rnrgU1ANSzhXJudxvPC9cu9DvljnHPI6wZeMNtC93ZmM5y4zg4N6kPZ/aSw69nwZrrI+5F5fJhtQW3NeziHZRSmcV2UxK+1h1uJS+odiFBtI4vyTXRfCMcv28isKKTuSD3fwYmp57q5UfCvTHe08a9JvMmw7973XEIVQcso2Y1JMmQfjATBXGHN91dm8p2b7qvfztAt1FK0SpgqK48VW57IprDFNS7OYG4ebxXU+L3hyd/z6DCA64njXScerdfEgSvETHgawAhS2IWGdSOBzJQ7JI2izITPQFLWzDoIMK6P0VMK7siKYCqqr69arYpMU/b180PCpyuY/HFa0D7uaqT9/0m+iijqxj X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ee93f39-4239-4a97-3c44-08d8e2d301d0 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4719.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2021 08:11:57.3823 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VghX3DT+kYp53/xZQ10OcQmlCjnSzKQJaO9Rav2vpVofHQxNS4lOrWiuq5emrr+YHiTxxavuh8h199mz53159A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4397 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Update the copyright year for PSP TEE driver files. Signed-off-by: Rijo Thomas --- drivers/crypto/ccp/tee-dev.c | 2 +- drivers/crypto/ccp/tee-dev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/tee-dev.c b/drivers/crypto/ccp/tee-dev.c index 1aa264815028..8cade4775115 100644 --- a/drivers/crypto/ccp/tee-dev.c +++ b/drivers/crypto/ccp/tee-dev.c @@ -5,7 +5,7 @@ * Author: Rijo Thomas * Author: Devaraj Rangasamy * - * Copyright 2019 Advanced Micro Devices, Inc. + * Copyright (C) 2019,2021 Advanced Micro Devices, Inc. */ #include diff --git a/drivers/crypto/ccp/tee-dev.h b/drivers/crypto/ccp/tee-dev.h index dbeb7d289acb..49d26158b71e 100644 --- a/drivers/crypto/ccp/tee-dev.h +++ b/drivers/crypto/ccp/tee-dev.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: MIT */ /* - * Copyright 2019 Advanced Micro Devices, Inc. + * Copyright (C) 2019,2021 Advanced Micro Devices, Inc. * * Author: Rijo Thomas * Author: Devaraj Rangasamy