Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2432433pxu; Fri, 18 Dec 2020 13:09:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcnmEDYTBESVIWfmTPB5uCzq5UDU9VqbuFU5OBBkNcNu7mVk82ANVNqWmJWIwUg2ZpQbJZ X-Received: by 2002:a05:6402:407:: with SMTP id q7mr6284786edv.312.1608325784368; Fri, 18 Dec 2020 13:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608325784; cv=none; d=google.com; s=arc-20160816; b=WvMLCEOjpZ7NKm3APjptQVrD6zZ+dNcqK+yygZU43gPeqXdmJBZvaIy24RY8AfVTd7 P5WIhEyF8J+zY4s6IjyzgBO3enPeon1fzRkuo2kgFmxlAJRgAcKv0vwf/3HsTsJWy5Yw guANHT9JZNoRPRflZmoaUfo1HIh4xoqc67JWKx3h8t+qb2rubznZNkD6veBPjIYe3uYh /SCuhfyg5j140ybjU6aXysKEMwJyezK1F7vC8wPFjcS6FaM9j+VZyGfQtJsZkoN9tVME PYJMTH4GSwdbDjPzPWJjYeZ4/SNrzPBOturFfFj6wDvySJylP2s8rF4KzRE4ztz8Fx4p bmTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=/zp/HiSQO0gtix4YPEDweFabCyj8yogL8g+0on64qis=; b=YlY5qoFVEJ1Z7XUoQLtRi4FEHx1hAkGhGPKZj6Ned2bZOsTnZKaOUYR4Z0QTj9eOXP o0TfApIgchhqIqyurlkJE1XfGmZG1ziHe1iK3NhIbMS9uyXYVYbJlqrkZpYDpaXfEIRm KUHUSs/jsgxD5dN7rkoShUoaCalJPEBXwaJDxjMz8S0MBhxdlAQRxSspdGo+JV2F4XDz 0Cdo3gIvkLca9uAMQ0XT6nTyPM1E+yLkSyRKSoH66f6eos673CpFY2tJIpfUDJAEKN0M lbplaznf7AG2WAVfcg416c5/9YGnjWS/tbI4+rbeiJ8vufbQBQ301RExKxwiXOAhIuhS aWqw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si5316676ejg.492.2020.12.18.13.09.25; Fri, 18 Dec 2020 13:09:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbgLRVHn (ORCPT + 99 others); Fri, 18 Dec 2020 16:07:43 -0500 Received: from mga06.intel.com ([134.134.136.31]:16596 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726288AbgLRVHl (ORCPT ); Fri, 18 Dec 2020 16:07:41 -0500 IronPort-SDR: 53Ldtc7gzAPtwyrCRc31d7QyK6SOl+4Dh1A3X5cxeBluJzbtzbjx7kuOJ+pUxMIkGgmcO9nupi H/0kL+k021DQ== X-IronPort-AV: E=McAfee;i="6000,8403,9839"; a="237075270" X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="237075270" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 13:06:42 -0800 IronPort-SDR: SLjTefUzJ0wkJaAv3c9251DYYwgRC9DSf3VPK3NKzbao6zbDSKNxot3XcMRFqMPNh4ylxcevEc BHVz78131V0w== X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="370785952" Received: from megha-z97x-ud7-th.sc.intel.com ([143.183.85.154]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 18 Dec 2020 13:06:42 -0800 From: Megha Dey To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, ravi.v.shankar@intel.com, tim.c.chen@intel.com, andi.kleen@intel.com, dave.hansen@intel.com, megha.dey@intel.com, wajdi.k.feghali@intel.com, greg.b.tucker@intel.com, robert.a.kasten@intel.com, rajendrakumar.chinnaiyan@intel.com, tomasz.kantecki@intel.com, ryan.d.saffores@intel.com, ilya.albrekht@intel.com, kyung.min.park@intel.com, tony.luck@intel.com, ira.weiny@intel.com Subject: [RFC V1 4/7] crypto: tcrypt - Add speed test for optimized GHASH computations Date: Fri, 18 Dec 2020 13:11:01 -0800 Message-Id: <1608325864-4033-5-git-send-email-megha.dey@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608325864-4033-1-git-send-email-megha.dey@intel.com> References: <1608325864-4033-1-git-send-email-megha.dey@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Kyung Min Park Add speed test for optimized GHASH computations with vectorized instructions. Introduce a new test suite to calculate the speed for this algorithm. Signed-off-by: Kyung Min Park Signed-off-by: Megha Dey --- crypto/tcrypt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index a647bb2..6e2d74c6 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -2595,6 +2595,11 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) generic_hash_speed_template, num_mb); if (mode > 400 && mode < 500) break; fallthrough; + case 428: + klen = 16; + test_ahash_speed("ghash", sec, generic_hash_speed_template); + if (mode > 400 && mode < 500) break; + fallthrough; case 499: break; -- 2.7.4