Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6374954ybv; Wed, 12 Feb 2020 11:00:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwj9yFNAZQP7dxES649qaOq+p2Ca6Q8xgC/tJUJmLDr0FRyHzlNoCHmYTfvTE8jGM2SUOUT X-Received: by 2002:a9d:7d9a:: with SMTP id j26mr9908617otn.21.1581534039962; Wed, 12 Feb 2020 11:00:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581534039; cv=pass; d=google.com; s=arc-20160816; b=P1MT8ySH72t++911zF2NOtwtvD/olll0Csp6IFxEJqsf9n9dHKa3R0giRXHisdC2YP 7K8GDYHqDtE/dAVn1+5sKgETiSbSHj4AwY7wbF22iRP0FcCguPxZKTrdJa4zT/xZ/cJi jGfjV2YYHkbkZKSa6PVC/ehQU7OYv/hul+bY0G+kEIpooOusB8vNuSE08UxHFW1VWBDg /r2H9metxhcK+0KiLhHWM5xNUWXYsUYG+TshfIR//QSL0kZvGTdQLql/5DeXts7q22n+ rHXUwvDNw2xJK0NHqmk1EZhMNhWkIagzliu+Pz4sc4Ltw6xWUosyMH2bGfZWOxQAuY7d joqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=PvWwywSExVLHf7aJUCILMfZEdbKV8YpJWBSfgagRGyA=; b=FK/GiuBd8exP4ypor8QM1x+4fa7NUKv/ZYqp7hN8dAcr2CSCaG7EFueY7+Bj731PB/ xOMMx3H5BPw7NOyZvVLfQeurecpyqsNlD5YjsXMC3LPv+NDmrb3jMi+m4rrQiY/XXuKI W0t3Xoeh76fxMHgkFesjgYhkVFAtSL2tLsqdd6TQ1s2F+AMjVmeffeytKsCQXit2TwSQ SnkBhhisHrmDM4g1L/zB90T7uIuEax5Fj97z2h6ep6sVHkXPRDZJBS28jsOnwg3GqdeI cD5cc8lgRKpvOI3hgDnT/+zgru2tB6fUe/6npr1wCVL8qwaFUR5s6r+CzpuZUiTF5d8V apdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MB8kHTH8; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si3563993oiv.144.2020.02.12.11.00.27; Wed, 12 Feb 2020 11:00:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MB8kHTH8; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727372AbgBLTAZ (ORCPT + 99 others); Wed, 12 Feb 2020 14:00:25 -0500 Received: from mail-vi1eur05on2055.outbound.protection.outlook.com ([40.107.21.55]:6043 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727279AbgBLTAZ (ORCPT ); Wed, 12 Feb 2020 14:00:25 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nsd8CMQAYAl6m91rkEgI0hUNq8RNt3Jkb+XXUOeIhkpHNko4+VeDK7DqWYolnEqp+wHpznMvmYQ01heqgBOtUV/GRYLwjE8zMZy3EKeZTOMsA3SryEkAjwqfVft9DS9+znydswvo1RCPuUTlqNPIcBJ8Z2pGsd6RoCT+VO644/pHQy0x7oWwmUqxob5tsMWDimP/WU33rpRyMbde7lbt9j5uLZrHJ2Jej7UMBjXNdqOSYTBZicEqDY/bOLuZx/wdBskuQj3TTqUFIIaRZ3HCpZpyrkdCscc31978uN6Bo2J31tDdQpxG8yXMDmyYEYbUlWcofPpWxFT90cjDNti8iA== 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=PvWwywSExVLHf7aJUCILMfZEdbKV8YpJWBSfgagRGyA=; b=kBxbloYxyWFetdC7U2yubaNS8RkIQfIJXNPVEMGmsMlWm6k23//xX93GwnF56SRMNJmPDYtYd8AXDVUc73bv5YhTuGzRw6I9VesDD3HuwZzjy/h+xNAp9TNM8geIJtcThNuKDFoeWhBMPfRGhR+mEks3O2x0R0vszKCfVydtgGq57AOhW32JorkARD4gCJ2ou9sAbRV/kT2MdhHCZ7SKl7BGrAGrvDPKRZFGqg4c/GzNxoKs57hGfAd7AD4vVqSR5jzkBMysCPDP4k0ZWJpDINhOBsteiSgMYHgwyUEx+E12HFk9BGW6F5iVa6D5S9glZs167RWSCRwsrhg/lko8hw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PvWwywSExVLHf7aJUCILMfZEdbKV8YpJWBSfgagRGyA=; b=MB8kHTH8yCkYBQorxr2LLLnxxdLgSjpHtrKWlAsFCL0GZQdCMkVqosM+WUzsbYOQNkiqilimyIZWzmRL/BcP34wVOtEY1/3ESJp66EBa8ydrwW4jcOtQ0S3/taZ29jgUMjAwNnWAD1iQWWh4hS4mXGVeuyxuENvcWrDXa2RDJ6M= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB2909.eurprd04.prod.outlook.com (10.175.20.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Wed, 12 Feb 2020 19:00:21 +0000 Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::85e9:f844:f8b0:27d]) by VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::85e9:f844:f8b0:27d%7]) with mapi id 15.20.2707.030; Wed, 12 Feb 2020 19:00:21 +0000 From: Horia Geanta To: Iuliana Prodan , Herbert Xu , Aymen Sghaier CC: "David S. Miller" , Silvano Di Ninno , Franck Lenormand , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH v6 8/9] crypto: caam - add crypto_engine support for RSA algorithms Thread-Topic: [PATCH v6 8/9] crypto: caam - add crypto_engine support for RSA algorithms Thread-Index: AQHV4c21U6Y++bjQ102+YQorjnUY5g== Date: Wed, 12 Feb 2020 19:00:21 +0000 Message-ID: References: <1581530124-9135-1-git-send-email-iuliana.prodan@nxp.com> <1581530124-9135-9-git-send-email-iuliana.prodan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; x-originating-ip: [84.117.251.185] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 05920c5a-6b04-42d9-9017-08d7afedcf4f x-ms-traffictypediagnostic: VI1PR0402MB2909:|VI1PR0402MB2909: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0311124FA9 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(346002)(39860400002)(136003)(396003)(366004)(199004)(189003)(8936002)(33656002)(8676002)(81166006)(6636002)(81156014)(7696005)(110136005)(54906003)(316002)(4744005)(5660300002)(52536014)(4326008)(55016002)(9686003)(64756008)(66556008)(66476007)(66946007)(76116006)(91956017)(86362001)(478600001)(6506007)(53546011)(66446008)(186003)(71200400001)(2906002)(26005)(44832011);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB2909;H:VI1PR0402MB3485.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MKV4DmKkf/+S41c9ZKKgwGz3qeqC90VpPQ8f/OzRrnnRe2nGu3BtBWwB7ENUx6qP8jtqDfVB8izZqoHggjMxNxOrTxLwncEFetNY9TLjz1MKo4VoGUypbJvEJMUZzGrvEECrix7DPdCispTvF3YYzQiOdJanStcgKYRjnrMSogA43JEet6vXnJfpXAhfnT8WdTMp1cYnXVBHCkmUl7EkW+5QOJrvy6MjtB+JO8wjsC123IFNq3pHOBfGLaVQmIiP7R3YDXkC21+6hjHH1CV1zVtXbVRjDoJIqn6LvNEoJ/bS+ZHNvi7ywbLVgantXeorCPPTWlaBF5f7Ogd6Ek5VwDs0xgsRNosx2a4gZYPfaA9dHCxgurXHyKbA2z814gf+v1HJ31a24+bgN8t/Brlinl0sHHJ9ng20U6j/7wc+eZGSa/4t5QpssxQnze6ZDYc6 x-ms-exchange-antispam-messagedata: 9OQMN61EB4XgF6rFpFcDyAoMKmjhhYEC1MgeIjKCiZYlwfvQ/L1eUhQco9gxvfWL6yAzDO4sehLS1qKzy00bPkDbJ9a8wYQQv1MUk+Ee/l/c0yqB/RlqrKg7BimsKZi0T6Z9de9fgkyxrd15A7SoeA== Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05920c5a-6b04-42d9-9017-08d7afedcf4f X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2020 19:00:21.5672 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: TrC+gUIQpRaJ5bWxc45joXbwelPWPUFhh/zJtWkCnDElUxoLCpMzgYpHkCgGLzlYbpN1nqNHnoVTy+zTo3VCww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2909 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2/12/2020 7:56 PM, Iuliana Prodan wrote:=0A= > Add crypto_engine support for RSA algorithms, to make use of=0A= > the engine queue.=0A= > The requests, with backlog flag, will be listed into crypto-engine=0A= > queue and processed by CAAM when free. In case the queue is empty,=0A= > the request is directly sent to CAAM.=0A= > Only the backlog request are sent to crypto-engine since the others=0A= > can be handled by CAAM, if free, especially since JR has up to 1024=0A= > entries (more than the 10 entries from crypto-engine).=0A= > =0A= > Signed-off-by: Iuliana Prodan =0A= Reviewed-by: Horia Geant=E3 =0A= =0A= Thanks,=0A= Horia=0A= =0A=