Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19566505rwd; Wed, 28 Jun 2023 10:58:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4P5AamCRW3aW+hjhq9pvSYeyKviOR0+43pQwj9ubW/1A8nDZa4RDUbybJ4hG+bb2uWIZnZ X-Received: by 2002:a17:903:3303:b0:1b8:1591:9f81 with SMTP id jk3-20020a170903330300b001b815919f81mr7088440plb.4.1687975112809; Wed, 28 Jun 2023 10:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687975112; cv=none; d=google.com; s=arc-20160816; b=04LM0weok397u8m7HSwsQRcxKDaF3HKjdFS4PcyNMmNdWuHhcuQIKRXp3dSouDCJ1c 1NCY5gB5oNNr7JRaS3y2I1P0ROODLDGYt7H+EB5NtdKDi75eVWIZJdYjwBPpYrBVOvkT 7PPoNOY9VccjqhSu7ISppe/1jnno5vXySETp5x6+MV8/IM/OFnFykXN3KpXl75/eEysf lT8070ythzzmhaF7RZyL3DMepZDEOGfmoQmwN2IgeJ8xhDNIvvA1BJ6IghYJvMSulp4G kOEtsA17jt4BD2YD770v2b+FJYRjlmPs5E+q2eoRAymitrkNyPv23vnSKaZdyntSTxEl oi/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xzJ3agvy6aMZbDBLnBAFb3bF5ij6CYGOE1V5UUCtqi8=; fh=YiJrBEWid7EeR6NK5QmRqb+D47DCPQrI//KI5BSTOXs=; b=Cp/7cPeWvRPCI3yk6szQf3zriOEpexGTEXTeR8hQBFBG71pyakJsx+UGQYqjVYokDw ac9yahA1NYZckwjcgLJoXtunZYVM4VMb09w0N8+RJfmAVbN1BkbQtjzi8MkIrvxePuIK IB15dCoUYlibpTx+ji9a/nvfPra4ohRoBBQ3koifbiAbWDcmbmktAqC8KFlc4Ubw3PTa j0K6SzfWa7Xu8LEMa0cb5iv4S7zKXFhpY9MpW5MPY6l9SL7VAuoIkIJMK+xk4IGGmY+B HRsGH8nimtEPZjYrKvzoCSikbQVDs9nyq7wWZeIcP+ctiuzl+Gi4HztL/aiaDoHR1Uhq fBUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=e3EdsGQ9; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg13-20020a170902fb8d00b001b829a32f36si2449018plb.637.2023.06.28.10.58.18; Wed, 28 Jun 2023 10:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=e3EdsGQ9; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbjF1R4O (ORCPT + 99 others); Wed, 28 Jun 2023 13:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbjF1Rzg (ORCPT ); Wed, 28 Jun 2023 13:55:36 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51C8426B6 for ; Wed, 28 Jun 2023 10:55:35 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-991ef0b464cso228773466b.0 for ; Wed, 28 Jun 2023 10:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1687974933; x=1690566933; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xzJ3agvy6aMZbDBLnBAFb3bF5ij6CYGOE1V5UUCtqi8=; b=e3EdsGQ9qS3fe+W38gTuA/gIWv/5nGlsXwqen/AwkR1V60xqcJGVjCVJ5oR6UQF5UD tkowzkQFjGIeYSHl+yAJc+85/9GOZvzbXJcesrsngSzqwi7lDLAq0vR9CBSqCleCHokV 1Nw/6D4uNADzR04ouVMjFOAyu4gY5mDwD3T2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687974933; x=1690566933; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xzJ3agvy6aMZbDBLnBAFb3bF5ij6CYGOE1V5UUCtqi8=; b=WHggAm3eXi9kLRgRvLWqmWAp/Vi5k0IN2Y2I8veXJ45LnT8FAAfzpmLHBL4uAXgP/P fl9RBO9fK7eTpKyIJzzhpgaANp/OOVO7tiACX7yXhQ/7GrMom4tY3hWsk1NTbPsdmpLM ZXReolwWsY2Zhrw8OeX1zKi7/zQJGtCJRrDZWWpOQpq01WOlj2VyQKuHRef6KySbYyjg Up37BI3BWXDF+FpNHuYJSvkrdmboMWA5NAe7zVHZgJ4x1MkUykf4oYBEpTOSt/wMD1sm 2l2Hg5k/IkvB65mDUgq5YXpkgrWE5Qy7nRhAcW7mQXJSiGUkjr2TC9OEOnF+Q845WFYv NoKQ== X-Gm-Message-State: AC+VfDzLVZQAUSpd8fdiwuFzCIKrogklXf7B3FrpYtbsQAx/5pHkwmCe VeEL0DYi1eR03qhE94suKwQzefd8J1tY2BaVDTX1mVqS X-Received: by 2002:a17:906:64d4:b0:992:4723:fc81 with SMTP id p20-20020a17090664d400b009924723fc81mr1610666ejn.17.1687974933610; Wed, 28 Jun 2023 10:55:33 -0700 (PDT) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com. [209.85.208.42]) by smtp.gmail.com with ESMTPSA id b22-20020a17090636d600b0099293cdbc98sm532438ejc.145.2023.06.28.10.55.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 10:55:32 -0700 (PDT) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-51dd0205b2cso1616091a12.1 for ; Wed, 28 Jun 2023 10:55:31 -0700 (PDT) X-Received: by 2002:aa7:ce0e:0:b0:51b:c7fe:970 with SMTP id d14-20020aa7ce0e000000b0051bc7fe0970mr2089479edv.7.1687974931598; Wed, 28 Jun 2023 10:55:31 -0700 (PDT) MIME-Version: 1.0 References: <570802.1686660808@warthog.procyon.org.uk> <20230628062120.GA7546@sol.localdomain> <20230628173346.GA6052@sol.localdomain> In-Reply-To: From: Linus Torvalds Date: Wed, 28 Jun 2023 10:55:14 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v2 PATCH 0/5] crypto: Add akcipher interface without SGs To: Ard Biesheuvel Cc: Eric Biggers , Herbert Xu , David Howells , Roberto Sassu , Stefan Berger , Mimi Zohar , dmitry.kasatkin@gmail.com, Jarkko Sakkinen , keyrings@vger.kernel.org, Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, 28 Jun 2023 at 10:45, Ard Biesheuvel wrote: > > Both the sole acomp h/w implementation and the zswap acomp conversion > were contributed by HiSilicon, and the code is synchronous. I really think people need to realize that the age of async external accelerators is long long gone. Yes, it was cool in the 80s. But dammit, so was big hair, mullets, and Sony Walkmans. Just give it up. It's a complete failure, and it is not making a come-back. What is still relevant is: (a) inline accelerators Doing checksumming, big packets, encryption etc ON THE NETWORK CARD as it is being sent out and received is still very much relevant. But not this crazy "CPU gives data to external accelerator, does something else, and is notified of the result and goes back to look at it" is bogus and completely wrong. (b) synchronous CPU accelerated routines Whether this is using just vector instructions, or special hardware, they are synchronous, and they use CPU virtual addresses directly. and nothing else matters. Christ, people, Metallica even wrote one of the greatest song of all time about it! How much more proof do you need? I seriously believe that the crypto layer should basically aim to get rid of the silly async interface entirely. It adds no real value, and it has caused endless amounts of pain. Linus