Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1349423pxu; Mon, 23 Nov 2020 19:39:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJygW5Ys2q6gfDHRSlRDV2CXu2pSz3xLhvWkcdTgumTkMXamlo4FfLUowLFBjsTGy6yDOUPN X-Received: by 2002:a50:99d6:: with SMTP id n22mr2181060edb.261.1606189146564; Mon, 23 Nov 2020 19:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606189146; cv=none; d=google.com; s=arc-20160816; b=qkQJV3QXAdHogySJwaftsQdI0p3QGBzPanHbjEWSIi5WtFvGyck38WdT9IAxcjeMpo mss+mLuapxitaIAKk1Is8+SzIR0QT80SZ5EHuN4G5cXtQ3yB0fHk7tU1Ej0UjAzsPtNQ K+cVeTEdAQT1esW666aDflm+X8At/Rv4VblEdPUe/fw/K8OtE6MYltzU5tTCGtrIva8C UtsZv7IjYmyGamXHeIBNLc0MQ8LsB89PbUS3WpeyrPzEJZNaQH7t6NGitfXHvpgumIvU YZI+utFjvwyZ3JvBz0+qn7nTR2LO8QmaCmUZeaiY12PD0dRrJaZOW9WFqIcYIJegd+pn Fgaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=tNsYBLHLT9rrNvfsGBebo2tQKLhppSv7kANHpJdP/lI=; b=KOO7fW+FWT3Kez4pcaJ8JhCL+sm4eVfq8cqIUJah3thHfaPEbmCBjv04V7v0KRadLV WoUDHd7U/e7M3g2V2GvT2PUyitIQyrF4/yGGnoblfBxME9Bdc8cBpHC26jfjRzJaDZR3 /xnLHDVte4fctBfr7xDq4aA2gAEXg8hzimTQij04yiadyOzhbcwdl9hns0yLCdIv/QfL Kv8mRlhnn5BNDKnK2DQyW8D4V9jh4EzsSV8ITe/Dgpse9SbuCOeyOFpEAZs1gwa4pFnZ 50R+cVOa0ntXGEuszyZvwhQjq+c0xTLIlr8tc0z+Hgr4TOxi6UStMoWv696no9oRQHeo HPrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s4JDUqbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si7514946edi.360.2020.11.23.19.38.44; Mon, 23 Nov 2020 19:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=s4JDUqbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728559AbgKXCnE (ORCPT + 99 others); Mon, 23 Nov 2020 21:43:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728491AbgKXCnD (ORCPT ); Mon, 23 Nov 2020 21:43:03 -0500 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDADC0613CF for ; Mon, 23 Nov 2020 18:43:02 -0800 (PST) Received: by mail-qk1-x741.google.com with SMTP id u184so4626939qkf.3 for ; Mon, 23 Nov 2020 18:43:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tNsYBLHLT9rrNvfsGBebo2tQKLhppSv7kANHpJdP/lI=; b=s4JDUqbrpI3rYJL0OWcii5UkUUD8CaKQ66QI8UxdC5zm5henEoV2h3SKIcT4USD8Is BxPdNoWkR8tYRTfFXFBrnAi9psiWgUpOSQtB5jKqoJ1ccx56LTdolESBS+vmRsjSWx4G i4BbhFoZcKXAwPiSThUFIHzJh1QRHIRUxL+p1EHCXYhWJQSP6TdJ6A4ZqOAky7qrcpZ9 8DZgMnuEVlHYJO6X+foxpndqNcWTx+q0Eb0UgEyJH3PmA+VGF83fQsQn6QOnCW68PI+P S+WqPKCnOUae2/UAyZEw6u3s+avVSwxCtkDbvuQWnID2rVyk35nz4hP5h/dTsPPMB00O 6I6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tNsYBLHLT9rrNvfsGBebo2tQKLhppSv7kANHpJdP/lI=; b=f2HF8A06VYjj9652qrudHhEmgx01Iy3b75eiNkdWd8fCPtVfwHh9+0BPL70JrHjT2T ZwbSCGsxDQwl8GKOF+XQUVgEUrstsjT4k5yEH4UAMkizl/X6esESt8sZlZQgMntlB3y8 CzOaPd9CZdWSJ/jWSPeuci9qEd3aumCgWpSchaY0oKu5O7OK+L7tzYCrjyQnh4uWMt3y vjN3tFPOyYVY0v0ATi7aaiw9V9RTHEHXMsO2mkFCRMNyZlwmqiyc6E8bWER2q36FjJRz RJOy3EPX+k46xvTuPuqjZK3fd/xj3Zmz6XN1nYXR94tXM9Ru7LbYmiZfqUyLPEjKxL6D HUPQ== X-Gm-Message-State: AOAM5315qQ/yv9PpTnL8IN8B4G94zSFuipXON45Kko0cS72ea7Ju6Yz0 hsHO6krtNjY3SSNhXhdosV+7qg== X-Received: by 2002:a37:a249:: with SMTP id l70mr2545611qke.79.1606185781595; Mon, 23 Nov 2020 18:43:01 -0800 (PST) Received: from [192.168.1.93] (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.gmail.com with ESMTPSA id 68sm5412251qkf.97.2020.11.23.18.43.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2020 18:43:00 -0800 (PST) Subject: Re: [Patch v2 0/6] Enable Qualcomm Crypto Engine on sdm845 To: Eric Biggers Cc: agross@kernel.org, bjorn.andersson@linaro.org, herbert@gondor.apana.org.au, davem@davemloft.net, robh+dt@kernel.org, sboyd@kernel.org, mturquette@baylibre.com, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: <20201119155233.3974286-1-thara.gopinath@linaro.org> From: Thara Gopinath Message-ID: <48ea0a56-397e-5345-d693-cdc73b20875d@linaro.org> Date: Mon, 23 Nov 2020 21:42:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/19/20 5:44 PM, Eric Biggers wrote: > On Thu, Nov 19, 2020 at 10:52:27AM -0500, Thara Gopinath wrote: >> Qualcomm crypto engine supports hardware accelerated algorithms for >> encryption and authentication. Enable support for aes,des,3des encryption >> algorithms and sha1,sha256, hmac(sha1),hmac(sha256) authentication >> algorithms on sdm845.The patch series has been tested using the kernel >> crypto testing module tcrypto.ko. > > Can you please test CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y too? Implementations of > crypto algorithms shouldn't be enabled unless they are passing all tests. Hi Eric, Yes. I will get around to this probably next week. > > Also, did you compare the performance of this hardware to ARMv8 CE? I thought > that QCE (at least on other SoCs) isn't very useful because ARMv8 CE is faster. That is surprising. No I did not compare performance. But I see the Qualcomm crypto engine driver enabled and used in the downstream tree for this platform. I see no reason for it not to be in mainline and to be maintained as an out of tree solution. I will try to run some performance benchmarks soon. > > - Eric > -- Warm Regards Thara