Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1682011pxj; Wed, 19 May 2021 11:21:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUytUr5GOpGsQFnsbExK18L8Zp7aCuAS18NCh+3YqFKl1XX2KKoT09SZveV1CHYKnziP57 X-Received: by 2002:a17:906:84d:: with SMTP id f13mr425325ejd.451.1621448467765; Wed, 19 May 2021 11:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448467; cv=none; d=google.com; s=arc-20160816; b=F/3eBqz8TVk2UgdhhyqTuK10de/9vEdhbLtwxroij9CjIhwTyAnzixR9pudb/AEVbp HE/LVuE6E+Cv7SyLc9zdFy85nd9PZgsGXTErKBAOTztk+4cKkNqWZm2EqQ0u/YA2UgNF ob4wcHyU4z/i2Nm9spYmDCHi5fdNqpXJOfnomzdElVFGeksH2zsYApakPyfxFB2RXX/0 DNhpFUXTdUeGaEflECayle8crtMOMHUf5gyU/Eq6NczUeuEZ6Ip30fYDvHXU9vY3oT+w GmH5j0m3rUu9ST6vWtlvmcke6EQPC/HUaT130cvYRSCns6Rb6wjtM/h+jJnZqTS25lEw ruaA== 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=fHk8jTLjGRhBkosG/Y9mmV4IXiwYJNJWhiEHtFbYDBE=; b=qOPTghyi7izM4eiwF1WeKZgt6ejTOShJIpTvMvN5OP+FjLN9WaSpaDGcfPL2Gvjt0Q RjcXKgHx/M5XI8PLD9DCjr0RPKrMBBXA8iTpetLrOmXHC/T7FCxN+5nY/nh6G/AzpT/o XhcqrHuJPNNd8wrbct1D/zX+sEPmXYdXeIXD6hBZueMlyuDfVhVCU8cKYwBE6PY+J/09 nlGDOh82b9lp5bOPLH+pjXTaSgNqH6uKcArhkZ1GmWLKWoOG377jb9tYfJcRZG7cJIrT Pv34XXWtrhXKrK5g2s4FSwIdxF9+nIrkKXBIwHbvmfB51WiSXenEf4vkARVClHU/q4Hn vDtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KL8aoq2d; 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 t26si361849ejd.446.2021.05.19.11.20.43; Wed, 19 May 2021 11:21:07 -0700 (PDT) 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=KL8aoq2d; 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 S1350253AbhERPjb (ORCPT + 99 others); Tue, 18 May 2021 11:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350250AbhERPja (ORCPT ); Tue, 18 May 2021 11:39:30 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35F33C061761 for ; Tue, 18 May 2021 08:38:11 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id f18so9675354qko.7 for ; Tue, 18 May 2021 08:38:11 -0700 (PDT) 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=fHk8jTLjGRhBkosG/Y9mmV4IXiwYJNJWhiEHtFbYDBE=; b=KL8aoq2dBknGdwjLoxfcvrplt+zbdX4cbam2aZQNX1/s4a3hyLLKwCL570ng4FkciW caehR6MGKn8Jz6XiEa5lcmt+/9BX+B8mJBcgl9LSiD4UWG9UsnzX40ErxOeUnaNbBQQz 9Y+Yn83CBn0i8D/AH4OsAwGCEsDLShH9uzUevV2+AaHC95xUJhgGsC2oKcfNpDuUSgaI beZF5lY9Ga/E97/OoUd/G77UkrnKBseOWRBsnr0zWAAriMrqSanKC/a1+uT5Yg5yU0L2 A/eSTy4mgkHx9KiTf9AuQQ/HqD7RhNspwhPF0DL7BG2jCf+hfgvX3nAFk8xWUkd7POrf PJxw== 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=fHk8jTLjGRhBkosG/Y9mmV4IXiwYJNJWhiEHtFbYDBE=; b=gztl+XnrIw30aW39BEBA2ym1iBSlYDeH14ecbowkRKhIn75EpS66q9r5JARF40j+6r xsYI3UCstcOOz8DY1ykbL9C+zZZk8JWc/DWiLhj/siUUhUsbLIoCFoWKIZfzw5lVlBpE 8aHxbc6Umd7lB3+6V98ye7fKn9jduEq9y/XxH4oIAbNCN0uDi+xrUPP/8bnp6kwkFqwp 1ix2mz0MDfhj0+Zk1VkKHQicWprX9RwpN/O7gS5JCNtdVxMDpowhkKWDMlAu/6mXgb+L Usgxd6Bkd+SJOCvlQP/YfmISb0mqjYTrY9iXBtVoyP5+dfTTl2uK5PSbsYzdI65Fm6nx x+7w== X-Gm-Message-State: AOAM531Dp3B8TdYvsJGum8Stxa/FQpTAJdYf6ofQsucHIA3yMgtRMpDK UOI8Wj6wUqL3RzZKMSZT2758JA== X-Received: by 2002:a05:620a:2291:: with SMTP id o17mr6071185qkh.150.1621352290394; Tue, 18 May 2021 08:38:10 -0700 (PDT) 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 o4sm7155973qkb.29.2021.05.18.08.38.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 May 2021 08:38:09 -0700 (PDT) Subject: Re: [PATCH v2 09/17] crypto: qce: core: Add support to initialize interconnect path To: Bjorn Andersson , Bhupesh Sharma Cc: linux-arm-msm@vger.kernel.org, Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , Vinod Koul , dmaengine@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com References: <20210505213731.538612-1-bhupesh.sharma@linaro.org> <20210505213731.538612-10-bhupesh.sharma@linaro.org> <20210518150702.GW2484@yoga> From: Thara Gopinath Message-ID: <180046b9-35fb-f7c1-fc92-a0fb5eecace5@linaro.org> Date: Tue, 18 May 2021 11:38:08 -0400 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: <20210518150702.GW2484@yoga> 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 5/18/21 11:07 AM, Bjorn Andersson wrote: > On Wed 05 May 16:37 CDT 2021, Bhupesh Sharma wrote: > >> From: Thara Gopinath >> >> Crypto engine on certain Snapdragon processors like sm8150, sm8250, sm8350 >> etc. requires interconnect path between the engine and memory to be >> explicitly enabled and bandwidth set prior to any operations. Add support >> in the qce core to enable the interconnect path appropriately. >> >> Cc: Bjorn Andersson >> Cc: Rob Herring >> Cc: Andy Gross >> Cc: Herbert Xu >> Cc: David S. Miller >> Cc: Stephen Boyd >> Cc: Michael Turquette >> Cc: Vinod Koul >> Cc: dmaengine@vger.kernel.org >> Cc: linux-clk@vger.kernel.org >> Cc: linux-crypto@vger.kernel.org >> Cc: devicetree@vger.kernel.org >> Cc: linux-kernel@vger.kernel.org >> Cc: bhupesh.linux@gmail.com >> Signed-off-by: Bhupesh Sharma >> [Make header file inclusion alphabetical] >> Signed-off-by: Thara Gopinath > > This says that you prepared the patch, then Thara picked up the patch > and sorted the includes. But somehow you then sent the patch. > > I.e. you name should be the last - unless you jointly wrote the path, in > which case you should also add a "Co-developed-by: Thara". > >> --- >> drivers/crypto/qce/core.c | 35 ++++++++++++++++++++++++++++------- >> drivers/crypto/qce/core.h | 1 + >> 2 files changed, 29 insertions(+), 7 deletions(-) >> >> diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c >> index 80b75085c265..92a0ff1d357e 100644 >> --- a/drivers/crypto/qce/core.c >> +++ b/drivers/crypto/qce/core.c >> @@ -5,6 +5,7 @@ >> >> #include >> #include >> +#include >> #include >> #include >> #include >> @@ -21,6 +22,8 @@ >> #define QCE_MAJOR_VERSION5 0x05 >> #define QCE_QUEUE_LENGTH 1 >> >> +#define QCE_DEFAULT_MEM_BANDWIDTH 393600 > > Do we know what this rate is? > >> + >> static const struct qce_algo_ops *qce_ops[] = { >> #ifdef CONFIG_CRYPTO_DEV_QCE_SKCIPHER >> &skcipher_ops, >> @@ -202,21 +205,35 @@ static int qce_crypto_probe(struct platform_device *pdev) >> if (ret < 0) >> return ret; >> >> + qce->mem_path = of_icc_get(qce->dev, "memory"); > > Using devm_of_icc_get() would save you some changes to the error path. Right. I keep forgetting to use the devm_ version! Bhupesh, will you do these changes or do you want me to ? -- Warm Regards Thara