Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3009039rdb; Fri, 22 Sep 2023 15:18:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvJiZsh9IjnNweESZouJBqgSR4lVPY26mGWKA9KXDlD0QmXH6MRmcEv/2ETfA4moE08XhL X-Received: by 2002:a05:6808:2202:b0:3a9:ba39:6d70 with SMTP id bd2-20020a056808220200b003a9ba396d70mr1325396oib.23.1695421096965; Fri, 22 Sep 2023 15:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695421096; cv=none; d=google.com; s=arc-20160816; b=PZC1onFG/1u1ZUZ3IRgE1TvHX46gmcJuhNOST0IwiROKzG9vlV7DszS4K14988T6iQ xokVokWacln7IX1UvSJaZUfQHIxeAeL1uFzuLCsDQDUKESa2CP0r4O77ZnLSYBxLpSGr fUwT7x44UgeUAIo96Qb1eHXNxcHbUS6a2FWbV+1oc54kZ6nNNOwOYiMCQoddUhJyFoL1 g0gkOtY9Dnsu61SnNRhKARCYtza28khMisDVJhLOBTaiU10rwJ7MSWbBtc8c/XIjO/// h9lY4Vff5jw4Mw9bARSlK3CGdCKqxpyONWEQNw9DloU3fD0TSa00mQ0i1GEpn6G3tjSS lnCg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/3HKUYivTsBFVC5l+3XMpZiD4SHk5DqW+t3EiaJDxaI=; fh=5HqUOa9TXFV9cvPUIE3HsRXtr+f5PyJnj6rpqIB0Hws=; b=Z8vDYS8bN3G3AvRUMFZ+37ssOBybv++pJzLoy7zIVnURkHTMkh3uZrPp6KG3H3SzQW mwsJWkwTNrSVJhZDd+gkFAvQa1onp5+EAoJIl3S++hZiz6Fa1BQwWHju+g/8iyZLHNCu 5HRqrBJw2XjbbFLjQbcG/X4TVkUy2eVL0VPZFNuvqpPFhGJ5NQE9zNTn+NEnxGdGMfjr nqXfFfr55gzJSOHrxNqlv8YiMJGiSU/9d+Mm8+73ZI1GzMUAvT+YYiO7RAS0rhnBfAVO kMET29UFiH55c6hpZgulVosU01UVRXDZmG/Ok3XdcLwYeKQrCkubN7itjST/ILPmoQmU yhBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=TaNlayt6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c7-20020a62e807000000b0068fb8fa1e71si4424152pfi.207.2023.09.22.15.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:18:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=TaNlayt6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2F6E58766A9C; Fri, 22 Sep 2023 09:57:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231713AbjIVQ5b (ORCPT + 99 others); Fri, 22 Sep 2023 12:57:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbjIVQ50 (ORCPT ); Fri, 22 Sep 2023 12:57:26 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84DFB198; Fri, 22 Sep 2023 09:57:18 -0700 (PDT) Received: from g550jk.localnet (k10064.upc-k.chello.nl [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 01F29CFADA; Fri, 22 Sep 2023 16:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1695401807; bh=rK5mAbbiQpqlLCWKbud4SA+Xd793oMxnhhSEUiqVv/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TaNlayt6gRWpSNQ0zSytpOvDi8n403zBwEqlSZfulE94+TaduxD2u4h1t+k0+5vQq 0SA9PpSvKSoHvNRP9XzPySVYsbJ1EARl00BFMI3t5e1p59bWQDmwu+8GoyuRxuWp2D gMjmQx2UVwyFVFM2G9Ve9Q1Dm1aXGLmZQ7JlWQLE= From: Luca Weiss To: Konrad Dybcio , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Rob Herring , Krzysztof Kozlowski , Eduardo Valentin , Conor Dooley , Rajendra Nayak , Rob Herring , Andy Gross , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Craig Tatlor Subject: Re: [PATCH v2] ARM: dts: qcom: msm8974: correct qfprom node size Date: Fri, 22 Sep 2023 18:56:46 +0200 Message-ID: <4831735.GXAFRqVoOG@z3ntu.xyz> In-Reply-To: <12394955.O9o76ZdvQC@z3ntu.xyz> References: <20230130-msm8974-qfprom-v2-1-3839cf41d9ee@z3ntu.xyz> <12394955.O9o76ZdvQC@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:57:35 -0700 (PDT) On Sonntag, 6. August 2023 12:47:51 CEST Luca Weiss wrote: > Hi Bjorn, > > On Montag, 31. Juli 2023 23:45:21 CEST Bjorn Andersson wrote: > > On Thu, Jun 15, 2023 at 08:20:41PM +0200, Konrad Dybcio wrote: > > > On 15.06.2023 20:17, Luca Weiss wrote: > > > > From: Craig Tatlor > > > > > > > > The qfprom actually has size 0x3000, so adjust the reg. > > > > > > > > Note that the non-ECC-corrected qfprom can be found at 0xfc4b8000 > > > > (-0x4000). The current reg points to the ECC-corrected qfprom block > > > > which should have equivalent values at all offsets compared to the > > > > non-corrected version. > > > > > > > > [luca@z3ntu.xyz: extract to standalone patch and adjust for review > > > > comments] > > > > > > > > Fixes: c59ffb519357 ("arm: dts: msm8974: Add thermal zones, tsens and > > > > qfprom nodes") Signed-off-by: Craig Tatlor > > > > Signed-off-by: Luca Weiss > > > > --- > > > > > > Not sure of the actual size of the region, maybe Bjorn can help.. > > > > > > Downstream 3.10 suggests 0x60F0, 0x20F0 after adjusting for the ECC > > > offset > > > > There is indeed 0x3000 bytes until the next region, but afaict the > > corrected ECC values only cover the first 0x800 bytes thereof. > > > > Can you please let me know if this patch fixes a problem, or just > > makes the numbers look better? > > Initially this patch came from a different direction, to make space to use > the PVS bits for cpufreq. Since Konrad said in earlier revisions that I > should always use the +0x4000 space for the ECC-corrected variant I've > switched to that. > > If you think it's not useful to have the qfprom size reflect the actual > size, we can also drop this patch since I don't think it's actually > necessary for anything that I have lying around in some branches. > > I think I've just sent the current patch to make sure the hardware > description (dts) is as accurate as possible, but of course since any info > on Qualcomm is very restricted it could also be a bit wrong. Hi Bjorn, this patch is still lying in my inbox. Do you think it's correct or incorrect - so should we drop it? Regards Luca > > Regards > Luca > > > Regards, > > Bjorn > > > > > Konrad > > > > > > > Changes in v2: > > > > - Keep base offset but expand reg from 0x1000 to 0x3000 (Konrad) > > > > - Link to v1: > > > > https://lore.kernel.org/r/20230130-msm8974-qfprom-v1-1-975aa0e5e083@z3 > > > > n > > > > tu.xyz --- > > > > > > > > arch/arm/boot/dts/qcom-msm8974.dtsi | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi > > > > b/arch/arm/boot/dts/qcom-msm8974.dtsi index 7ed0d925a4e9..3156fe25967f > > > > 100644 > > > > --- a/arch/arm/boot/dts/qcom-msm8974.dtsi > > > > +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi > > > > @@ -1194,7 +1194,7 @@ restart@fc4ab000 { > > > > > > > > qfprom: qfprom@fc4bc000 { > > > > > > > > compatible = "qcom,msm8974-qfprom", > > "qcom,qfprom"; > > > > > - reg = <0xfc4bc000 0x1000>; > > > > + reg = <0xfc4bc000 0x3000>; > > > > > > > > #address-cells = <1>; > > > > #size-cells = <1>; > > > > > > > > --- > > > > base-commit: 858fd168a95c5b9669aac8db6c14a9aeab446375 > > > > change-id: 20230130-msm8974-qfprom-619c0e8f26eb > > > > > > > > Best regards,