Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2025 21:37:02 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        Andrew Haley <aph-open@littlepinkcloud.com>, freebsd-arm@freebsd.org
Subject:   Re: Firefox crashes all the time on the RaspBerry Pi Zero 2W
Message-ID:  <CA%2B1FSigAYEVu3eUhFLWOA2e3SeQi4cN_EYT8CpsQWUEcxmaVSA@mail.gmail.com>
In-Reply-To: <724ADF41-02A6-4452-9AB2-0F7DF376592D@yahoo.com>
References:  <CA%2B1FSig7cE2_qP2GvbjTV34rDqucto-w5o4Ymyou9fVQ21WO=g@mail.gmail.com> <492f6f91-9ce2-497f-9ac1-2c6c7315790b@FreeBSD.org> <e1daada1-e947-4398-9c74-efd1136e7d5c@littlepinkcloud.com> <357901C9-10F1-4041-9BB2-CFE3FF863A82@yahoo.com> <724ADF41-02A6-4452-9AB2-0F7DF376592D@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000074c50d0632ae11ae
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't know if it is relevant or not,but this is the image file that I've
installed on the sd card of my raspberry pi zero 2W

FreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img

On Sun, Apr 13, 2025 at 9:31=E2=80=AFPM Mark Millard <marklmi@yahoo.com> wr=
ote:

> On Apr 13, 2025, at 09:41, Mark Millard <marklmi@yahoo.com> wrote:
>
> > On Apr 13, 2025, at 04:20, Andrew Haley <aph-open@littlepinkcloud.com>
> wrote:
> >
> >> On 13/04/2025 11:51, Ronald Klop wrote:
> >>> Op 29-03-2025 om 23:31 schreef Mario Marietto:
> >>>> Hello to everyone.
> >>>>
> >>>> I've installed FreeBSD 14.2 on my Raspberry Pi Zero 2W.
> >>>> The problem that I'm having is that Firefox crashes all the time. Th=
e
> errors that it gives are :
> >>>>
> >>> The warnings  Firefox is printing might be misleading. The most
> concrete thing it says is "Segmentation fault (core dumped)". So you coul=
d
> look up the core dump and use a debugger to check what is going on. As
> Firefox is a big piece of software this might not be trivial.
> >>
> >> Is this a 64-bit build?
> >>
> >> Some early revisions of the Cortex-A53 have an erratum (835769) whereb=
y
> >> it is possible for a 64-bit multiply-accumulate instruction in
> >> AArch64 state to generate an incorrect result.  The details are quite
> >> complex and hard to determine statically, since branches in the code
> >> may exist in some circumstances, but all cases end with a memory
> >> (load, store, or prefetch) instruction followed immediately by the
> >> multiply-accumulate operation.
> >>
> >> Cortex-A53_MPCore_Software_Developers_Errata_Notice_21.pdf
> >> https://gcc.gnu.org/legacy-ml/gcc-patches/2014-10/msg00906.html
> >>
> >> To work on these computers, all software must be compiled with the
> >> -mfix-cortex-a53-835769 compiler option.
> >>
> >> We have seen this crash in the wild.
> >>
> >
> > On a Zero 2 W? That was released in 2021-Oct. The RPi3B was
> > released in 2016-Feb. The errata with 835769 was published
> > in the 2014-Oct-08 ARM-EPM-048406 v14 document.
> >
> > There is also 843419 from the 2015-Feb-20 ARM-EPM-048406 v16
> > document. And there are others.
> >
> > Looking at what FreeBSD reports for the r0p? revision would
> > be relevant to what REVIDR register bits might report about
> > the status of such errata for a Cortex-A53.
> >
> > r0p0:
> > REVIDR[0] 810919 CatB Clearing of the global exclusive monitor can fail
> to set the event register
> > REVIDR[1] 812869 CatA Instruction stream might be corrupted
> >
> > r0p1:
> > REVIDR[2] 821523 CatA Hazarding snoop request might cause deadlock
> > REVIDR[6] 829070 CatA Speculative data reads might be performed to
> Device memory
> >
> > r0p2:
> > REVIDR[2] 821523 CatA Hazarding snoop request might cause deadlock
> > REVIDR[4] 823273 CatA Rare Load or store which fails condition code
> check might cause data corruption
> > REVIDR[5] 823819 CatB A snoop request to a core coincident with
> retention entry might cause deadlock
> > REVIDR[6] 829070 CatA Speculative data reads might be performed to
> Device memory
> > REVIDR[7] 835769 CatA AArch64 multiply-accumulate instruction might
> produce incorrect result
> >
> > r0p3:
> > REVIDR[6] 829070 CatA Speculative data reads might be performed to
> Device memory
> > REVIDR[7] 835769 CatA AArch64 multiply-accumulate instruction might
> produce incorrect result
> >
> > r0p4:
> > REVIDR[7] 835769 CatA AArch64 multiply-accumulate instruction might
> produce incorrect result
> > REVIDR[8] 843419 CatA A load or store might access an incorrect address
> > REVIDR[9] 859374 CatC AArch64 memory streaming performance might be
> lower than expected when using a 64KB translation granule
> >
> > Does anything report the Cortex-A53 REVIDR value as well?
> >
>
> I looked at a old serial console capture of a boot log from
> a very old RPi3B. It showed r0p4:
>
> CPU  0: ARM Cortex-A53 r0p4 affinity:
>
> But I did not see anything that looked to be based on REVIDR.
>
> =3D=3D=3D
> Mark Millard
> marklmi at yahoo.com
>
>

