Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16164801rwd; Mon, 26 Jun 2023 06:38:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ678nzExPet6okOhN98ZsYdhjw/YUwdamiZdsO90/hUpu92UkzkOZRoRqYVDv1P36ZCCxwe X-Received: by 2002:a05:6a20:8e12:b0:11f:64ec:6946 with SMTP id y18-20020a056a208e1200b0011f64ec6946mr17147534pzj.14.1687786732094; Mon, 26 Jun 2023 06:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687786732; cv=none; d=google.com; s=arc-20160816; b=ZDxYwPNhSC7VHZ0Ung8rMWJvBppPJWO36oDRkC3YtW1kjBo6kbj7I078iPSIdJNH7I /oPTrlyU65zVXEIy499vSl+UYe1wqOBe4sEb5re+Cm4MNacuCg0F6EZMvNu5d+xwfNjV NfhVQflaED7Vls/TrRnHQ/B9BV93RG/bS0sL6qaabBRr7bbqyRYT8Z+mqxKfX9dFErKx kxtkIuu30h+Ihd60jCVpqj8/PYfkOa2Ne8Pzy2Z3V3P2mXynlgd7bPEmhlE/sKOwvm2I iWProF8c1xOH9iFiCVF5m3SQtS4ejyirPyGv32pOgCua1qiqLeQ2FQ/M/BEqgK5Yk4IO +TMg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=S/eB5w0T++roZBh+uzEzkt9zkvpr7sL54Saw0syelHU=; fh=2jmw0nZcGDBVkeJA28kuUvJm2+5raNk3sH3BarZ7Mw4=; b=COWQuSlPK3MW4Jr8TX1PYy4JkDs1wufHcHed7Zc6CYzaOO231qbcpW659Iwqos3rJM GvwrVwLuY4Fu7yc2RCtdHjsjNLPmkxazlORJn3dsRUbozmhIkUNnyHu1/r5alQQW8M7B 8QgiHijKztoOibVbXUiIblbVoXPxqIKD9MbvGoAWqSXZ3hTh/L4d9Hcsh5bEMiDNzrH/ lp0KqBdFyFoH7TLO+CBcy/dfFWc/MbiUNz3cnTB/th4UfiWzDSr05OOCJPMxZQ+IFrwg j5P/kPUWJaVdlIakkHIh9GyXlKEil+SRi4KfW5UVc5y6Sw+vL+nUt+PEPXOoSRJOlt2g NK9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fvGZjS0R; 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 fd35-20020a056a002ea300b006687406605asi5115385pfb.211.2023.06.26.06.38.39; Mon, 26 Jun 2023 06:38:52 -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=fvGZjS0R; 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 S230054AbjFZNYL (ORCPT + 99 others); Mon, 26 Jun 2023 09:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbjFZNYJ (ORCPT ); Mon, 26 Jun 2023 09:24:09 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26100139 for ; Mon, 26 Jun 2023 06:24:08 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fa23c3e618so47350525e9.0 for ; Mon, 26 Jun 2023 06:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687785846; x=1690377846; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=S/eB5w0T++roZBh+uzEzkt9zkvpr7sL54Saw0syelHU=; b=fvGZjS0RQ5WOB7+EjfoCOjhk8WIu9tOqvgFmVBjAPWqv/RghY+6gvFf6SybO54KnSi LyXjNyFHn+J7zHaoRS0kv7eFVeXhU6UfJ6Tu/3Is056P+MXQiJlwg1FVIfYfVY8XUHV9 pNS3eFFVHh+z2e1Ceqt8WwVfEVjkYIWcMR2TLEwJ98PEMwUG4vNcoWl6U6EUFxmL0eDd u1slTx/prmSUr7G9iDdUJy+GN2zUmyLQcnI0CVqV+oDiO4Ae6Nd8AW9epIyW8RQ7uyz0 A1DyPD/a+6RxajK2HD6JMn0AmhrgkivISnwu4PuNJyOsg2aa4vtj5BNDNCsq0Om4QopJ +TQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687785846; x=1690377846; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S/eB5w0T++roZBh+uzEzkt9zkvpr7sL54Saw0syelHU=; b=YCvxbw+78TS8lCjeUOt+az4RSiVvUX1Hhy1RvZv81wmucVkoKKADDgmcFXXJxOdJwf b3B5xg97QDW1buhwkQfIXrRKIA0KKBPsY7E/CJL8ZDiuUNt2jKXI/rjxfWyZHN9b+sFH Bu2wCB9bTrhhBvYkTkM7YJlEcRVfLuI/dk+Oti9+e6UdO22ypfq9KKTvn7075tU5c86f futJk/oIlc8GQUS951BxkrAp2D81NjaHnacJLLD23FWo5ODFrTeICnYZtAzsgkriizmx rwk/yeiYnUQI6Jv0KcO7Ehf9mumexnX2EiaKuyJbklZcHfjxPo70ozeFoW8f+djRJh9d CzDg== X-Gm-Message-State: AC+VfDwOKeq8g5d9p6dXHRLu+5Ewsv+T1+IyCBt2f43O7T0izJROOMx2 L3d7A8sSaBzFbYiLvT3rf90WHw== X-Received: by 2002:a05:600c:2903:b0:3fa:7fa9:4f9a with SMTP id i3-20020a05600c290300b003fa7fa94f9amr7278546wmd.16.1687785846598; Mon, 26 Jun 2023 06:24:06 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id c25-20020a7bc019000000b003f819faff24sm10654601wmb.40.2023.06.26.06.24.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 06:24:06 -0700 (PDT) Message-ID: <593b3b3e-7613-734d-91a9-9a48bbe5a9da@linaro.org> Date: Mon, 26 Jun 2023 15:24:04 +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 From: Krzysztof Kozlowski To: Luca Weiss , 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: Manivannan Sadhasivam References: <20230621143627.189134-1-krzysztof.kozlowski@linaro.org> <7b909a56-1b3d-79fb-0286-b10117982dc3@linaro.org> In-Reply-To: <7b909a56-1b3d-79fb-0286-b10117982dc3@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 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 26/06/2023 14:46, Krzysztof Kozlowski wrote: > On 26/06/2023 13:32, Luca Weiss wrote: >> 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=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. >> >> 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 > > Why the binding does not require either this or that? Eh, buggy stuff... > > >> clocks supplied. I think the probe just fails with this change, right? > > I will need to double check. I was happy enough to be able to boot my > device instead of having crashes, but indeed it would be nice to fix it > fully. You were right and my patch is not correct. I checked downstream and there are no clocks there. Therefore I assume something else is wrong here. I will send v2 disabling this. Best regards, Krzysztof