Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3980436rdb; Thu, 28 Dec 2023 06:30:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IELQHFlhe2sOiUIwEhw3lQEVV5QTapngqWzGZkeWd4oI1kYCNx9YP3JxulEHzkxQ0YmJo2L X-Received: by 2002:a17:906:1448:b0:a22:ef8b:76d0 with SMTP id q8-20020a170906144800b00a22ef8b76d0mr5086259ejc.45.1703773807298; Thu, 28 Dec 2023 06:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703773807; cv=none; d=google.com; s=arc-20160816; b=dvcROc0dxIBVZSBIpz8r1R1yXLUQ83iexhIr4dvzlGTHcdcGoEn4xfbluQ+Ap84aBU aYDRx8qJF+O9xeqwm8nTSnCy4FR2b67Icrz2FDOBz3NJWf/jwAiVOMoiJvHAxHUb8dIg N68l4ui3tI+XHrfkN6LlYdQc1KzveZCUZndllPBf040EC6YBhlnwkXzHvF4DSdnbEYhk 5cmqavlh8dWqk2T+wu8EadhqF0syhmVJLHaoHZeDieEGyFc4uf1TBkl4bebhEl+J8VB/ ZXYA6xyebKxdGDfozSKDrVUGeBfTf7mRGwKXI7LpAdGM7MJBJS2W6x2cXHLIHcLBm6IH cl0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=IfOkw9nEcZxbA1rEGXnw7Xr3Fbv2QGCNa/sv3AZ14y4=; fh=IphgoM4N67rZprxzDmwuydghZ1QaIUbtaQT13bYwcO0=; b=eRpaZLXmx2kb95Rmg9n2PCRY8ld84vB1t4ZqriUC6xYkxb0qRwJoEMf1JVM3J8VMzo wNMkMXUyq4vzlf4aTkt7KQe1jGIchiPgO9IwM9tCTcHOs3vo8U42XlfW3UxO5QxtcW5J FbvbvEbDwIBhMqglIQTxgLLneKvRMql6sC9NhLDbbTWSvoum44Ay7DOXVytYjzihPbUj +x+UnIg6VYN1jTR3UYfnT7mquwC1oOGvCmItW2FZwD/M0ui7IsWSJ8Qe1y3oTmqrUVwd Et3yxd+037+uLBGqXzA6HYCyClld+6f4Z17/f5u39kbU+Og84oPlKxWu0s8OurC2HPk4 Eicg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=dv8rhXUf; spf=pass (google.com: domain of linux-crypto+bounces-1074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id vl15-20020a17090730cf00b00a2362dbe5c3si6793564ejb.351.2023.12.28.06.30.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 06:30:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=dv8rhXUf; spf=pass (google.com: domain of linux-crypto+bounces-1074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com 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 0AED41F22652 for ; Thu, 28 Dec 2023 14:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCF4CC8E2; Thu, 28 Dec 2023 14:30:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="dv8rhXUf" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27AFCC8DE for ; Thu, 28 Dec 2023 14:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a26f73732c5so296863166b.3 for ; Thu, 28 Dec 2023 06:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1703773797; x=1704378597; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IfOkw9nEcZxbA1rEGXnw7Xr3Fbv2QGCNa/sv3AZ14y4=; b=dv8rhXUfeIIde9MZGjI6hLX+c81tekNQVvOna8wokRJYaskThEmkjZYVcF/8UpVNCA WJvzBrDudVuXUJLvRRMGFNAs8WtmxyuyueFvSJhJ+dH9MnSewQju440m90hKwZZAa0om EgT6qlyZDvDCdWti/BMZksKdrs6NyWCgFer1tHKrgEWph9k43KGI3aLlLZfAAfwFXLF8 U0azGfF+09/drjuMrS8jDXlqVMLvS8kAeywrbt/EGcJEWcGLD8zE0rJLTgyqAqUjK6Ww Kuy+6x16nf1MtO3T0xaQvNIvZ2+6MXejx7NpdRdH260DejMtu4KIswRtwt6++COxddGn rZ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703773797; x=1704378597; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=IfOkw9nEcZxbA1rEGXnw7Xr3Fbv2QGCNa/sv3AZ14y4=; b=j97I+oWu2emhVMQpU5DRMj/w4FA5Bhj+2EnpPfa7rOd9oemYQGrvrihkyRX6IdjARX 4cQUoZiIOloYmKS87+SWLVugYuDTiZK4wO4+OfsXiPytvT4ByeN18XB7B4srK/jePj0/ 0wKdsc1DidzLU9MQ0He7dUQqX/Y1MItDhSoIWDs+YlVl1CkqO3Es7KlFhxuWwF459EMc GKGVJVDkDRgoRAK29HDI39ECOzJYJrhJKs0W5LQaThvhuITlByT65W5OpUkFci8SgGOC IRMwnt38EXeEs44WE4Z55F//kw9PoBrufSWKHf9cahA04/IimDKgO6dXuvaVuQXHAbSD 3MKQ== X-Gm-Message-State: AOJu0YxwK9Xyn5MzfzdHzdMsi+K6tYm6SESX4MWDtB0S36hNxIIhzI+t O7grTsvCSdSZJzH1OXCmRBFSZikoDdOO9Q== X-Received: by 2002:a17:906:7810:b0:a12:78b5:3d81 with SMTP id u16-20020a170906781000b00a1278b53d81mr4527886ejm.1.1703773797149; Thu, 28 Dec 2023 06:29:57 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id r25-20020a170906281900b00a1f7c502736sm7523221ejc.164.2023.12.28.06.29.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Dec 2023 06:29:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 28 Dec 2023 15:29:56 +0100 Message-Id: Cc: , , , , , , , , , , , , , , , Subject: Re: [PATCH V3 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes From: "Luca Weiss" To: "Om Prakash Singh" X-Mailer: aerc 0.15.2 References: <20231214103600.2613988-1-quic_omprsing@quicinc.com> <20231214103600.2613988-3-quic_omprsing@quicinc.com> In-Reply-To: <20231214103600.2613988-3-quic_omprsing@quicinc.com> On Thu Dec 14, 2023 at 11:36 AM CET, Om Prakash Singh wrote: > Add the QCE and Crypto BAM DMA nodes. > > Signed-off-by: Om Prakash Singh > --- > > Changes in V3: > - V2 patch was sent without actual modification. Resending the patch wi= th modified file. > > Changes in V2: > - Update DT node sequence as per register ascending order. > - Fix DT node properties as per convention. > > arch/arm64/boot/dts/qcom/sc7280.dtsi | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/q= com/sc7280.dtsi > index 66f1eb83cca7..b819724c1255 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -2233,6 +2233,28 @@ pcie1_phy: phy@1c0e000 { > status =3D "disabled"; > }; > =20 > + cryptobam: dma-controller@1dc4000 { > + compatible =3D "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; > + reg =3D <0x0 0x01dc4000 0x0 0x28000>; > + interrupts =3D ; > + #dma-cells =3D <1>; > + iommus =3D <&apps_smmu 0x4e4 0x0011>, > + <&apps_smmu 0x4e6 0x0011>; > + qcom,ee =3D <0>; > + qcom,controlled-remotely; > + }; Hi, Unfortunately I seem to have boot failure / device crash with cryptobam enabled on my qcm6490-fairphone-fp5. Are you aware of any firmware differences that could cause this with QCM6490 LA firmware? Looking at downstream msm-5.4 dmesg I do see this BAM being used so it should generally be accessible from Linux. [ 5.217214] qce 1de0000.qcedev: Adding to iommu group 18 [ 5.223741] QCE50: __qce_get_device_tree_data: CE operating frequency is= not defined, setting to default 100MHZ [ 5.234986] qce 1de0000.qcedev: QTI Crypto 5.6.0 device found @0x1de0000 [ 5.242981] sps_register_bam_device: sps:BAM 0x0000000001dc4000 is regis= tered [ 5.251124] sps_bam_enable: sps:BAM 0x0000000001dc4000 (va:0x000000001db= 63156) enabled: ver:0x27, number of pipes:16 [ 5.262783] QCE50: qce_sps_init: QTI MSM CE-BAM at 0x0000000001dc4000 i= rq 9 [ 5.271820] qce 1de0000.qcedev:qcom_cedev_ns_cb: Adding to iommu group 1= 9 [ 5.281083] qce 1de0000.qcedev:qcom_cedev_s_cb: Adding to iommu group 20 [ 5.289376] qcrypto 1de0000.qcrypto: Adding to iommu group 21 [ 5.296326] QCE50: __qce_get_device_tree_data: CE operating frequency is= not defined, setting to default 100MHZ [ 5.307675] qcrypto 1de0000.qcrypto: QTI Crypto 5.6.0 device found @0x1d= e0000 [ 5.315867] QCE50: qce_sps_init: QTI MSM CE-BAM at 0x0000000001dc4000 i= rq 9 Any idea? Regards Luca > + > + crypto: crypto@1dfa000 { > + compatible =3D "qcom,sc7280-qce", "qcom,sm8150-qce", "qcom,qce"; > + reg =3D <0x0 0x01dfa000 0x0 0x6000>; > + dmas =3D <&cryptobam 4>, <&cryptobam 5>; > + dma-names =3D "rx", "tx"; > + iommus =3D <&apps_smmu 0x4e4 0x0011>, > + <&apps_smmu 0x4e4 0x0011>; > + interconnects =3D <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>= ; > + interconnect-names =3D "memory"; > + }; > + > ipa: ipa@1e40000 { > compatible =3D "qcom,sc7280-ipa"; > =20