Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1271904rdb; Fri, 16 Feb 2024 10:10:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeAaI/QTtB6Plaw7FEtCUq2fQOM/qVwwJgtbO9HkFWJTl3q56vObjUghIaO64P8jL44voGovYoSCJJoIa7qNSvjnjZiV1mfm7mLqHi6Q== X-Google-Smtp-Source: AGHT+IG3QtXHVAir3+tJ41V6tZ/ztsjMDUFqsp+DncMUgnEDT1FM5fAwEk/JxIOcnx1qBwj7hFbj X-Received: by 2002:a05:6402:1d12:b0:564:13ff:4616 with SMTP id dg18-20020a0564021d1200b0056413ff4616mr298864edb.22.1708107039668; Fri, 16 Feb 2024 10:10:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708107039; cv=pass; d=google.com; s=arc-20160816; b=miEE6/PBbArOEsWbiwkBRnut2/UvdaDc+RLOjsfZRe+nNHPKeNCEffeyfESSIHOttZ jdV1wZvBZaDJsoS39zkzbCDGKS/XStMvonVP7nUneQalXl7CTUUiyIcTpahNsNmG0HEv XuiVBWQjBoHNTWYfIa6TWpYN0oBWzfuGTq8DAsrUNx8btidrCaZRgsQt1ZdT7OeUS8uB dPji2OmvVksXlBG/hBeo5ZS+gmGwKitVarCuB0t/2Z/fTQwp2U/8essTeYSx9pKpDUpu TGaUvoqM0UJ8wousXhHosMwksmXg1cxd21hZRO4QILp+cuN5TBXfYugcJk0AJQvIkGQG k1yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qWqlXqw+HebcOU7DZnDRyRb06n8DirEUWr/OMcQ9PvQ=; fh=E3u7VCPXKvB9w+XQkh4rQIsstqHyrpEuv00ulBoYQuo=; b=Y2eKLJjIEg9HDBoG52YgJ1yjyLIKkUPQe/tFJjaWfPbwIu70xG3lV+pQ/AA77QD5A1 nC+cFqfyVfcWlnANJCw9zdXaYZ9VZHHb/7UScQvZpuIXR3XZuql144KkStXMYd+w0OFm t3dXuPs/UXYPSohSCv0QVQ9fIS0Fv471Erd1iw2Ur4w3nRBLPnk2iMoCTlXjzxm9U2z3 Rz/chA4K4Mn8YlWoyJ7HXDsnptANmeEnSpZqTYdMEUvOpaQzr5lWTGWNYPthPaNCEoB3 wBDBczx9sBPXfIhcDtt/CxPpnYfUtDG3Ti8MY2WczcZI5TWPNiG1z78WLl4UL0iFQ5s3 8wvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EvFwwYpv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y7-20020a056402358700b00563e74ef3edsi166143edc.576.2024.02.16.10.10.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 10:10:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EvFwwYpv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6A4441F212D0 for ; Fri, 16 Feb 2024 18:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EC0D1350C6; Fri, 16 Feb 2024 18:09:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EvFwwYpv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17751134751; Fri, 16 Feb 2024 18:09:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708106955; cv=none; b=hnn566D0FsMsLXa8iMxZlc2wsPoHi8qPFZ50iy6IXctIvas3COk7GHT9jwy2utMoXao360oskTXyifjKQJWxBZazKzioSgdGubZKVUR+p6JOtQtJiVgceARIv2MfhkX67JgWOm3tr/RjeAt2LyvfdUUYK26aiDpvPhcg2ck9Y0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708106955; c=relaxed/simple; bh=gEiW2xpv104Z8gpM4qzqbYKLaODu05bz5fxABQE83wg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UcV8NBb0ot+Fe+b17AEKJGQMLI1U7rC5b4SAd6ZrjoMRyNLZSkaGdSHaboZosv36Y2MscVzS6wkBTgrKCmpdg/QC6+/b8dHAbzisiN3jHJaclMVQ1RBjVujyCQn24VCwrfgSkqJ7VU5Z3A6pJBJig7iXz9BuXpOztA1tY3MH5Jo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EvFwwYpv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E855C433C7; Fri, 16 Feb 2024 18:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708106954; bh=gEiW2xpv104Z8gpM4qzqbYKLaODu05bz5fxABQE83wg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EvFwwYpvsieJvyJnPOWN+cDgxBhuuJu1tT27tiz1r7V9bzV4pv8IcsrOBif/+FOHa 32BxZ4xkZBqPt/SPEEDsCGKZJcmHYrd4k/IP4JVHFjAozrv6MWU2oU0jz+wOQPyJLO 4ZU5MSWR7TpxC8JchbbQnucCTZTVAwL9FIwsF//GHAuBuRIeYuf5O1glp9gPDsnHvE i6oVVk6S7NGCcBTtbr1+crfaKNQB4F3aIr+8lrqwws2gjns8T4QdY03J3MthQ9a194 u+ETklM29xQz7vd6biVoMvgT3MsvAyJWQ1hErvbGiyHSsFecfvkufz9mf+M9WXxyM3 bXckFaQUeJifg== Date: Fri, 16 Feb 2024 12:09:11 -0600 From: Bjorn Andersson To: Luca Weiss Cc: Stephan Gerhold , Andy Gross , Konrad Dybcio , Thara Gopinath , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: qcom: sm6350: Add Crypto Engine Message-ID: References: <20240105-sm6350-qce-v1-0-416e5c7319ac@fairphone.com> <20240105-sm6350-qce-v1-2-416e5c7319ac@fairphone.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Feb 16, 2024 at 11:46:49AM +0100, Luca Weiss wrote: > On Fri Jan 5, 2024 at 5:30 PM CET, Stephan Gerhold wrote: > > On Fri, Jan 05, 2024 at 05:15:44PM +0100, Luca Weiss wrote: > > > Add crypto engine (CE) and CE BAM related nodes and definitions for this > > > SoC. > > > > > > For reference: > > > > > > [ 2.297419] qcrypto 1dfa000.crypto: Crypto device found, version 5.5.1 > > > > > > Signed-off-by: Luca Weiss > > > --- > > > arch/arm64/boot/dts/qcom/sm6350.dtsi | 31 +++++++++++++++++++++++++++++++ > > > 1 file changed, 31 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi > > > index 8fd6f4d03490..516aadbb16bb 100644 > > > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > > > @@ -1212,6 +1212,37 @@ ufs_mem_phy_lanes: phy@1d87400 { > > > }; > > > }; > > > > > > + cryptobam: dma-controller@1dc4000 { > > > + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; > > > + reg = <0 0x01dc4000 0 0x24000>; > > > + interrupts = ; > > > + #dma-cells = <1>; > > > + qcom,ee = <0>; > > > + qcom,controlled-remotely; > > > + num-channels = <16>; > > > + qcom,num-ees = <4>; > > > + iommus = <&apps_smmu 0x432 0x0000>, > > > + <&apps_smmu 0x438 0x0001>, > > > + <&apps_smmu 0x43f 0x0000>, > > > + <&apps_smmu 0x426 0x0011>, > > > + <&apps_smmu 0x436 0x0011>; > > > > The last two lines look equivalent to me: 0x436 & ~0x0011 = 0x426. > > I don't understand the IOMMU SID + mask really, but I think I've seen > somewhere before like here that TZ can be a bit picky with the SIDs? > > https://lore.kernel.org/linux-arm-msm/opqdrmyj3y64nqqqmakjydn5rkspizufyeavm7ec7c7ufqz4wk@ey2a7bq3shfj/ > https://lore.kernel.org/linux-arm-msm/11b5db69-49f5-4d7b-81c9-687d66a5cb0d@linaro.org/ > > I don't quite want to risk having some obscure use case breaking because > we cleaned up the dts ;) > > But if you're more sure than me that it won't break, let me know! > > > > > It's also a bit weird that the mask has one more digit than the stream > > ID. And ordered numerically (by stream ID, first number) it would be a > > bit easier to read. :-) > > Sorting them is no problem, can do that for v2. > Where you able to do this? I don't see a v2 in my inbox, am I just searching poorly? Regards, Bjorn > > > > Thanks, > > Stephan >