Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9606406rwd; Wed, 21 Jun 2023 09:24:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/qzCsfW1ahUMp5dwO7+9Fm0WGFGat/Ho6kBkJeb2mq3cjDKvMlfZ8Dh5MBHHqb3lZvq7B X-Received: by 2002:a17:902:ec87:b0:1b5:450a:4b3e with SMTP id x7-20020a170902ec8700b001b5450a4b3emr9004896plg.14.1687364673276; Wed, 21 Jun 2023 09:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687364673; cv=none; d=google.com; s=arc-20160816; b=L3gho/rFNKHp345MJj87CEKg5nG2f6RjrS2lxD0+S73VtfNJc0bw7P6J3ESSTLOrdC BJQP98Zr2weTPHnSqVKVXOElAafU200w6RJycJjSJ0ct4WrfsksoNQrf61YwPwvbM7GT +R+mpOEUqHzJ8rTKhmCVhXbqFeyjrNCVEWpnp6bAGIoDHo5rytFWL0UrN6CtUvWbMimm p5Ob3rYWeJn3Y6JW+sGwfSkgYPeJEU+2iHs2SOIlBTFGRFofkydg1vuMizVkLqc42TsE ZjVe/ydSik/D3ZHfNG81fG4/LKx1pXDhB0BynjkWVBUsgv+DmrtW6zYCPHACOVHg/jrx aRcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L97xFUB/temtwy4P5WXSXI6EdGmq+W3P48s85yOFasc=; b=MMw6RWZFtFXw0lK/yNjUHys04U+1WTUIU1YE9UCw9rW0zXQUqwO1GLhEC/mKmezHhw LKTU/+Bi4vRlwYMf5BKly7EDhf8ra6hVo+uXdEZJg60F7h35vawh6ZW1f4cQwdhpwXKJ Doiv5NmRxVpN2T03auUiMa6hwAMWtKWjd3sA+HdTKvop/kW7F3IL7zjWm6iGRdY6iRiF fSx5QowDex2CgJ3VCPMzyZymbiYmk5t5C4x3JH6Vb31o3mlYE+i0VBiZroxDtgeNFTWc mfmQ+W6b8hdy+6QCe4p+Zqe/qQ6xd8Vxiz7pGgdSlondnAHknNeaWn8QzZwMmH6AgKep B23g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OhBo8mdY; 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 y8-20020a17090322c800b001b00ffb44c5si4923425plg.229.2023.06.21.09.24.20; Wed, 21 Jun 2023 09:24:33 -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=OhBo8mdY; 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 S231883AbjFUQF0 (ORCPT + 99 others); Wed, 21 Jun 2023 12:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbjFUQFY (ORCPT ); Wed, 21 Jun 2023 12:05:24 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08ACA10A for ; Wed, 21 Jun 2023 09:05:21 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b466066950so74094711fa.2 for ; Wed, 21 Jun 2023 09:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687363520; x=1689955520; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=L97xFUB/temtwy4P5WXSXI6EdGmq+W3P48s85yOFasc=; b=OhBo8mdY2EQb4doBeRjxfE/PCPaqhdve5qfzbO/LYFBLeEl3giTQiM/3gL1/ebNztJ Z+qflDHVyA8waw+OkfW8gyMa17G8CTA3qdijO4i5v0tm8PxAt4HJfQxaUIR1/8kG/ZEG NwlYOq1dyLDAt0Dl8rTKCa3WcyQtRV2H9/rMqm2SGE8mzNZDxreRcolNm0zsAVIMTI/h JCQdMLfeOasEsb57iCHZubEooCYGB2UBTewCGkh8XFHis+6j5rUFnaUUGLktLsJ58ijy Zo7twp4zxKjFXfj++JJ3L+aLdw65jAbo2kqa3L8TQ9+l4oZ0IdlvMGHgDvIMieBpW+sH JpMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687363520; x=1689955520; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L97xFUB/temtwy4P5WXSXI6EdGmq+W3P48s85yOFasc=; b=hX4J/5O6/roE3o0z73U4+U/CVmU5gCDlJcoM+ScXQhsDUyk0EZqTDwddCE3YE/cPJO HTl3duIE/Igj+uuxCken8HBjJ3I3uRjkddrph8MQ1bWe+eN9p/jANNsgduNROrTDEZXP 4fsK0sTh7hj1epJ2EtXUyicTUJegSmZvTccFeQLE5IIOTj26XPl+2LPfvOKW+jtgmac5 sB0JV2K9wklaPLMDjsisw2ACg+/ZavCGgo8TYFqXvBF2/vTcFWOh2JolcwRCXGSb/DZP GFNX9cRHR/rNci7jUs+kJxSuITCdEcFfOG/Swcc0aAGNHnDQsoxFEnb3OCD26NbEmCe2 u1VQ== X-Gm-Message-State: AC+VfDzwYfLs8Q9G0hbIGbZBN893qGO699/bOzrHr0IzEcs1BWCJRMbi M5ZVmwc8DEG972kZwDylkBzwjg== X-Received: by 2002:a2e:b0e6:0:b0:2b4:78f6:d331 with SMTP id h6-20020a2eb0e6000000b002b478f6d331mr6371359ljl.32.1687363519916; Wed, 21 Jun 2023 09:05:19 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id y2-20020a2e7d02000000b002b4750c4db0sm942964ljc.49.2023.06.21.09.05.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jun 2023 09:05:19 -0700 (PDT) Message-ID: Date: Wed, 21 Jun 2023 18:05:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] arm64: dts: qcom: sm8350: fix BAM DMA crash and reboot Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Manivannan Sadhasivam References: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> From: Konrad Dybcio In-Reply-To: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 21.06.2023 16:36, 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 > > --- Reviewed-by: Konrad Dybcio Tested-by: Konrad Dybcio # SM8350 PDX215 Konrad > > 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>; > };