Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2789586rwd; Fri, 26 May 2023 11:12:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Ysu9q5Ugf7RHb79cMrLThVxOIr86wywO31XunXoH1gUqU6g7nvW8C9g4/VOaguMTJlqUu X-Received: by 2002:a17:902:8309:b0:1ae:bf5:7a7 with SMTP id bd9-20020a170902830900b001ae0bf507a7mr3338797plb.35.1685124736321; Fri, 26 May 2023 11:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685124736; cv=none; d=google.com; s=arc-20160816; b=I8wvCpNYRtPJYCIac0Cs8DS6tCKQUQ3aqdyjENfX+3TTg+zm2Zo0P0yAUBmlbq69VP T5ymkGDzxmmqFM9EJFfWj3lByRyPg45WLon0t/HJKAFfRmP6WMXLB6PF0U/a6c+GmnCW SI8Eu4Lcn7ddSxP8we2johZ8qDcdJhsbJafOh00OvMRTUsIku1LP8+osJGbRQTkh9nm3 Egd4ngzfqU0xIMmF3FuPXrtqhSPidfnUcef9K6JpNfOQzGJdiNcMwUKuzVfxLbs0Lkut y8gZRE9ag0sng73RDtvabLszadA/r7uQA0FufmMfVny2T5BcfDTHjmqCCMOJvdsv1Zbx BwEQ== 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=Zmks5D9YzLuOgQ4o4KupF4PncTQfxa4rpPQLmrc2P4w=; b=tusafghGwRxhgK+n7+egrLY3lwzCnmjeYPrxwTJ+KV2z27HF3TQhPEmkVSvS2O3o0G FBUkysEVG58mNVFDf/0SPfMXt3Pi+vvjUiyliCEWVzRsPWu/ErTZYy7gE0f1cHI0qXbz eeDh5Zl6Me6monevmT0u0dJJZTal6AZy/56so4ffR1wf1BrXpU0pqLE2e/K7LvcVOTrn ely74L2zL4AdPrpQL/DHMkFM/pJz9FK3Ivw1yvOZtwrlH3qRrxU7q/z5PnZq9BnoGkWB yJUIA9KbsE/d6WCoGOCqoskGJ8sF8jcVWjLakZiSeCai4Nshwz1j3dCqPDGUpvr8e4Qo N9Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hPKPdxoV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a170902c40800b001a637615a89si5066425plk.561.2023.05.26.11.12.01; Fri, 26 May 2023 11:12:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=hPKPdxoV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236265AbjEZSF4 (ORCPT + 99 others); Fri, 26 May 2023 14:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjEZSFz (ORCPT ); Fri, 26 May 2023 14:05:55 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE621FB for ; Fri, 26 May 2023 11:05:53 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f6e68cc738so7593365e9.1 for ; Fri, 26 May 2023 11:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685124352; x=1687716352; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Zmks5D9YzLuOgQ4o4KupF4PncTQfxa4rpPQLmrc2P4w=; b=hPKPdxoV2K/w95Ebq5q66gywMYlFfA8NeQwCFhVczUbR0q1zld0Uuw2gq9r1tdg24N L9pt6uoSIgbhaBWJDcST5j0HH1Ds4ixc1FUbQhxU1gT3ut/fYvElHROBhD50ASeUCwOZ hFjnV3Dl8nQl7I6RxUGaj0F1YMD+Ys5hyMuEmK1h1E/3JEJBjVqa5IdFIatn7gPTiNhs TNYduoeTYO/tzml7tD6SKxoZHAlMIjK3RX+TLccIHRG/owHVY6eQainp53qn4RAMemjQ GnyEY452tyr+8BRxDFjciPiXNo3tl7ddpfcAlFSLlDWZlJPHtIH2iRskDx7kyXDiWBeD 3MTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685124352; x=1687716352; 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=Zmks5D9YzLuOgQ4o4KupF4PncTQfxa4rpPQLmrc2P4w=; b=WNauY3aStUw8VtI9QM0O7SXqohqJhNPFLJJU5OJMxdYOD1oRsVuapHkXxcXBlj68uG 0Dj+2coG9HIgQZWTj20noeuZHenzx5xFcKEtIbYANufDaRdBXTOZUOa5nrHJJVLJGW9q pEwrgtrmXTI2CLben/rctkyS7nq4Cw23Cf4lxYtCM8QfS6q9GQGmxFIzMT38c8tla2xq UOH+uNjrYlIANn05HULKQ7CUewHfFOmE8Bfk7Vn8982/PyjM7ucdVJw8CXQrRpZdRbag 1smVkN5enJyLACtWWkSl+wloi50CBfRSeyeJifmKNrYUnyrI01uetsfXvr3pE1W+wDVB 3Ayg== X-Gm-Message-State: AC+VfDxd93QqVPJk4mHes583m5xI9yAxahM9dGTQAIfqVEhuHqKsrahC ip+bGHKWbEloiIlbKQu22GDw8xxSeZOXv8KaWYaakQ== X-Received: by 2002:a05:600c:3653:b0:3f6:1e6:d5a2 with SMTP id y19-20020a05600c365300b003f601e6d5a2mr2172002wmq.4.1685124352120; Fri, 26 May 2023 11:05:52 -0700 (PDT) MIME-Version: 1.0 References: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> <20230519214813.2593271-8-bhupesh.sharma@linaro.org> In-Reply-To: From: Bhupesh Sharma Date: Fri, 26 May 2023 23:35:27 +0530 Message-ID: Subject: Re: [PATCH v7 07/11] arm64: dts: qcom: sm6115: Add Crypto Engine support To: Stephan Gerhold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org, djakov@kernel.org, Anders Roxell , Linux Kernel Functional Testing Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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-kernel@vger.kernel.org On Wed, 24 May 2023 at 23:53, Stephan Gerhold wrote: > > On Sat, May 20, 2023 at 03:18:09AM +0530, Bhupesh Sharma wrote: > > Add crypto engine (CE) and CE BAM related nodes and definitions to > > 'sm6115.dtsi'. > > > > Reviewed-by: Konrad Dybcio > > Tested-by: Konrad Dybcio > > Tested-by: Anders Roxell > > Tested-by: Linux Kernel Functional Testing > > Signed-off-by: Bhupesh Sharma > > --- > > arch/arm64/boot/dts/qcom/sm6115.dtsi | 25 +++++++++++++++++++++++++ > > 1 file changed, 25 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi > > index 631ca327e064..27ff42cf6066 100644 > > --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi > > @@ -661,6 +661,31 @@ usb_hsphy: phy@1613000 { > > status = "disabled"; > > }; > > > > + cryptobam: dma-controller@1b04000 { > > + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; > > + reg = <0x0 0x01b04000 0x0 0x24000>; > > + interrupts = ; > > + #dma-cells = <1>; > > + qcom,ee = <0>; > > + qcom,controlled-remotely; > > + num-channels = <8>; > > + qcom,num-ees = <2>; > > I would also add the RPM_SMD_CE1_CLK clock here and then omit > "num-channels" and "qcom,num-ees" (with [1]). It's not strictly > necessary but will guarantee that the clock is running whenever the BAM > is accessed (potentially avoiding crashes). And it seems to be the > typical approach so far, see e.g. sdm845. RPMH_CE_CLK is used on both > &cryptobam and &crypto there. > > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/commit/?id=8975dd41a9dbca3b47f7b8dac5bc4dfb23011000 Sure, I have fixed this in v8 which I will post shortly. Thanks, Bhupesh