Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10950966rwd; Thu, 22 Jun 2023 07:02:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/eJIvrYsGNDhN4qRZ+VOuR/dvI71XmAgaAgcqtKlVcVAa//VVxlbGwZ86Yo4SgxFiNWUx X-Received: by 2002:a05:6a21:99a9:b0:122:15e9:2c78 with SMTP id ve41-20020a056a2199a900b0012215e92c78mr9963946pzb.5.1687442527532; Thu, 22 Jun 2023 07:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687442527; cv=none; d=google.com; s=arc-20160816; b=ndiyXO8H7QjPlPFu8JgWI9HRH75subzMMCfqYQudar2guI3XllvW9sGhuXhlHrc6H5 f9NMwKoJ/GNA6al/yUsvIqHu/DSK7QeWsMzM0//0IkMXM5vbPtyZKjRyb/3/E+3wEKm5 244+2IPVj4cts+AVQRkQLba+T1LayKNwfHd3LDzCHwVTEjd6MLAje6ZKX2nIRks8oHTs NlsSqitRVc/466f3C1pQpCMz1LCz3cJ+m5qlBH61yM4h1rO59rEEj7Boyh+D22m++RJC R9j2IM/Z5KEyXSLudg3gI6k+RU3BwKOsbTh1I+XcaQ7fY28HYi8e0igxchr4/3Kg7pAD +B5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IeSbPg4ZIVu85Aig3buKlFPPdDBd8bIr1LgjNoNCfVk=; b=zmT/DJLVy8/xUmkBOht+eenVy3jGxRHHCcnkpk7bgwGIH1SJpH+czJ/XWinZipGAwR yVY1roZdm20udShdtetr3toHKWIxiNRqeew5PXx7m2Uwwf1RuM3Z5mGEpBWJqueH3uOs 1y4iiLzY4hX9WentjKZoMN63o1ouggchdcr+STBnBF4x6gXPcwaXWnJQuI97WPPhJLMV MRTmcmBPFPcE5yFptgk+FRnUrawezMJtewD5XaQ+VWM8vlbMiLrJbFWJ0/j1sGdWAkwR 4dgPwgsDsUa6wZUJsceBzTXe6fzWnHmHQoH6OvreQ6Fnhtrlo/bl239LzEa3xMv6UkW8 P+bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cltVl1bL; 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 t16-20020a63b250000000b0054fd1c6d253si6722589pgo.760.2023.06.22.07.01.53; Thu, 22 Jun 2023 07:02:07 -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=cltVl1bL; 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 S229990AbjFVNvK (ORCPT + 99 others); Thu, 22 Jun 2023 09:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjFVNvI (ORCPT ); Thu, 22 Jun 2023 09:51:08 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93173118 for ; Thu, 22 Jun 2023 06:51:07 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f8777caaa1so5418956e87.3 for ; Thu, 22 Jun 2023 06:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687441866; x=1690033866; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=IeSbPg4ZIVu85Aig3buKlFPPdDBd8bIr1LgjNoNCfVk=; b=cltVl1bLV6D0wwr/IhxvmEkAVZ0UkptHZRIIhZrDKqR88upROqWz0lTQy1FY+SFwl6 Z7JJvbeBn84dbj6E/gbdBj+sivPejDW9OeRikMtenMWMOpFSP0WCiBFjjczDLzfysFBC q8c8++3BYSuqz5IwxOOnMac6WTn97wNcPYvggFLv3iDVB0/tjbcR2pBAIxIhAxZCRd1s +0Caf70RkQUzUSj0mPxsIQNUlfdVpXRcV3a2HzT0XF+AuC5+aD6LmO4wSBnvzrFW9dE/ 6DYWGWgHUNc+l6Sd8hzp87i1Qsb0x/w7WxNlb6eQzmIMyJfX3cdnbTi9JNF13SUPo0wm eu6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687441866; x=1690033866; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IeSbPg4ZIVu85Aig3buKlFPPdDBd8bIr1LgjNoNCfVk=; b=N71jVKMaz20AALgzPqJ+zFt1ilbWivkibNwkA0zqoASQQ3A+ETe3MZgVTYDs2HFCH0 PYuWkmn7v6VXpQBc7gX5MrYWQt005ZyAiecGtnT/mAED7icVbY91vEFRTT8CXQ1vE35Y GcwZ1KIQmEJoaokhmdB/g4TuHDj+HUedVzV2ChAs9uVcapRvf6/Wjgc5796OJdkDCzRF Hjhjv1c4+5/t6idrF3vXgOE+kifNx4/RgQu7+hKXfePW2bX0+ul14Nu7EbregAi3+NF6 7o/gptkZMAzkyuQYeoeO7efPmIXIpgAM1+4dszcL7WBN6CMgSv+3AOs7JQwH6irwBB45 LqTg== X-Gm-Message-State: AC+VfDwD7gq48IZDieGApyQR8tedL6IpM/LCMbYulu2QclJXRuJIYowS GvrxG7gECipsgRzCyDfq2L2G X-Received: by 2002:a05:6512:3d90:b0:4f8:58ae:8ea8 with SMTP id k16-20020a0565123d9000b004f858ae8ea8mr11196655lfv.58.1687441865729; Thu, 22 Jun 2023 06:51:05 -0700 (PDT) Received: from thinkpad ([117.217.178.216]) by smtp.gmail.com with ESMTPSA id q16-20020aa7d450000000b0051a409e752asm4034616edr.17.2023.06.22.06.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 06:51:05 -0700 (PDT) Date: Thu, 22 Jun 2023 19:20:54 +0530 From: Manivannan Sadhasivam To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sm8350: fix BAM DMA crash and reboot Message-ID: <20230622135054.GA69564@thinkpad> References: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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=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, Jun 21, 2023 at 04:36:27PM +0200, 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=BOOT.MXF.1.0-00637.1-LAHAINA-1 > S - IMAGE_VARIANT_STRING=SocLahainaLAA > S - OEM_IMAGE_VERSION_STRING=crm-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. > > Fixes: f1040a7fe8f0 ("arm64: dts: qcom: sm8350: Add Crypto Engine support") > Signed-off-by: Krzysztof Kozlowski Acked-by: Manivannan Sadhasivam - Mani > > --- > > 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/qcom/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 = ; > #dma-cells = <1>; > qcom,ee = <0>; > - qcom,controlled-remotely; > iommus = <&apps_smmu 0x594 0x0011>, > <&apps_smmu 0x596 0x0011>; > }; > -- > 2.34.1 > -- மணிவண்ணன் சதாசிவம்