--=20
Mario.

--00000000000074c50d0632ae11ae
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I don&#39;t know if it is relevant or not,but this is=
 the image file that I&#39;ve installed on the sd card of my raspberry pi z=
ero 2W</div><div><br></div><div>FreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img<=
/div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_a=
ttr">On Sun, Apr 13, 2025 at 9:31=E2=80=AFPM Mark Millard &lt;<a href=3D"ma=
ilto:marklmi@yahoo.com" target=3D"_blank">marklmi@yahoo.com</a>&gt; wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Apr 13, 2025,=
 at 09:41, Mark Millard &lt;<a href=3D"mailto:marklmi@yahoo.com" target=3D"=
_blank">marklmi@yahoo.com</a>&gt; wrote:<br>
<br>
&gt; On Apr 13, 2025, at 04:20, Andrew Haley &lt;<a href=3D"mailto:aph-open=
@littlepinkcloud.com" target=3D"_blank">aph-open@littlepinkcloud.com</a>&gt=
; wrote:<br>
&gt; <br>
&gt;&gt; On 13/04/2025 11:51, Ronald Klop wrote:<br>
&gt;&gt;&gt; Op 29-03-2025 om 23:31 schreef Mario Marietto:<br>
&gt;&gt;&gt;&gt; Hello to everyone.<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; I&#39;ve installed FreeBSD 14.2 on my Raspberry Pi Zero 2W=
.<br>
&gt;&gt;&gt;&gt; The problem that I&#39;m having is that Firefox crashes al=
l the time. The errors that it gives are :<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt; The warnings=C2=A0 Firefox is printing might be misleading. Th=
e most concrete thing it says is &quot;Segmentation fault (core dumped)&quo=
t;. So you could look up the core dump and use a debugger to check what is =
going on. As Firefox is a big piece of software this might not be trivial.<=
br>
&gt;&gt; <br>
&gt;&gt; Is this a 64-bit build?<br>
&gt;&gt; <br>
&gt;&gt; Some early revisions of the Cortex-A53 have an erratum (835769) wh=
ereby<br>
&gt;&gt; it is possible for a 64-bit multiply-accumulate instruction in<br>
&gt;&gt; AArch64 state to generate an incorrect result.=C2=A0 The details a=
re quite<br>
&gt;&gt; complex and hard to determine statically, since branches in the co=
de<br>
&gt;&gt; may exist in some circumstances, but all cases end with a memory<b=
r>
&gt;&gt; (load, store, or prefetch) instruction followed immediately by the=
<br>
&gt;&gt; multiply-accumulate operation.<br>
&gt;&gt; <br>
&gt;&gt; Cortex-A53_MPCore_Software_Developers_Errata_Notice_21.pdf<br>
&gt;&gt; <a href=3D"https://gcc.gnu.org/legacy-ml/gcc-patches/2014-10/msg00=
906.html" rel=3D"noreferrer" target=3D"_blank">https://gcc.gnu.org/legacy-m=
l/gcc-patches/2014-10/msg00906.html</a><br>
&gt;&gt; <br>
&gt;&gt; To work on these computers, all software must be compiled with the=
<br>
&gt;&gt; -mfix-cortex-a53-835769 compiler option.<br>
&gt;&gt; <br>
&gt;&gt; We have seen this crash in the wild.<br>
&gt;&gt; <br>
&gt; <br>
&gt; On a Zero 2 W? That was released in 2021-Oct. The RPi3B was<br>
&gt; released in 2016-Feb. The errata with 835769 was published<br>
&gt; in the 2014-Oct-08 ARM-EPM-048406 v14 document.<br>
&gt; <br>
&gt; There is also 843419 from the 2015-Feb-20 ARM-EPM-048406 v16<br>
&gt; document. And there are others.<br>
&gt; <br>
&gt; Looking at what FreeBSD reports for the r0p? revision would<br>
&gt; be relevant to what REVIDR register bits might report about<br>
&gt; the status of such errata for a Cortex-A53.<br>
&gt; <br>
&gt; r0p0:<br>
&gt; REVIDR[0] 810919 CatB Clearing of the global exclusive monitor can fai=
l to set the event register <br>
&gt; REVIDR[1] 812869 CatA Instruction stream might be corrupted <br>
&gt; <br>
&gt; r0p1:<br>
&gt; REVIDR[2] 821523 CatA Hazarding snoop request might cause deadlock <br=
>
&gt; REVIDR[6] 829070 CatA Speculative data reads might be performed to Dev=
ice memory <br>
&gt; <br>
&gt; r0p2:<br>
&gt; REVIDR[2] 821523 CatA Hazarding snoop request might cause deadlock <br=
>
&gt; REVIDR[4] 823273 CatA Rare Load or store which fails condition code ch=
eck might cause data corruption<br>
&gt; REVIDR[5] 823819 CatB A snoop request to a core coincident with retent=
ion entry might cause deadlock<br>
&gt; REVIDR[6] 829070 CatA Speculative data reads might be performed to Dev=
ice memory<br>
&gt; REVIDR[7] 835769 CatA AArch64 multiply-accumulate instruction might pr=
oduce incorrect result<br>
&gt; <br>
&gt; r0p3:<br>
&gt; REVIDR[6] 829070 CatA Speculative data reads might be performed to Dev=
ice memory <br>
&gt; REVIDR[7] 835769 CatA AArch64 multiply-accumulate instruction might pr=
oduce incorrect result <br>
&gt; <br>
&gt; r0p4:<br>
&gt; REVIDR[7] 835769 CatA AArch64 multiply-accumulate instruction might pr=
oduce incorrect result <br>
&gt; REVIDR[8] 843419 CatA A load or store might access an incorrect addres=
s<br>
&gt; REVIDR[9] 859374 CatC AArch64 memory streaming performance might be lo=
wer than expected when using a 64KB translation granule<br>
&gt; <br>
&gt; Does anything report the Cortex-A53 REVIDR value as well?<br>
&gt; <br>
<br>
I looked at a old serial console capture of a boot log from<br>
a very old RPi3B. It showed r0p4:<br>
<br>
CPU=C2=A0 0: ARM Cortex-A53 r0p4 affinity: <br>
<br>
But I did not see anything that looked to be based on REVIDR.<br>
<br>
=3D=3D=3D<br>
Mark Millard<br>
marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer" target=3D"_blank=
">yahoo.com</a><br>
<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Ma=
rio.<br></div>

--00000000000074c50d0632ae11ae--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigAYEVu3eUhFLWOA2e3SeQi4cN_EYT8CpsQWUEcxmaVSA>