Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp184311pxb; Tue, 9 Mar 2021 20:31:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7g4vZtBaBwgnzr8U7o7eM0hJIiGRhZx/Iumz6gZNfYawxX1GiRUS3AdhpV0rVhpa8ekks X-Received: by 2002:a05:6402:382:: with SMTP id o2mr1101763edv.238.1615350693267; Tue, 09 Mar 2021 20:31:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615350693; cv=pass; d=google.com; s=arc-20160816; b=pd0/6NfTgOmOlcVodl8PqGdy+SnJKRSORd9UmxRQQ6e4l4JZBaAyaOkQrnMONR94xz 0tVfIdmRIT9QKNgAN3pM0h+nTTxBwthXP5kASi7+SC32OZXeagBnhXradvAw2KcSe7mB wAlrQEZBtj4NXAPdQ3Qrr4y1aFdgFRmLbyVtWIOB97QaZi/hxSu+CpeEh5WJe8DLOHoA MkQ/1I6/TU0gQ0P3hCdgMHeuCiZf7DROeDVzDI43PdEuTkq5w7uVOmaEK6XFA9OlqnsM rg6vtiu3buh1vbznJkugS8J9PqqHfwpA96HPC5B70fGcPzU1gO3dktqGo1F7xgutYxgW Xc0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=qLqAASgLefKGTGBbNlbEojnTcH4zBgYqc0R4jv5hae8=; b=hqiWcA89WqJ16+QUOtVuHaFLP5srjVUq9+z7yr8kxH1qvroSAIFAmtCV2Q6s7pXPtp Wg/Oz1PLWcMtg7qc44E++E4OvtqaYyUJCIYbSHOavpSTobc+IfQnWBEbqNxZgBsC8f8z UcYZNe85Ub2skzd7NsNKT8roRKhysnVEJhNpH1X6RvQBGSapsAHhWl+/Eapzu0oEk0b3 S/4j5ouVgg67+DSXtUXBFRxP7aWJDd0takCUTDcozPFhYZngWlMKuxiLG5/y/HazLIck 7n36AqzZwyo1iKCZndnZ8lOANGbq/j6SIIFLGOviQhZZDu83HIieRes9RMfTsHtDSqLk q/rQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=CcTyVUVA; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2089301edv.66.2021.03.09.20.31.09; Tue, 09 Mar 2021 20:31:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=CcTyVUVA; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbhCJE2l (ORCPT + 99 others); Tue, 9 Mar 2021 23:28:41 -0500 Received: from mail-eopbgr770089.outbound.protection.outlook.com ([40.107.77.89]:23310 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229570AbhCJE2I (ORCPT ); Tue, 9 Mar 2021 23:28:08 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GJ51hf0E9oGbEyCU6chwZic8JEupURpNdeHyOB8jAyMlOZUbcxj7acNWit+9t87uRsqNyrQy3BDKPOTHidSh3Vb9MBRkYbnviVKDvb0AP/nDEpBi/nTq/RQGnn27aL4cCHfBMW3lR+m8VIn44acM9C2XzqNksneqdoKDXmn7V0Jb+ZEDkL0/gLHyKTmwygRl/me90gHjuqeb/zzPhIpIYPtal4SHdbPZC+JBD/ArVZIXdKt4UUqFJL8d7PDuB6793HSnB95MwutuzHP/qOXnX11B6iEoulqnAxm2hm3rJJnZbje/7WavrH448KO3pjcCCdoqhRyxYslXvdtp3mLGpA== 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=qLqAASgLefKGTGBbNlbEojnTcH4zBgYqc0R4jv5hae8=; b=b3fr3VzmWybI9gj/H7J48dhbZlyXbnGgJecEyLNe1HrJSnRpmDZq39nnEzj8e98d/zDesKxLe1/uzzsgtyEUA5uC9X1ZFjiO/uEnXTZpnHwna4h8VecnbQsbvweFjWRSjxGVTK2u1AW3QJs0RPG3apUve7KXzDc5weHeH0DuG4qjgTzOzQ0X/VlQ2lLVg5e9KYf1/dqzfZ0M6H5L2Vj84mtewWfPTcACg7dzLvoFatOWQ8r8fXHD3eFcOvK4e2y4Sc8eMNzwWLmp9lo0i3bXARuqzArtOQNhC34OdM44oQJvn/0I93ezIMBpHabnOw/B08J+/Sf3QT3NiwrPgpSw1A== 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=qLqAASgLefKGTGBbNlbEojnTcH4zBgYqc0R4jv5hae8=; b=CcTyVUVAqaGnnjbV8lUNSlKQL/GyASmqf0TQN12zdW0nKZLS4Zdf7tobsU53SmdJO6Y85oMRKdQmXRpzIM5GL1ttOGC1GxWjLkFf61EU5TswTmb+ZMkwKaqe67kFWgGK1xQGx5F5A5dvMjMKttr5fMYZoCLv4EdYP79sSyse60s= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) by SA0PR12MB4494.namprd12.prod.outlook.com (2603:10b6:806:94::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.28; Wed, 10 Mar 2021 04:28:04 +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.030; Wed, 10 Mar 2021 04:28:04 +0000 Subject: Re: [PATCH 0/3] PSP TEE driver update and bug fixes To: Tom Lendacky , John Allen , Herbert Xu , "David S . Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: Mythri Pandeshwara krishna , Devaraj Rangasamy , Jens Wiklander , Ard Biesheuvel References: <6f036523-6eb4-4b74-c22c-e45a98f63f86@amd.com> From: Rijo Thomas Message-ID: <1f8d3fe9-a945-811e-c1ec-b82f45c1d272@amd.com> Date: Wed, 10 Mar 2021 09:57:48 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <6f036523-6eb4-4b74-c22c-e45a98f63f86@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::23) To SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.138.129.146] (165.204.156.251) by MA1PR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 04:28:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 052cf0d8-30d1-4fc7-54d8-08d8e37ce5fc X-MS-TrafficTypeDiagnostic: SA0PR12MB4494: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7VKi2P3rLdaLqzuabfm6kx7fy8oyBoIg3xsQ0oZV5pMDbTRlawmUAcTZVbIFDs3kAvrv/6Tp/OG/8B1wkw6mnviwAPfboCGh8/k1enTJuFiKXuY6R6hU9ECJwE53DKXsOMEQnRVlZNGAQN486SFv/ZKbSCBfICyqM3CBYXoWinFoAHpixk8aH0pkH2Hzjf8i/aZtv96ncG44TlmDpDsqUw2zdMYtHcFrp1UshkhzOHlVaj/EhnRuAET7oQzMirGK4SD4O1CovvL1fIwg5kLBizsOaRHlwVUqMn5tGaMIDBBrD3ZAzw4CVonR5VNlUK89DUr8j3yq5O9ker7zdBl/0siuXzuZwMCzBAYF7cYIPaw0k3UION3T4b1CA1mCqclsxU4vnULvHSaAOlFfNkg9YPfK/Nea4YCwxLT0bTqNFscAwb16gq5gtGVyK2Ylw/T2WdDn3Nux6i6CgogCmU7grrPVH08NVTDXPusCG9BVj2d2Hw8cRenFwKeZfh46SCtrxYjR/GzcvatQ7Hx0f8Fsqak7nT2vksc78j5RAPDm34gzODooY5/hvDQQL8fpAhQeavFAc4DAX4Jckv5LDAjMMnXRRQwZnGKZ3BksuzoqJq8= 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)(396003)(346002)(136003)(39860400002)(376002)(36756003)(6486002)(52116002)(53546011)(4326008)(31686004)(66946007)(66476007)(478600001)(66556008)(2906002)(316002)(110136005)(6666004)(5660300002)(956004)(83380400001)(86362001)(8676002)(8936002)(54906003)(186003)(16526019)(15650500001)(31696002)(16576012)(26005)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?d24ra0NBa3RXR0VaVUpLVVFvNTFIYUZ4QlhvZmpyMEZzNk8zQlc3Um9hcDR5?= =?utf-8?B?Z0NIVFhJTmhZcEpIMVhmc1RGWE52b25aWXNzQlZXYjdhbGczcXdxdHBYbnpn?= =?utf-8?B?QVpVUGhCTlJGb1JUT3RkOEltMEZTVGxJYVdSMllwS2dPZzg0NldYc1V0WFhD?= =?utf-8?B?bm1DVEY5Q2xXSUQ4U2ZOaEgwbDd5L29LVzkzd2tOZHM4VkFET0g5MXR1dGxJ?= =?utf-8?B?MUZweDYxRjEyZWd0allaRjJjV05sRjIxWWhnNDl5Tm9xdXlMOWF5djhTL0lI?= =?utf-8?B?dTI0ZGNWbjhvTXlpNHNtV21VOFR2Y3hxT2xZRlNtWVl4QVRlNFRNVFhzdGRj?= =?utf-8?B?dFVpMVV5WFVXZXZudUsrUk9GU3AwamlqMXB4LzhyUTJTWEd0WnJmdDdHY21a?= =?utf-8?B?aUdFWlRoZDRNK3lQcnY3TUpEN3FyQmpKUkt3eG0weVJvaW1GakltY2ZMY1VE?= =?utf-8?B?NjIrMjVNaGV1TWtENW5NUnRNdWRxQ1kvYnRlTk94WU5ZQ1dpaWxuTzJtK3U0?= =?utf-8?B?dk8rbTk3c05JREQrSWNyOVVmSzl5cGhrWlhKRHNYakF0SXRtUHM0OUJqL08w?= =?utf-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nlDSkx5UVFTZ1NN?= =?utf-8?B?SGRmNkIwdlhsS3l6RlF4R0cyTWc5OUwvdGtHWjRocUF2Zmt2MmxZckVJa0RB?= =?utf-8?B?ZHJ1eFpOMWhiTVJGQzM1Z3NraERnS2pNSTBNZDZ2d1F4andvTVMrRzJxSGVi?= =?utf-8?B?Q0dycWlrSVZ5Z3h6YzBIQ0Y5Qm1lL0JGaVM0WHcvVW9TWVoxTUpUTnpLYnZv?= =?utf-8?B?Y0F2ZmlrU3hscmc3V3I3S3NHUEVVb1AxdGNSU2dpc1hvUzY1OTZDK2d0UTY1?= =?utf-8?Q?S4aekr4QjMJu1C9XCmzzzfl4RwKPSXEDwbzkuYV?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 052cf0d8-30d1-4fc7-54d8-08d8e37ce5fc X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4719.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 04:28:04.8093 (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: MjCUzRemzKeo9Fn6ssvbyvy/IlIB9kwrbBvncHEcdYJhmDN2w6/nxF44gOZuXoaoa1I70gRwGwLByurqKOIeZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4494 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 09/03/21 10:06 pm, Tom Lendacky wrote: > On 3/9/21 2:11 AM, Rijo Thomas wrote: >> The first patch helps to improve the response time by reducing the >> polling time of the tee command status variable. >> >> Second patch is a bug fix to handle multi-threaded use-case. >> During testing, race condition was seen due to missing synchronisation >> in writes to the TEE ring buffer. This patch helps to resolve that. >> >> Third patch is to update the copyright year for the tee driver files. >> > > Just something to think about and not as part of this patch series, but > think about submitting a patch that adds you as maintainer of the TEE > portion of the driver (see how the SEV portion is handled). > Sure Tom. I will add myself as maintainer for TEE portion of driver. I will post that as a separate patch. Thanks, Rijo > Thanks, > Tom > >> Rijo Thomas (3): >> crypto: ccp - reduce tee command status polling interval from 5ms to >> 1ms >> crypto: ccp - fix command queuing to TEE ring buffer >> crypto: ccp - update copyright year for tee >> >> drivers/crypto/ccp/tee-dev.c | 57 ++++++++++++++++++++++++------------ >> drivers/crypto/ccp/tee-dev.h | 20 +++++++++++-- >> 2 files changed, 57 insertions(+), 20 deletions(-) >>