Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2558466lqo; Mon, 20 May 2024 09:16:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzm67MaWEZ/KItfjgmjL+39EpD9bH2vvAYePXWVwf3BUwZXsQYoHti+SijoQsRQSW/jAbV230pb7lDpoRnXs6FsE/F6GnOIA+Dg8yzqw== X-Google-Smtp-Source: AGHT+IFY4Gl/CK1yBMIBQh9jfulkTS6Lu0qiJBD+CMkd84z1D7PE6wf8ImWv7GrONoqroKgpK4zI X-Received: by 2002:a50:d710:0:b0:572:1589:eb98 with SMTP id 4fb4d7f45d1cf-5734d5b9098mr19316066a12.12.1716221789594; Mon, 20 May 2024 09:16:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716221789; cv=pass; d=google.com; s=arc-20160816; b=Mq8lcuMNaXXbl3QjaRcTF2h2p742BY/7VbAYy4HS45gg8raxJG4Us2K56roxllGS9o jSUwiZqUzvsWdzGnQt67g9qGXGB9dDyLz/ilCpJ+1v8/cvU2Sr8i6NihZjZWtW1TwcCY Y0+9NS9KTjpRsHmZOVHkr4F4DDERG7/oJl7GRBUMP5Rz7hmyQIMeGmUVsUNsS1rDR/40 QpZsH7bHFXSHY7NCbKMoKiFg000rswNZNXCsbEVGHRRpz2dP6K16xuuLOMBWyF5fEKF5 gtxJ7En+prf8ltVHaQ/j6qMdwI4umwUNJJR59lSwMVD3vb0s5RvlcZERuv6RSRFA4h0M QXGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gaPkEGZ9z3QZrKb5CJFCDWfUMwWBaDNvFYUGwHCzLAY=; fh=we24L5/p7RvqNlkeOcmgC/hYEfKHdJqZZahDhorsJ4I=; b=Evjw4zjM6dj5QpDfRaIxTGu5scXLxsc/Ggww81flD6x6hsBVE8BziLgymnqRonSPfw uG66k23ED5BVreAi3iysemR1/RwRJOuQwqXcHNUuiMbnbe3AqHaEaRTw4Fqsyzmkj2TD vas8TSciT/g7wFkfYLUhj8Ap3oc44TK3E2myR+4/61unAblPVkaocgXW+CiYCpcGJ7Qm g1ih54SXtL5xq2LPABKWe2pTBTEwccgf/vyehZwxSUmY+E9ok06FVf8Axzzb6VbctNIG lpa3UgoUZx3T5RXsCgzs4js1PKQvQD18ms3q6BuKeUV7ThzDyzswp0th2y1rSdtH0wgy rK0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IDnsWQoQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574fa08c59asi6627722a12.615.2024.05.20.09.16.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 09:16:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IDnsWQoQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B77C1F21827 for ; Mon, 20 May 2024 16:16:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AAF24137C33; Mon, 20 May 2024 16:16:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IDnsWQoQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D095420EB; Mon, 20 May 2024 16:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716221770; cv=none; b=dNYP8MC0TmhhyEa10TIKOjNCf1Z4TgvWT5rFG3ldoGrcyTzFZ+OyZ7G/J2JxcYCaHzf52XnjtSq2glEBBZP9S9ClIW7ly8CGYorIp0b52k+WZOsY4SU6hupCOcSfJGaZWYjVzav5SdiRxQZMxDnwW7z0GTfvwR6aUnJV1XQdG2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716221770; c=relaxed/simple; bh=SttX/DO61CoJnVDpAsUBeGqr9cNviZAdiv65U5Z6Mic=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OVnYtaD7DCS23pZlmo75nOzZS5NMcPis+jqYYzDiqyOvQmnw3BL9Qb6GcZ2+ZNTmbN04KmThDohUybcKAJpaTFJ9M8F3hDkSrCeYC5RLjgxaDQHIs3yT0XGnsVyIcStgzPtTg6akWcO1ISD28TnHoHG+ACIPAz8alwWGnmLRgDg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IDnsWQoQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40658C2BD10; Mon, 20 May 2024 16:16:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716221769; bh=SttX/DO61CoJnVDpAsUBeGqr9cNviZAdiv65U5Z6Mic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IDnsWQoQQ9pI5xxfjIze/9eiBVEuAxiVVokXjSXPdrC9hLx3ZCtdebL/h63WRZB1t IjLZNINCDleziVR0x4FYZtBHkWc+DndCkd8q6oWxDPRq1esV6jYQiSlXTgJ6lcrsd3 k5eJd8GqBJl76w04o194vvPdKlLs8KCS1z7E40swePmJWfiILLDrmJzYGIza4avazy GMjEc+tyRgyypWHfWOC6bj1JWjNW7raDymRhsMy3UHP/5A5nb2AkqkXt2iBD+kvfUT d//sAPDBEIa8PfsoPRESedloYgQ3Clnw1pC7cnS3tm1mKTBOCFK6//vrcjaeAYj0aV M59bcSFQUfH8A== Date: Mon, 20 May 2024 09:16:07 -0700 From: Eric Biggers To: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2] crypto: x86/aes-gcm - add VAES and AVX512 / AVX10 optimized AES-GCM Message-ID: <20240520161607.GA1269@sol.localdomain> References: <20240512073124.53568-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240512073124.53568-1-ebiggers@kernel.org> On Sun, May 12, 2024 at 12:31:24AM -0700, Eric Biggers wrote: > Table 3: VAES-based AES-256-GCM encryption throughput in MB/s, > implementation name vs. message length in bytes: > > | 16384 | 4096 | 4095 | 1420 | 512 | 500 | > ---------------------+-------+-------+-------+-------+-------+-------+ > This implementation | 13139 | 12070 | 11466 | 8999 | 6949 | 6048 | > AVX512_Intel_OpenSSL | 12927 | 11499 | 10976 | 8375 | 5386 | 5853 | > AVX512_Intel_Linux | 12656 | 11263 | 10779 | 7958 | 5592 | 5029 | > AVX512_Cloudflare | 11120 | 10186 | 10075 | 4856 | 4919 | 4786 | > > | 300 | 200 | 64 | 63 | 16 | > ---------------------+-------+-------+-------+-------+-------+ > This implementation | 4709 | 3512 | 1787 | 1765 | 714 | > AVX512_Intel_OpenSSL | 4157 | 4071 | 2493 | 2132 | 1042 | > AVX512_Intel_Linux | 3535 | 2686 | 1416 | 1203 | 572 | > AVX512_Cloudflare | 3062 | 1110 | 1042 | 1028 | 169 | > Note, some of the AVX512_Cloudflare numbers were slightly off, and I've fixed this in v3. v3 also includes another small optimization. - Eric