devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luca Weiss <luca@z3ntu.xyz>
To: Konrad Dybcio <konrad.dybcio@linaro.org>,
	Bjorn Andersson <andersson@kernel.org>
Cc: ~postmarketos/upstreaming@lists.sr.ht,
	phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Eduardo Valentin <edubezval@gmail.com>,
	Conor Dooley <conor+dt@kernel.org>,
	Rajendra Nayak <quic_rjendra@quicinc.com>,
	Rob Herring <robh@kernel.org>, Andy Gross <andy.gross@linaro.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Craig Tatlor <ctatlor97@gmail.com>
Subject: Re: [PATCH v2] ARM: dts: qcom: msm8974: correct qfprom node size
Date: Sun, 06 Aug 2023 12:47:51 +0200	[thread overview]
Message-ID: <12394955.O9o76ZdvQC@z3ntu.xyz> (raw)
In-Reply-To: <ff6fwomoik6kz4jtbm5jac7jahrtcia5fb6dj5ykxg7xt574sn@ti42sevqj6pk>

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 <ctatlor97@gmail.com>
> > > 
> > > 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 <ctatlor97@gmail.com>
> > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> > > ---
> > 
> > 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.

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@z3n
> > > 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,





  reply	other threads:[~2023-08-06 10:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15 18:17 [PATCH v2] ARM: dts: qcom: msm8974: correct qfprom node size Luca Weiss
2023-06-15 18:20 ` Konrad Dybcio
2023-07-31 21:45   ` Bjorn Andersson
2023-08-06 10:47     ` Luca Weiss [this message]
2023-09-22 16:56       ` Luca Weiss
2023-09-23 19:39         ` Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12394955.O9o76ZdvQC@z3ntu.xyz \
    --to=luca@z3ntu.xyz \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=andy.gross@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=ctatlor97@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=edubezval@gmail.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phone-devel@vger.kernel.org \
    --cc=quic_rjendra@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).