Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1973229pxj; Sat, 5 Jun 2021 08:33:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxXiSo3mEN/sJBqg46wylottLt65abgyzBl8zqhixf42bLhZV2E+4ugNQy0WFEpNWfoxMC X-Received: by 2002:a17:906:7b4f:: with SMTP id n15mr9444747ejo.220.1622907227702; Sat, 05 Jun 2021 08:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622907227; cv=none; d=google.com; s=arc-20160816; b=aMhshHVDMdS02nuC3I4KK1SoGpDol1+xlgaRC87HboEGZPBN0pmK4Mw1MR5Ve90ubO 5t8t5u2K7S4HgnnsEbu5qbT5rlvuilUydY0wIjEifilgEV0JzenpxAW0yjQs0UORIPSQ bcgzNpixXJHW05xoX3uNO7timi6xKFNR0lPL7qhSQ9lw+o2YCsjaD5UhWCv9HlPObNjw 59wBwRPdAOaJE+gvEHsRXiRMw+l1fXqbezinu31s+o8YCwGYSSlPICwwsSAiuyySmr+i tDGz4ejTurvpWdVD+INgRVpAPeJTrbnahilE1Hfene/YxZ7H7rRJDhs1dFYKetTJYUif Zs2g== 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=AcyFnZIzeUUqCPFUyZQX8IO2jiIlpl6/0bC+uYTm9E0=; b=bYkQUGZEHFnKwH6ABa9um9R8WBtUuxNxgndUNeLfV/+arrZ+mKukdU2NxLtIeG5Mg1 EzPhs+EkP2iqW7tGi0saATvvTyjEXBq8SOc5Ee/lU4H2C/pDLs71K1zwKfH6COKquKk4 OXOLCavdt17fbjLgDlM7ANPSl8yVmREk8X2FbS2i5PIpwoJil0LBeO3KnMsqHjOxw33z E9ka6b+OqETDLBxK4WXN7zANWwkek9vtFhPXWEyVXy2doBPpk9kw8zVumO6XEBvvVTdW dI6HlPPwW4CcdY+VVjf4bIeaGdt0B8DrnDqcrWmyF9L6wSv8djd7N2RK/Z/T+EFAgF0z l5aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SDPzw7au; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si414959ejh.116.2021.06.05.08.33.12; Sat, 05 Jun 2021 08:33:47 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SDPzw7au; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhFEPe7 (ORCPT + 99 others); Sat, 5 Jun 2021 11:34:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:52728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbhFEPe7 (ORCPT ); Sat, 5 Jun 2021 11:34:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 50F0561185 for ; Sat, 5 Jun 2021 15:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622907191; bh=xaucdI7pVO9lMCy5zn4XOS8h//oGcDSXo3V+CdfJh44=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SDPzw7aulFgyzqSk1pk4zrBrE3y/bt/KH9DBbiIYBpUdpXiRy6qgCUIG7aiWW/A1J 6O274hm8REDQyMuuiO8HwoV0akfB78Kw7EbBelRDV1ltQylAXE/XSQnGq9ZzfwY6O2 esgpYEvLuTST1iznCC2KAkq/m4wzAbF9boZOgIycn7P3qppb/olS1j8aMyaSqTLaiT eRvT6AbtstXddS7XKoKktybAlr+0cPz1O9/vMIzwL2HybLpvhgwUv0ek6YsOnKIcsl OPptVgizd7Ik+369a5Qk9/5RQ5BUHcaBYwP/5a9R9yrciQQd687eXjnhFzfHu+T+1R K6nbEKe7gPAdA== Received: by mail-ot1-f46.google.com with SMTP id t10-20020a05683022eab0290304ed8bc759so12091195otc.12 for ; Sat, 05 Jun 2021 08:33:11 -0700 (PDT) X-Gm-Message-State: AOAM533lGN/Fx+6kiqZNR7hD40oXc5mE5B5CgDtvURoBK/8PHDysPXBO BHIcs91SPrkp7e8r45bfUW7kWVXydUVyocqD2gk= X-Received: by 2002:a9d:6d0e:: with SMTP id o14mr1356951otp.90.1622907190620; Sat, 05 Jun 2021 08:33:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Sat, 5 Jun 2021 17:32:59 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Qualcomm Crypto Engine performance numbers on mainline kernel To: Thara Gopinath , Eric Biggers Cc: Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello Thara, On Fri, 4 Jun 2021 at 18:49, Thara Gopinath wrote: > > > Hi All, > > Below are the performance numbers from running "crypsetup benchmark" on > CE algorithms in the mainline kernel. All numbers are in MiB/s. The > platform used is RB3 for sdm845 and MTPs for rest of them. > > > SDM845 SM8150 SM8250 SM8350 > AES-CBC (128) > Encrypt / Decrypt 114/106 36/48 120/188 133/197 > > AES-XTS (256) > Encrypt / Decrypt 100/102 49/48 186/187 n/a > The CPU instruction based ones are apparently an order of magnitude faster, and are synchronous so their latency should be lower. So, as Eric already pointed out IIRC, there doesn't seem to be much value in enabling this IP in Linux - it should not be the default choice/highest priority, and it is not obvious to me whether/when you would prefer this implementation over the CPU based one. Do you have any idea how many queues it has, or how much data it can process in parallel? Are there other features that stand out?