Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp637558ybi; Wed, 19 Jun 2019 05:30:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcOVgbTD/TnTHNMPzV/v3ZcenOxOW77AqMhWkKXJLQDCn8bs9DahSKk2pq1mkcTuqBjUVJ X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr79713070plb.315.1560947415624; Wed, 19 Jun 2019 05:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560947415; cv=none; d=google.com; s=arc-20160816; b=wGCyn0kR/za11/jpY+a7CJu0uAApYA0mYeXKjVMYP3bn5hPINzi75UNFwaUCNinADO He6ov6RYATct17O8F818kri2j/DvM1d5xdVj8tdLp0Zuks/aSJ7cb/xMTDRV9xjdUFGH avfAm2LaaZiZUeCbgstCg8QRSyRGiAu0DYPGm1EJ8nzCWEJdb/fvN3iiKHcp2+Z0EjOn 0+cxNor5iDTGNjLh4IUNIC0PR3Zp5gf+1ExgOy6rAa+L9TRKgwgvoup1ijEW1/gS2ZEE rcMRwCmhRLyKGedErOMOf8yRuM4ghCjCy4/WIM/zHiOobChchxeoLwZusfP5mR/fBYPg Kw+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=thK+o1pabQAWVRYWhw1l4A0Srfpdkez6qz6qPWihxHw=; b=ZvYbR0Q1w7TuWzgkxkAVs8cONUJWLKfoSZvJRadVT1xGotn4Rr7qovCc6pT3aEI7X4 KKEZ0CHAKuTzpwc/Na1QS/jw/+4c8LhchuuXJ59KUGtU5ecOMRDJdKHGtT2PQBylRrSj oGgERcshdMMpfBF9y1+8xyNTYAoDd4wPYdoo4hHJb8R67dla6iLQYtu1b/6Dl952RGOi heX25MGVq50TmUJ5x5CkGrnwNoxc8Cotx4T6s/Yq9n+yC2zp3/cLM1xrDNiCA3CinLUK B7gdp1SmfcvQMrI5FPmsn/YZBytF085dsiEyJohDbPex5qCsnkyvkzh4VlBiieGRrCgm jyDQ== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si2960114pgd.496.2019.06.19.05.30.01; Wed, 19 Jun 2019 05:30:15 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731724AbfFSM3L (ORCPT + 99 others); Wed, 19 Jun 2019 08:29:11 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:37277 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731713AbfFSM3K (ORCPT ); Wed, 19 Jun 2019 08:29:10 -0400 Received: from localhost (aaubervilliers-681-1-81-150.w90-88.abo.wanadoo.fr [90.88.23.150]) (Authenticated sender: antoine.tenart@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 6F3D5240013; Wed, 19 Jun 2019 12:29:05 +0000 (UTC) Date: Wed, 19 Jun 2019 14:29:04 +0200 From: Antoine Tenart To: Pascal van Leeuwen Cc: linux-crypto@vger.kernel.org, antoine.tenart@bootlin.com, herbert@gondor.apana.org.au, davem@davemloft.net, Pascal van Leeuwen Subject: Re: [PATCH 1/3] crypto: inside-secure - make driver selectable for non-Marvell hardware Message-ID: <20190619122904.GC3254@kwain> References: <1560837384-29814-1-git-send-email-pvanleeuwen@insidesecure.com> <1560837384-29814-2-git-send-email-pvanleeuwen@insidesecure.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1560837384-29814-2-git-send-email-pvanleeuwen@insidesecure.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Pascal, On Tue, Jun 18, 2019 at 07:56:22AM +0200, Pascal van Leeuwen wrote: > While being a generic EIP97/EIP197 driver, the driver was only selectable > for Marvell Armada hardware. This fix makes the driver selectable for any > Device Tree supporting kernel configuration, allowing it to be used for > other compatible hardware by just adding the correct device tree entry. > > It also allows the driver to be selected for PCI(E) supporting kernel con- > figurations, to be able to use it with PCIE based FPGA development boards > for pre-silicon driver development by both Inside Secure and its IP custo- > mers. > > Signed-off-by: Pascal van Leeuwen This looks good to me, thanks! Antoine > --- > drivers/crypto/Kconfig | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig > index 67af688..0d9f67d 100644 > --- a/drivers/crypto/Kconfig > +++ b/drivers/crypto/Kconfig > @@ -716,8 +716,7 @@ source "drivers/crypto/stm32/Kconfig" > > config CRYPTO_DEV_SAFEXCEL > tristate "Inside Secure's SafeXcel cryptographic engine driver" > - depends on OF > - depends on (ARM64 && ARCH_MVEBU) || (COMPILE_TEST && 64BIT) > + depends on OF || PCI || COMPILE_TEST > select CRYPTO_AES > select CRYPTO_AUTHENC > select CRYPTO_BLKCIPHER > @@ -729,10 +728,11 @@ config CRYPTO_DEV_SAFEXCEL > select CRYPTO_SHA256 > select CRYPTO_SHA512 > help > - This driver interfaces with the SafeXcel EIP-197 cryptographic engine > - designed by Inside Secure. Select this if you want to use CBC/ECB > - chain mode, AES cipher mode and SHA1/SHA224/SHA256/SHA512 hash > - algorithms. > + This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic > + engines designed by Inside Secure. It currently accelerates DES, 3DES and > + AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256, > + SHA384 and SHA512 hash algorithms for both basic hash and HMAC. > + Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations. > > config CRYPTO_DEV_ARTPEC6 > tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration." > -- > 1.8.3.1 > -- Antoine T?nart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com