From patchwork Thu Nov 19 15:52:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 328424 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp471562ejb; Thu, 19 Nov 2020 07:54:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVs91ZDrcZ8zWybcKDDDhCt04cUvYZlwZobeNYVF3G/NEfQReWHT8H9FPjOERgpnflvtuL X-Received: by 2002:a17:906:11c9:: with SMTP id o9mr13507001eja.279.1605801243840; Thu, 19 Nov 2020 07:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605801243; cv=none; d=google.com; s=arc-20160816; b=Sk1wL601zuS7wXmScSFwm7cVgQS6LyXuuscs1G59KBRG70jjIPjNFp3eoh4eXf8Pvw 268+UpFs/49jbSLfHCveRdjl2rBvGlugozQNpBBdYMyDHf2j7dmEpTD2cqJiWA0vZviT Q73nYCS7qNBWSozbw4AEa/xjZK6C0x3urSfLhEjE78X4SnzCZfLTnr071XHdLatUwFEt TSvQc6T5Y/D7cFo1Z7aF5Chxbklqyn5lSW2D0ICNsX9OuMkGYZI5FfrkEnQdaFkIP4cC 6fg17qjkb63UI6vguPcHHNH3iz21cuGPRzDnsc9TAmU6b/kFMIdW5DjCB6ox9ftVfPA2 xgsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Npw6pndFeDGN1j2LCowh5jKLxcwFxW0ubJq0P0MtToo=; b=D/eOveVmjzcCg68/CuaBAkLwqL/+FtJAvt5QRkV334dgaFzhSi+kbgkh6RijOS/XP7 0T+AB09X/colV9JhSjgteBZ8OkemmW/niKpolh8jn+wf6C8I6ht2eR2xfiXUEfhsGSm7 jMTf9aHgdegKgs0zndKLJlzT1BQ8Rv22MEUFBtgljuBIzVr/txl6WRKSsq9X+3nXMDRc cCL9BsPCWIV4ybPGi9DnlbHHCnBQHFdECU7hANQYw8awPEvDcNLaUGNNzN6CHrBX3Z2C pOAbGSFE/V0IwgA823pf6nlB1UcUCUNixvJNvI9Tt+cH8IafyP+AzDV2LFXIQ72GaVBk WPaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tzSx5Bzo; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ok23si67063ejb.243.2020.11.19.07.54.03; Thu, 19 Nov 2020 07:54:03 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=tzSx5Bzo; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728857AbgKSPwi (ORCPT + 6 others); Thu, 19 Nov 2020 10:52:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728874AbgKSPwh (ORCPT ); Thu, 19 Nov 2020 10:52:37 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EC1BC061A4C for ; Thu, 19 Nov 2020 07:52:37 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id a13so5792549qkl.4 for ; Thu, 19 Nov 2020 07:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Npw6pndFeDGN1j2LCowh5jKLxcwFxW0ubJq0P0MtToo=; b=tzSx5BzoSWa+UyX23Szfm8Za+2AUHXHyE1c/mT8Nff0Lu1w8kEyfDAAdP57DYKHkJO oyfEj6ErpuYVuwv3FgF4lhNkvWwj4EJIs/hzwmU8+M6fasdS2y/UwZCbqx+8G7lfhqt1 ga1EqQZzUpNH8TaRzgVMMhtemfyvlFCLuFtfcuMmnl6YxwXLVjWUKYb0k2RKp/KEhVwR aes6IhVH4Y1BRnGT2gIE2gVBpAz3GqTREs6T2yeYNWgTPwfvV3wvpNF69WaMgKRDk/Pd BrUWYSc3kAfGV4NdD0cfhjsxBeQk6eAvvUbhH4OrZ4P+0FROL3rtlVXPT/GqPkG9PGZG KYpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Npw6pndFeDGN1j2LCowh5jKLxcwFxW0ubJq0P0MtToo=; b=SVsR4h30OVi6fiTQur6tE2RLvDGFW8PW2k7D8GRmw90wBWsmiZNsD2pqU5pkHpT4gH T50gQZUVEWJn+WcovnqWZVFAJiUULn/Vou7JReirnsAQWDyfGIRR4dOq3Cd2Uip64fmH mBUeC4aPfR71Dz1TMAQfh9sBF5LNo9pluVlhsBhTlUBJpVTO2C6rksNuDhdedqqNlIfv uqzei2gdBA4MUY2xBqMxu+pyvYbg/HH60NaWETJ8zhlqhaaO0q8/e0R9GFQkS/+nnhPG 9g/f+Sinle5xocQ+uSXW9aL8kBxZcKbKE3mgk3iKc62SqTtgPw5PC70vGG6fTldfBPTe mg9w== X-Gm-Message-State: AOAM532ORrq4kR4827ffN9HXEg2LEOMFfaMi5RgnPA4EwqnXucfDfgWK D1FtrdDhlsE/ACq0PecqL6z69g== X-Received: by 2002:a37:52c3:: with SMTP id g186mr11115468qkb.1.1605801156368; Thu, 19 Nov 2020 07:52:36 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g70sm127290qke.8.2020.11.19.07.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 07:52:35 -0800 (PST) From: Thara Gopinath To: 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 Cc: 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 Subject: [Patch v2 1/6] dt-bindings: clock: Add entry for crypto engine RPMH clock resource Date: Thu, 19 Nov 2020 10:52:28 -0500 Message-Id: <20201119155233.3974286-2-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201119155233.3974286-1-thara.gopinath@linaro.org> References: <20201119155233.3974286-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add clock id forc CE clock resource which is required to bring up the crypto engine on sdm845. Reviewed-by: Bjorn Andersson Signed-off-by: Thara Gopinath --- include/dt-bindings/clock/qcom,rpmh.h | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 diff --git a/include/dt-bindings/clock/qcom,rpmh.h b/include/dt-bindings/clock/qcom,rpmh.h index 2e6c54e65455..30111c8f7fe9 100644 --- a/include/dt-bindings/clock/qcom,rpmh.h +++ b/include/dt-bindings/clock/qcom,rpmh.h @@ -21,5 +21,6 @@ #define RPMH_IPA_CLK 12 #define RPMH_LN_BB_CLK1 13 #define RPMH_LN_BB_CLK1_A 14 +#define RPMH_CE_CLK 15 #endif From patchwork Thu Nov 19 15:52:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 328428 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp471671ejb; Thu, 19 Nov 2020 07:54:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZDsbYPSG9SPegC5+BqP5A6MAMFomhVePyBHCkM3+swFPJ5nJtcBD2h57st+lSbSryoR5z X-Received: by 2002:a17:906:66c9:: with SMTP id k9mr30332924ejp.204.1605801250577; Thu, 19 Nov 2020 07:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605801250; cv=none; d=google.com; s=arc-20160816; b=lamEuxI+0dMCgFOhkFSOlyRILdrnqZnQc5DG16FXrLjx3ITcnPsO2zwqR776PqFZ+T VVPQfz30OhDOxPEy0J6A2B2jVQhyjRAPtit7GYFwaz7RzAotFaU+CEBchtEy5Mnh2ln5 Yt8ZRD531DHOIo3REQHB/lcWHoCCWqPdwcpRDgOtnGMiGESpKDV8FxJZofEXVqWMgH5A 06geOTVDo0dN19yn9zKuTMDC2UBZVTfL6Ji/ofPGyOlmgygDNa2X7L027otzGYm77YJs sOkfbQ8qVAH/vZw4vmTUAVus4d85ympEfO/Ew5SxjogNKIEEHg+yUaDw7L8ENP90IlFc i2dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B4eYZ8BtJ+Xv96s0vkBJN4bKwPI1mGpKSPj/atTPTao=; b=oVtllviZZzr1kIbhP53Gw7ZpP4JGQnPSZn5HjmOmKs2tlGUvxfh9CU+uugaB61MzFN riLxf7Ab3mclCzmsgdf/vPzeDi4IP4+rhg4lDVGUn62XcruT/HDuE5b7yd9nTOXEYo9x /LEzbxZN9r75TFBp9WRD5dngdgXZaj1mJZ/6iKhJeelWq5dPFZ7z5PdqLu/eb20wazQ/ K5vuUgrDGfYidgX9ElQaFtAbo8hIpYrnRkmR4oP/OIVU9iZMFCAXl+YQMxbmf7oGiF1o iQPE1NyVyO28MR4LNV+Oxzg4M4M5CuCVv1T03efJNTvhH+fmQ5Z0xQBhW0hUR5b5e4jp o+pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X2CLndD6; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ok23si67063ejb.243.2020.11.19.07.54.10; Thu, 19 Nov 2020 07:54:10 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=X2CLndD6; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728933AbgKSPwm (ORCPT + 6 others); Thu, 19 Nov 2020 10:52:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728925AbgKSPwl (ORCPT ); Thu, 19 Nov 2020 10:52:41 -0500 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33848C0617A7 for ; Thu, 19 Nov 2020 07:52:41 -0800 (PST) Received: by mail-qk1-x743.google.com with SMTP id q22so5775281qkq.6 for ; Thu, 19 Nov 2020 07:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B4eYZ8BtJ+Xv96s0vkBJN4bKwPI1mGpKSPj/atTPTao=; b=X2CLndD6x4dO4Y8ww/vjWOI2kjcDiGOnEue+rJYwfeW/8WYoST1Vap22OCgDFC3xjg IzQAsiROeT7WX47nc/cJida59ADdsovdlPvUj+nBmphV6LEUEVBb5pGMTKrT3zE/q4uR F/ht3F6Aw7D8dryDdAVxYpwP6Zkvf680g47LLROF/o/o0stekOh0OZp5i0ebMRzmhKc7 jbdQBNTkYsUAtf5HT5mvOmhJMR27P771vcfiGXagX0YZATIeHO4Z60vxO8rGV1/ccYvK qj6I1MCoBohQrYd1JzslnVrT0p7g+UPcZ74j5ag3oiGTQXUzfQpRzHeqfgIxAcSLICff hdPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B4eYZ8BtJ+Xv96s0vkBJN4bKwPI1mGpKSPj/atTPTao=; b=XWb7zZ+Qj9lGNyeBcV04RiOGszBiDe+id0msetIVqeRHLN0sgSHoZFx6UGdHIGvDi+ gEO8dENwMOKBWGq3LmmhpLoaLl1F9ktqKXnFoxSs/j7eSNY5ZvSLrdgH0gVhS83/mAau 1CWKESI6+j+Y06LFF3aIe6OKpX3DQA34FAVNNkv1LnpBowhRDfCD8pVxmISXxCIvdvSG pPyWKCKcy2cXeTWvKfs7WVrhMxTL94Mq/KSoC2iz5vzhiN0uOJ9aLcg9b+/Ga/14nAcL lnmhORmsBlvYOpal0vOZwu0qRe+PgIqELIdzEh6sbk0gDC537pOVDvFjZYn563D7I2pB xwsA== X-Gm-Message-State: AOAM531b8q1k+fY0ym0IWVLOsBaTneVyMA+t0WOTqRJ2ia1RcP97Noau XdCNiALUX8vfav0XgiQXIiIYNA== X-Received: by 2002:a05:620a:5f6:: with SMTP id z22mr11361053qkg.211.1605801160386; Thu, 19 Nov 2020 07:52:40 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g70sm127290qke.8.2020.11.19.07.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 07:52:39 -0800 (PST) From: Thara Gopinath To: 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 Cc: 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 Subject: [Patch v2 4/6] drivers: crypto: qce: Fix SHA result buffer corruption issues. Date: Thu, 19 Nov 2020 10:52:31 -0500 Message-Id: <20201119155233.3974286-5-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201119155233.3974286-1-thara.gopinath@linaro.org> References: <20201119155233.3974286-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Partial hash was being copied into the final result buffer without the entire message block processed. Depending on how the end user processes this result buffer, errors vary from result buffer corruption to result buffer poisoing. Fix this issue by ensuring that only the final hash value is copied into the result buffer. Reviewed-by: Bjorn Andersson Signed-off-by: Thara Gopinath --- drivers/crypto/qce/sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/crypto/qce/sha.c b/drivers/crypto/qce/sha.c index 87be96a0b0bb..61c418c12345 100644 --- a/drivers/crypto/qce/sha.c +++ b/drivers/crypto/qce/sha.c @@ -48,7 +48,7 @@ static void qce_ahash_done(void *data) dma_unmap_sg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE); memcpy(rctx->digest, result->auth_iv, digestsize); - if (req->result) + if (req->result && rctx->last_blk) memcpy(req->result, result->auth_iv, digestsize); rctx->byte_count[0] = cpu_to_be32(result->auth_byte_count[0]); From patchwork Thu Nov 19 15:52:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 328426 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp471593ejb; Thu, 19 Nov 2020 07:54:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSoYQyAru66Y+KFDc0o+qW8bJJ0/05DtEN45ri8/82mlCCm6omUPGklt49epLw/RmsQJky X-Received: by 2002:a17:906:81da:: with SMTP id e26mr28120247ejx.491.1605801246490; Thu, 19 Nov 2020 07:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605801246; cv=none; d=google.com; s=arc-20160816; b=zrkIBjgI9M2jm+SdvoZE9Th73GE4fD9tVY3cPqIZqB/arvNPPiPiiX/EgmawZh61nz 5PoMk+NhRVKP2qZB3SS2Or0dhzJS7Q69PQ6ECew0kG1Clk6oETFPJbIH4/triT/t/IXu MlR+a4YjENccUCMiqGiIRbvy8Oe5Q5lJQieRJBGyy3Jb3ts+lE1cIvyFEL4/rrm03/CA v3pTaP+fFPzURXUh44maSSeK2qhGQtGwj4UtPZ7aLqqJMq6RnwOXkskYJRlREKAmLq90 NVFEyxAwiLH8GzqQlrjRFCua9M1/gaqaSOHAu7Kk6XLBfKMU3YBvMy2e1yswVpH/jQ68 E5ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ncm4tg3t1i7YF0Acj05l9+ZFtRqok/Gt9GCUMfnO+SI=; b=LoUGDJ727bUMp3V+03Aas1nh+RoDVNMnrnyjZmG1FhNQO1EA3UPmBT8jwL7jhNIwju SEnXbjcCqiO3+wgU/U+Se1l+0Pkqw0ZhnCVM2q1vGh7fcJMcipWwp4QLbZRH9nB1MHeD Y3k2edP1GF+aUnGvDR4T+zmPMuMh0XPbfrHqSPPMOT7Ntv/8hMh9kUX6jvNh8aB92QmM 8Wpwy92gMZ951l+2QaYIVKGU1vFJoGu/hVUzcry0d0+SWWKzmJ32HCmUlSYJEb1vvzQB gf5T9plU0Uz8IU4fWNN9wqX4OXLoyrDR19TLQW8RwWYLyDh1Jn0j61PSV1LjyZL0SgUk Auag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dwn1JI3I; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ok23si67063ejb.243.2020.11.19.07.54.06; Thu, 19 Nov 2020 07:54:06 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=Dwn1JI3I; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728955AbgKSPwo (ORCPT + 6 others); Thu, 19 Nov 2020 10:52:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbgKSPwo (ORCPT ); Thu, 19 Nov 2020 10:52:44 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA36EC061A48 for ; Thu, 19 Nov 2020 07:52:42 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id q5so5731022qkc.12 for ; Thu, 19 Nov 2020 07:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ncm4tg3t1i7YF0Acj05l9+ZFtRqok/Gt9GCUMfnO+SI=; b=Dwn1JI3IGVVrz9y1hJnMh9HlIiQF+/UE4yWOgcnTq+QHQ0LRgSEKDOa17UhFgxvw5W sfrnXKLoLKvWfb3hD8atziUk3EsE1xbMU/Paxw0f04Jrx9FaVGupvJVC8PtlLpAz9mTT YZNyEHaqD1c1sHi+lAHPsqQjYNB2C7hVqGlHXZ346pyCia0Td+Bn9V2H9gMwvS3F3cE+ /sXSXGVVWvDmDNU98wXz3r+hkVy1GpHWJZfSnFhTybRekpDX3GQiha9tvuFs2S1EoNH5 NtNal34ErNuxWUva/p0UbDHeDlh7hwO4BxyWAjjyqCuHOohH8T6OZelQaslPySs52tMO kVFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ncm4tg3t1i7YF0Acj05l9+ZFtRqok/Gt9GCUMfnO+SI=; b=Al3Xv3p7JSjwOXNv1ORH0qrF1xttj9T2fA6/GRWUoJ/CX8fZHAgM6DlRCP6ERkMIAd vidnYYhSwAtV3txB1Ktxi2W9vg1zuBUzhE1DF7EfoJWw33B1LHrNOQpMer+0jOXI+ric S7KubrvhQGA5BBQ89oH/NyPGVAVGfHV6es5kPckPQGabAxEmJ7mPtYHc2wjlNWfQmy1l w1NjhjOWIjQGW4EgXpaxu3Bz9H8w0FH60blq3MVTU88NtqzhYjx7+AUQ0K5t0wYk4VqH mZf+13dmNJXGSG/pCoI5O4nA++9VR9slvaEWi6mFQ3gkajkBg3bSAcSfC3Jzybe8c7Lv 80vQ== X-Gm-Message-State: AOAM532rKJ+6HFCt22YXDCaCKHb4X2tkbQaZze/K+Lvi/tJz5BQ+MfN2 vxjKOP3EjXNnPZr9e2m0WT8TyA== X-Received: by 2002:a05:620a:d41:: with SMTP id o1mr11295674qkl.338.1605801161839; Thu, 19 Nov 2020 07:52:41 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g70sm127290qke.8.2020.11.19.07.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 07:52:41 -0800 (PST) From: Thara Gopinath To: 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 Cc: 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 Subject: [Patch v2 5/6] dts: qcom: sdm845: Add dt entries to support crypto engine. Date: Thu, 19 Nov 2020 10:52:32 -0500 Message-Id: <20201119155233.3974286-6-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201119155233.3974286-1-thara.gopinath@linaro.org> References: <20201119155233.3974286-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to "sdm845.dtsi". Signed-off-by: Thara Gopinath --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) -- 2.25.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 40e8c11f23ab..b5b2ea97681f 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2138,6 +2138,36 @@ ufs_mem_phy_lanes: lanes@1d87400 { }; }; + cryptobam: dma@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + clocks = <&rpmhcc RPMH_CE_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely = <1>; + iommus = <&apps_smmu 0x704 0x1>, + <&apps_smmu 0x706 0x1>, + <&apps_smmu 0x714 0x1>, + <&apps_smmu 0x716 0x1>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,crypto-v5.4"; + reg = <0 0x01dfa000 0 0x6000>; + clocks = <&gcc GCC_CE1_AHB_CLK>, + <&gcc GCC_CE1_AHB_CLK>, + <&rpmhcc RPMH_CE_CLK>; + clock-names = "iface", "bus", "core"; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x704 0x1>, + <&apps_smmu 0x706 0x1>, + <&apps_smmu 0x714 0x1>, + <&apps_smmu 0x716 0x1>; + }; + ipa: ipa@1e40000 { compatible = "qcom,sdm845-ipa"; From patchwork Thu Nov 19 15:52:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 328565 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC775C71156 for ; Thu, 19 Nov 2020 15:52:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8AF2420643 for ; Thu, 19 Nov 2020 15:52:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ogRs7aHV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728957AbgKSPwq (ORCPT ); Thu, 19 Nov 2020 10:52:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728945AbgKSPwn (ORCPT ); Thu, 19 Nov 2020 10:52:43 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D2DDC061A04 for ; Thu, 19 Nov 2020 07:52:43 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id y197so5757896qkb.7 for ; Thu, 19 Nov 2020 07:52:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iS4PFF4afNVE7r1m6FFtegXe9ReuZEWdknfJDOJxxsY=; b=ogRs7aHVgPAe9BFPnptBBpgxHJY2yTOCZkeVo9BIdOoGrIr47GvR7a4/SOKPKeXlz7 N9hh27I3m3pqEEFW4SA/IirxvRS7+Uve3ZuaoQin3LNcceQO08qYMn92+YDYjVTybV7j bSIzxWcAQQJ1XcUKoeRemnMcO4PLgEUPDhV6TrTxNcyUW4Sx/hMjOXHvB5Q29nxFjdw9 h+VnR8oEuBh5FV6QRfbJQuDhtwaatGpvwneia6taGDiJAMjegXWq5/MEPLinlC2OvfIS 5r7gJNdpUtLi22yEuDSs6g9KfyI47VLO44gBTSnbRlonevCZrbfqQxE+doXbWaAEobcX ThBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iS4PFF4afNVE7r1m6FFtegXe9ReuZEWdknfJDOJxxsY=; b=X97XQmK7iyOM4njn971twOls7fn7RS+ocmtI4T0uksDHGqOorW8WJ9F+EuIPgGJR9E 063vH6SvKVG3A68eArlkPCfUx6KX9ymMtPy/Z38OYaZN2HSXMtuTZIyijOLpM08wge4S 5LtA3zig/Fl9uJpGy1CZvvJtQi+ufLmHPgQwcH6smIoRTsSMesPvmnCk0uEoxPqvojCE M/XjbORJBK5D9r3RjOc4Xy81XWSSHdMMAHkPhxVxUgjkpHnS819nIZooAZcjNqBEN7Rs tVSmbXNFboKNVjgQSFouS4jBnFln5CWSOzc/h18DFAGBSoB6zG1I5Fwnsgxbwn9R9huC flpQ== X-Gm-Message-State: AOAM530ikwP+H67vOKue0VGeUXqYKY6cJIm22DbwOH6LW043P+XWBGg+ 5ImrAHaILEVnsfLv0rlCW7isWw== X-Google-Smtp-Source: ABdhPJxHwH4v7FYWbrIIlnErpYmRYuzu4SdUpPCubL+H7hYfW1iAJvkBSx64ZORRUh7Hqwse028vQw== X-Received: by 2002:a37:e207:: with SMTP id g7mr11719107qki.44.1605801162795; Thu, 19 Nov 2020 07:52:42 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g70sm127290qke.8.2020.11.19.07.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 07:52:42 -0800 (PST) From: Thara Gopinath To: 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 Cc: 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 Subject: [Patch v2 6/6] dt-bindings: crypto: qcom-qce: Add v5.4 to binding Date: Thu, 19 Nov 2020 10:52:33 -0500 Message-Id: <20201119155233.3974286-7-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201119155233.3974286-1-thara.gopinath@linaro.org> References: <20201119155233.3974286-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible string to support v5.4 crypto engine. Signed-off-by: Thara Gopinath Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/crypto/qcom-qce.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.txt b/Documentation/devicetree/bindings/crypto/qcom-qce.txt index fdd53b184ba8..ed1ede9c0acc 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.txt +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.txt @@ -2,7 +2,9 @@ Qualcomm crypto engine driver Required properties: -- compatible : should be "qcom,crypto-v5.1" +- compatible : should be + "qcom,crypto-v5.1" for ipq6018 + "qcom,crypto-v5.4" for sdm845 - reg : specifies base physical address and size of the registers map - clocks : phandle to clock-controller plus clock-specifier pair - clock-names : "iface" clocks register interface