Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9464320rwd; Wed, 21 Jun 2023 07:47:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6MAy23XUPm1F1tGrcUh4YVGdLYE7anEYmNEdXytHjAY+Ys6Rjuu6Ct5XnRMpVbfbjYv/pQ X-Received: by 2002:a05:6a20:a10f:b0:122:1da3:40b4 with SMTP id q15-20020a056a20a10f00b001221da340b4mr6496676pzk.10.1687358865026; Wed, 21 Jun 2023 07:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687358865; cv=none; d=google.com; s=arc-20160816; b=TdPnbNoOi+w1zXNFRtAAu/DOKPvBTG3fuXL21+/JhNCub2ggYOt8xrpmiHc5pvrxn3 UrSZPLu4XH+CU1SrZejz+hoFN0RGuEzNjjoy0COJy/vqw2ZElt2LRKZfkF2euSnMcAKS Y018iiC6SBirAj4RIPWHzof539wWtAm05GHQWJ6bJsCf3Xan6v4YE6ThlfxvN3xmITzi xRXb+X5DSNzcrvB0f1cGRcRf1yq5VayNdDEZTMjBBtSJloHxmNyjNnNNev2QsKHOPQ69 e3mY8pOoOnHxCa3XXFSlk6oHibKvlVBL5QDvhhuEaqqegt5G9Xmsjj3/lFlbfr4iHVyJ 7NWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Q267PzQvbc4qiFwzCDZZB6FJw0yi1HjyAE+qzfNhuaE=; b=GJXvSCTMY5VKGgruuq8uK4+802Suzt5JsJ3aXAZdc3cID1mENIuACmchTfQQN7XJ5B YPVrkKzWbEx5r1asp/qn0cHtooFYHemidXTjn841e7Ndazo2+J0adXKMGNQiJBGTCoD3 GYcjTVwljkaq6GqA6qvMzMu3xoNdxL/AnkqcwqFDUmGBcwrdB+GQeExIF61lbo9othjK sgAodGoDOcril6p+wdeCcC/VUyEfM5ofZf4DshWvb5YPMJu3xxgsJphCNQZIFEEh3LBh RHdt/fv9v7YKk049F4BAADoRk4ps5Kjx4fQAPWB4caIL5S/ChQmvbnVzK+7PhWGOGrmf i+9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rctvtICK; 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 q11-20020aa7842b000000b006436618b22bsi4299181pfn.155.2023.06.21.07.47.31; Wed, 21 Jun 2023 07:47:45 -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=rctvtICK; 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 S232467AbjFUOgr (ORCPT + 99 others); Wed, 21 Jun 2023 10:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232066AbjFUOgj (ORCPT ); Wed, 21 Jun 2023 10:36:39 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 887D81BCF for ; Wed, 21 Jun 2023 07:36:32 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f8fcaa31c7so65644885e9.3 for ; Wed, 21 Jun 2023 07:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687358191; x=1689950191; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q267PzQvbc4qiFwzCDZZB6FJw0yi1HjyAE+qzfNhuaE=; b=rctvtICKF4lpjMQ4GFaTKRkNEYiwDdBGk+QsCrkbDIvg2uKEXYwGN3Wa0p+Vkp04Qu Mc+CJdKQoGg2fnW3O2noq9sVKVt1r2fp4uGqKX8clqnunM31HC2FP78fjWw16TzOIJze yG6G9rpvpMV9bVY1CxNBf0JbNnSU0ACalWYnWbsOh7tSZ59syXRaQMYxm8kaLiZJ4MSF qj3FILCAHpak5gHHfuP5rLYG1uJK3fBWnr9xLRiyalNDbRc6nYwRPLLMImk0Ijf+iTCS K3StGdsijCQgTHT9Tm0nDauIz4fR8T0CZr4wVVEaCfCkc1CnkrnQHCoX6wlYLQLEYsfW 65Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687358191; x=1689950191; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q267PzQvbc4qiFwzCDZZB6FJw0yi1HjyAE+qzfNhuaE=; b=LY9tnZdhM+mwPHqCJ6BRi9dNDorvMBN6KTp8wWE3+6sMzU9H8TwiUORuMGfcfnaxMI FHLrGcFTWJZyXltnpcJYbDUaGsSH6XoY1HhbAG4V/lZ5/VTb7sLCCQ5rFpeFFWtO5asg 2afB4ILYtrU2RGMGVess3j5sKblCNNzynr9QrdLF/hxPKIZOsmG9L0XbaVxAPQqWlma3 WAvjm/dvFE3ijEyE2xV96fUssEFD2d6aHw2P1EMlrnT0D0V72hJCuiQTPFww53umN3a5 o6Wl5/h+Mo1+yZg9WZhbKevoZmgWmRWQUhyUUn6Cf1UZOolL1AsOYsL1NX+ZoQIWkEgt x9dg== X-Gm-Message-State: AC+VfDybrvJoeKkuQbVl2imQ6mSC9GG5e5xjziKFUGw9uXUE/T2ElCwy iMAogJwnIlOsTAFPPK/ZW7waNmuKcwwgknYNMMM= X-Received: by 2002:a05:600c:281:b0:3f9:960:2bb7 with SMTP id 1-20020a05600c028100b003f909602bb7mr11643793wmk.23.1687358190927; Wed, 21 Jun 2023 07:36:30 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id y9-20020adfdf09000000b0031122bd3c82sm4642396wrl.17.2023.06.21.07.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 07:36:30 -0700 (PDT) From: Krzysztof Kozlowski To: 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 Cc: Krzysztof Kozlowski , Manivannan Sadhasivam Subject: [PATCH] arm64: dts: qcom: sm8350: fix BAM DMA crash and reboot Date: Wed, 21 Jun 2023 16:36:27 +0200 Message-Id: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED 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 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 --- 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