Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16027697rwd; Mon, 26 Jun 2023 04:58:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4uIdPJ2YMAS+RQKG1qqG1RVD/ZIBxHEcCZnXS3b2FML8i8EN3bk8JXuBx0SdwFQgYResku X-Received: by 2002:a05:6870:73c4:b0:191:f657:13ee with SMTP id a4-20020a05687073c400b00191f65713eemr21764833oan.11.1687780729271; Mon, 26 Jun 2023 04:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687780729; cv=none; d=google.com; s=arc-20160816; b=ljjJzV66/qe47JGiS+UF2lMDqv55B10FGLXkAQoaoo9gdNEtLX+aC+91VTeEgEKu9m zbnvTA2AVs1Vg8710zy0U4MbmArSFxs4XIYTMMIHqMyJE+0/5p03FbMbzgX4ZO3RclEH oT1Oqr8cQ5b0AC2BTQ73KAUDD32r814Uk7Xgk9mcoxSyGJ6arkUTL+ifi4zPYlgfjbJH sTL+y+YKhV7qIybICmYrgHhfJeYK3w/WG1vLbmhWoAg8GDRiytvu6q8PNCQ03BwrD2ao dHdkTfy5TajvkFxZe7b4rcRQQ0te1cmoU1ii0Sd3Z9WM77CMF63l46k3sF+ljAGtuoPT qfvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=ndfzfcsjUka4AnwkvirKlt5NBE8AOPnlUgXPUv0HxPw=; fh=IN8vm5kklWWrxB8Vr00Nff5aBcMwa02azlnekbgfZ1U=; b=0W+qImbpOSGeAbiHmMxIPSgGbqMGcWRAfBORPz5lENFqILTngWFTMis0mn0SQUHV6D ELIUQPx+tRj6dtGVoroVy+ZpioW2Gqsa/D/pdmpEawc79lQ6KVTX2bY3erZSxP6N8KWt cPJLG1ET1Fd4a8g1+85TVU1YG1fDDffKDHDdnrcSH7EBAsZrbQFA+wcke2qYC+w7IrZF lQk+KsBwyeNR87iOodQlShlmiVUpPl9+MO7Yo6+4PdTVVrPhVeiICxvn4ZXSff8yAkEe HSQMiAZzsWmTI4jYpieMHqaslEMcvv+/9hdRiSC8hQ77ygcEhM2Z2arsZ1kDUxKwCopA auzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=dnRGK93b; 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=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a632b03000000b0054fd77fe979si5211540pgr.582.2023.06.26.04.58.35; Mon, 26 Jun 2023 04:58:49 -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=@fairphone.com header.s=fair header.b=dnRGK93b; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbjFZLcL (ORCPT + 99 others); Mon, 26 Jun 2023 07:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjFZLcK (ORCPT ); Mon, 26 Jun 2023 07:32:10 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6A910C for ; Mon, 26 Jun 2023 04:32:08 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-98e0c1d5289so234096666b.2 for ; Mon, 26 Jun 2023 04:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1687779127; x=1690371127; 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=ndfzfcsjUka4AnwkvirKlt5NBE8AOPnlUgXPUv0HxPw=; b=dnRGK93bGYnGjkVwATj8flmAG92arzZyab6WqQRN5oa3xv8MIM5L6fpD85cksQtXHO G0yaID8rmZgEPZfRjXR79KtjOdNrNR9cyYx+UBfJElYkvFfXX3DjxCnE4RnAN2RQTdqA YnTNNp0jYbVB7K5aYX43EdeuiTk22FUTbbvBkltzmFpjj+4s9YlsBties+KOlnVaZEjN 07LPySspp6bJUeJN3RIXC3cx7IGKwrUnSZcSFyCBzU+ktQoQ4S6I1/a11kqBSHWCZgt/ JyVKwldjwZK26k1jcimiGoN+Se8Tf5e7sNvVMQa01oRPEH6uR50FzssJVqFExS12taXq HUQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687779127; x=1690371127; 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=ndfzfcsjUka4AnwkvirKlt5NBE8AOPnlUgXPUv0HxPw=; b=B545P8T4hs8k0fisCL+EyhDVmP/2jeSZ63fYval0wI7wcrF7ayHYRFdhfixOGDJ0vi fF66hCJIk1PcX68dVze5BHk1goOaNQfZXl2KqsfgoZrjolD320JwG7DflO07EyNgQIeR DrBeg3UQOVR8CnOfnCKEQf70+84o/e8GlovDxVSBwx2x89ytqQPeg30Eshf0hU1bB4hj KAAGrsf7pjHQaX8+lEJYFcTr0lrrSv7DTSrc33Pe5i4lrADgHqCCtRS8RsJJMVymou2Z EMUCRgsqgAJE/eTJ0IP7BNBDv6aCl1QMH5rqDWlim8YukgfjjSVEuMP6Gv1wkAFZQ20L vE4Q== X-Gm-Message-State: AC+VfDyS5yOWtP4vsCXnS5rwRde6xYzd7GKNQyEzlfzmPXkcdkAOkjg2 pl065jYcaazItcYdr4aTMTa/pg== X-Received: by 2002:a17:906:fe4c:b0:977:e87c:e633 with SMTP id wz12-20020a170906fe4c00b00977e87ce633mr23056328ejb.23.1687779126713; Mon, 26 Jun 2023 04:32:06 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id ot6-20020a170906ccc600b0098df7d0e096sm2858994ejb.54.2023.06.26.04.32.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 04:32:06 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Jun 2023 13:32:06 +0200 Message-Id: Cc: "Manivannan Sadhasivam" Subject: Re: [PATCH] arm64: dts: qcom: sm8350: fix BAM DMA crash and reboot From: "Luca Weiss" To: "Krzysztof Kozlowski" , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Bhupesh Sharma" , , , X-Mailer: aerc 0.15.1 References: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> In-Reply-To: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> 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 autolearn=unavailable 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 Hi Krzysztof, On Wed Jun 21, 2023 at 4:36 PM CEST, Krzysztof Kozlowski wrote: > SM8350 HDK and MTP boards were silently dying and rebooting during BAM > DMA probe: > > [ 1.574304] vreg_bob: Setting 3008000-3960000uV > [ 1.576918] bam-dFormat: Log Type - Time(microsec) - Message - > Optional Info > Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic > S - QC_IMAGE_VERSION_STRING=3DBOOT.MXF.1.0-00637.1-LAHAINA-1 > S - IMAGE_VARIANT_STRING=3DSocLahainaLAA > S - OEM_IMAGE_VERSION_STRING=3Dcrm-ubuntu77 > S - Boot Interface: UFS > > It seems that BAM DMA is locally controller (not by firmware) and > requires proper initialization by the driver prior to use, at least on > HDK8350 and MTP8350, but probably on all boards. Are you sure that the bam (and subsequent the qce) actually probes with this change? From reading the code I don't see how the bam should probe without either qcom,controlled-remotely or qcom,powered-remotely but no clocks supplied. I think the probe just fails with this change, right? Regards Luca > > Fixes: f1040a7fe8f0 ("arm64: dts: qcom: sm8350: Add Crypto Engine support= ") > Signed-off-by: Krzysztof Kozlowski > > --- > > Cc: Manivannan Sadhasivam > --- > arch/arm64/boot/dts/qcom/sm8350.dtsi | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/q= com/sm8350.dtsi > index 88ef478cb5cc..b382ce66387e 100644 > --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi > @@ -1741,7 +1741,6 @@ cryptobam: dma-controller@1dc4000 { > interrupts =3D ; > #dma-cells =3D <1>; > qcom,ee =3D <0>; > - qcom,controlled-remotely; > iommus =3D <&apps_smmu 0x594 0x0011>, > <&apps_smmu 0x596 0x0011>; > };