Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3036476pxf; Mon, 5 Apr 2021 01:07:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVy1l19h02+yNuf0QJHrsuYfNzSxMHnagnG3Ko+wNOOHBGAwCXDgDJpMjyKDyWlfT1jn2F X-Received: by 2002:a92:c0c7:: with SMTP id t7mr2985904ilf.302.1617610031970; Mon, 05 Apr 2021 01:07:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617610031; cv=pass; d=google.com; s=arc-20160816; b=kP3QjYo6VppWN4R/hFc/dWrPLmwDk3bHOo0x7Csh77SH6SD14//2EU4RvRddRci90G TjxkbpjQqZaNFC4MdnI7stcU0FFXy2enrwYL9EUkYE2QGJVkI8p5xx7MEsFDPXUoKulL 5pmT6ymFSQmTs/kM91d5bSrUwWOai2BvM5+2GExCxk/fip5Rp8lI/Rjocj09Xxs171+6 ALJMu9HQhxEJPjS7neraehsHuIw0PHkR/sYdHtAjAuEreLuPhb9wNObXIx2Rn9g94Tvb uVNUP1DZdbP6/b9gVog3cNV/v13KmfdZtGTc7GejeA25BJMBJznJnFnjvkL3gDJo1x6q VR6g== 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=TjwCd0ErUnV8HfaVb7drXt+RQpgg9GAWL/3yZf18sgE=; b=VhSiMq/dCxlZOFZhFUF635mYfD8a/Bn2JoroGiH7Jj070ksMnJiM6uK5zjEg32sigC eugi9k6HxGE6OewTUrYvtWv7LqTecnjQ7qxw5o82Y5HDkjEuoWjj8R+PosEsT+hLS55M dgkoNnLq726p/BjSHellrM48CoPaQemV0B8ILrgmbbZkCgi1WOwyWQo4nzi1KMT2xQ5m yctPPbEYjr4gCCCw7ut6CVhiB3pfk2O2OuWtfZKrMhSjr+HWO05uY9qgNEpm8c7tjXne zFKt7x5Rn9vV5QVOZEfBe4jcyRvMJYoYzXuv1jJLTHjJRBxcYccIXY93Z4FBcPCjvhYZ QZaQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Maqqwwwn; 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 w3si17304266iov.55.2021.04.05.01.06.44; Mon, 05 Apr 2021 01:07:11 -0700 (PDT) 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=Maqqwwwn; 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 S232251AbhDEGk0 (ORCPT + 99 others); Mon, 5 Apr 2021 02:40:26 -0400 Received: from mail-eopbgr760050.outbound.protection.outlook.com ([40.107.76.50]:58753 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229454AbhDEGk0 (ORCPT ); Mon, 5 Apr 2021 02:40:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cP55PfK64pgecrQTtfyX1s2R9hJ5ky5RJXKbsTXNzhYZifp3e+ZZlJ4H+UItiphkT70enFftUiUVDy1xatWcli+Ko/iz1YPK//5T8ISScnK5+1PDcvHZH4npDQghL7UkjNpcR5Kund6xgnEVVve4SD9wJK+0YboP2otTgaDzvTo22PXAap2t/YCjo7yOg+WtDBgQfm9VbZsbq2qxeXKhowk1veeD3mKKiUnYr5U+KOH0I62dlF2TBHuInO1oc9YrFuEpWeGVZa+zoAX2wYZoEZ7d4QGFWC9rmanjkLJUSMa5xlCXh4sU5W0mhcA54DS6WKv4kNNvSY2HC2k0pxjyYw== 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=TjwCd0ErUnV8HfaVb7drXt+RQpgg9GAWL/3yZf18sgE=; b=jbJ38+dU/hJfzGfb0X7oIbaCTQaqN/FQQp9xkJVWd4dl65J8KMAzYopLBNgQLIa7917dSSw9w8784KYVEIwUznanm3RksF9VwQnwsGUOCf+D9lB05pLpbPybrOOP+BXZ//i8LKa16gJqaSsPjGEi/ugFzqCk8GZRfPvcEPDp0mQ0diryHmkv4p2EXjdNr3uOyGIf36c+lh1pA6j5B0+NzCV4sOdgrW3I+ACgN4wd4mKFV9WkopJTUDSUtg7hcCojnuRNr8Aww8FsQSxwg6FK0KvnQFu9iqYE2Ez3PB8/CVVJlLHbe6KRAA+q8JObWfzwTQ5EcErGncSDQFKqDSBq1g== 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=TjwCd0ErUnV8HfaVb7drXt+RQpgg9GAWL/3yZf18sgE=; b=MaqqwwwncM07nKG5vkjsEE7zr6glxcqF3l3OvJuWd1ogKwJS8KB9pDT3816pVDgZ6FQxuN1MIyyxLbmuKXpfXdRdqGkzz3/9aYgMkn/n9m7is6f1/0VGUY0rpW1RAoSYkft+tMeOzfTYCeLtXytHkouPDl6GJ7Qd1RyetYqMr6Q= 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 SN6PR12MB2815.namprd12.prod.outlook.com (2603:10b6:805:78::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Mon, 5 Apr 2021 06:40:18 +0000 Received: from SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::6999:4ad6:8648:9c8b]) by SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::6999:4ad6:8648:9c8b%4]) with mapi id 15.20.3999.032; Mon, 5 Apr 2021 06:40:18 +0000 Subject: Re: [PATCH v3 0/2] PSP TEE driver update and bug fixes To: Herbert Xu Cc: Tom Lendacky , John Allen , "David S . Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Mythri Pandeshwara krishna , Devaraj Rangasamy , Jens Wiklander , Ard Biesheuvel References: <20210326092919.GB12658@gondor.apana.org.au> From: Rijo Thomas Message-ID: <8361ffb7-d4ad-1663-8b08-b0becf1835c1@amd.com> Date: Mon, 5 Apr 2021 12:10:00 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <20210326092919.GB12658@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MAXPR01CA0099.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::17) 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 MAXPR01CA0099.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Mon, 5 Apr 2021 06:40:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a2a80013-0696-45c4-e692-08d8f7fdadaf X-MS-TrafficTypeDiagnostic: SN6PR12MB2815: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9MQz+PoR7KJca6qX9zggsN4c0fXaf91gVvCFEwntQwFXl4ZLbAi0kUmSwmsuB1aWXvdR8ZTNRzviwryGW+/YleaSlD314WrN1AiRX6haaXcmmhUcE5RJSzYly/06sWSWcivbWmw5CamyPh7PwJzfvnzFY5DYZY98zbLibUf8wU0DR/vFWg701Z1Uvj2Cm5IT9FVestC3blNbnFDf/Up7RpzQIQg60K5/WSKePjzv1VP6GtX0ubU+yWKDTauxFV2pO9OgABb/HqVf82mEpmTIbyi0XZSQp563aMSD9sr2pTHJuhWqUO1u9DzZ8W1/6xBy/u7ssDp5Jxknb2H4DiRc0STf+G3Wikp8vlHlgSJnSKRwlxVKepdNo1FkQoUk6aJmtgOoDVkgDFPqVB8NXzg3lKXV+Ee4XQiqPIHIzT0OJjFE0UHFs+RST8QdPKJP9zQb32dVdyi25rQ2h5ynThIcvB9unjegnK/QPHQG+WN1J4J8QRJSvnwPwLfRz44VsGRCGuOL+pTILhjouquZEVHT6gWxlM1P1j6cHhmQjnnl3ZdswVcFe0GZW+1e5ADhjap4PKaDPbtMtcwCQLt5e+9ibJO/sFB/aDzrl6ZiODndnZLUfs+VtyD9KS+iL54q26yCMnUiMJGDu81EXivwWfEl+LD666Eozg7osU5btQiXvER3ab35oKDJGCRwZ80WSTji3p06yTcOVW2LTakh1zmf2w== 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)(376002)(136003)(346002)(366004)(396003)(39860400002)(8676002)(8936002)(66556008)(66476007)(2616005)(66946007)(16526019)(86362001)(26005)(5660300002)(186003)(15650500001)(31686004)(54906003)(31696002)(38100700001)(6666004)(53546011)(83380400001)(52116002)(36756003)(6486002)(478600001)(4744005)(956004)(4326008)(6916009)(2906002)(16576012)(316002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?NWU0aEZnaEJrMEFiMGttYVBpS0VJWTFtTmMrYWpndjI4L0V2NWhnb0daSWlX?= =?utf-8?B?WEhVeDNiUHNNenJkSHR1Z1cyU1BVZzR6b05oN3ZSK2xmUUp6c3VzSmxlRFpo?= =?utf-8?B?NzJ0aDRDekpxZ3RrU3dQMCt0YTRYS0Rlcy9yYUJvYlk2TjFyVEp3RXNWaEp3?= =?utf-8?B?dmNrY2VWZnIzRlVxbTlLVlhxaVQrSlZwaUtYZXorUEhQL0NpNXZxeWlYMG1x?= =?utf-8?B?VkN3WDY2QTRVY2xYSU51b3M1aWRYd1IwOXhtZThIV201eS9pL3NUQVRWdHNS?= =?utf-8?B?Q1VBVjNHcnhnZHpqUG1YMGVxV09Ic1VKd3dQVlpPWE9YSVdtbHk4VE9IdzJL?= =?utf-8?B?VktZYmVuUFQ1SXpIMXRjMG0yYWdqcWJUNHl6RDJJdk1vMDhaeFNrTlZ0eitL?= =?utf-8?B?R3QvZGFCUHFPajdaVXdUREFhc21TMTNOYWhWYTRSS2puajVkei85S1g3RUlQ?= =?utf-8?B?dm4xNmRFSy8rRkZpdnpETXMxN21vWi85MzFsQmlDR2JNbVNiUTVSRjJINVJt?= =?utf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?B?akpWYmhDRnFyN0psc2xWMndKTS9Bd2dRSE9FcnlubmFSQ1BpSmVvOEtjVW9h?= =?utf-8?B?SVkyaktHTEJnYlFSZXBHMWVkazNjQjdvUE43L3duSDlSRm9tMU1uQmVDSk0x?= =?utf-8?B?T1luc0pWMDZXZnRZd0dUSTRiWjBPbHhKd20rbHZqcStLcUxPbkxOazVoNlBL?= =?utf-8?B?TmJyVndRNUxPQlBkQk9oRmJqTUh3Z0F2akdvYjJYV3RUZU1mc1dWd0J6a0Uw?= =?utf-8?B?MWRoRXgxQ1ZOZU42OTBZNTdNZHRoNm5yU1VvVUg3a3NQdlBjOGU4eGFVclRn?= =?utf-8?Q?B1Iw0zHBOPm/uW7pwkHS2aAjSsbN5LajQiuR6yM?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2a80013-0696-45c4-e692-08d8f7fdadaf X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4719.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2021 06:40:18.7926 (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: Wq7sW5mCUZm0ek8b94y+amrbbfEDWOSLgc8WJstITAO5HKGu0058ILu0nRh4992F+HGhg11yfBorDTe3WAcSEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2815 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 26/03/21 2:59 pm, Herbert Xu wrote: > On Mon, Mar 15, 2021 at 01:55:27PM +0530, 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. >> >> v3: >> * Fixed checkpatch.pl warning >> >> v2: >> * Updated copyright year as a part of code change >> >> Rijo Thomas (2): >> crypto: ccp - reduce tee command status polling interval from 5ms to >> 1ms >> crypto: ccp - fix command queuing to TEE ring buffer >> >> drivers/crypto/ccp/tee-dev.c | 57 ++++++++++++++++++++++++------------ >> drivers/crypto/ccp/tee-dev.h | 20 +++++++++++-- >> 2 files changed, 57 insertions(+), 20 deletions(-) > > All applied. Thanks. > Thanks for pulling in the changes. Cheers, Rijo