Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Oct 2024 15:07:38 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Stefan Hegnauer <stefan.hegnauer@gmx.ch>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: APU1 bricked on stable/14 - solved
Message-ID:  <CANCZdfryCQ5co-9DQ2Sz-%2B_T_4rzqYFLu4M5qAJMErtbDj5bFQ@mail.gmail.com>
In-Reply-To: <f12072f3-3b4e-4e63-a91b-802d59a0e873@gmx.ch>
References:  <feaff803-ae93-4e9b-a8e6-1498d7b07b69@gmx.ch> <CANCZdfqZ_byx5aQsybVDriitWezTL43ix7Vajh-i1DKPRtg_7g@mail.gmail.com> <f12072f3-3b4e-4e63-a91b-802d59a0e873@gmx.ch>

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

On Sun, Oct 6, 2024, 1:14=E2=80=AFPM Stefan Hegnauer <stefan.hegnauer@gmx.c=
h> wrote:

> On 06.10.2024 15:47, Warner Losh wrote:
>
>
>
> On Sun, Oct 6, 2024 at 6:35=E2=80=AFAM Stefan Hegnauer <stefan.hegnauer@g=
mx.ch>
> wrote:
>
>> I have a few pc-engines APU1 appliances running in headless mode under
>> Nanobsd. Maintenance is by means of  direct COM port connection.
>> After a recent update a few weeks back I was not able to connect by COM
>> port anymore - console output and input went away after booting and
>> before single- or multi-user mode would start. Even re-flashing the
>> SDcard with a fresh image did not help.
>>
>> After some longish trials and errors it turned out that both
>> - commit 74b9fc7a 'amd64 GENERIC: Switch uart hints from "isa" to
>> "acpi"' as well as
>> - commit 4ba4cfaf 'acpi: Narrow workaround for broken interrupt settings
>> on x86'
>> broke things for me. Restoring hints and setting
>> hw.acpi.override_isa_irq_polarity=3D1 in /boot/loader.conf.local restore=
d
>> working order.
>>
>> I agree that APU1 is EOL, however I would have expected an entry to
>> UPDATING for such a POLA violation.
>>
>
> Likely, but really really old gear like this is going to hit edge cases
> that
> developers haven't seen. The hint thing wasn't though to actually
> negatively
> affect any deployed hardware since it dealt with details that changed 15 =
or
> 20 years ago...
>
> Looks like the APU1 used coreboot which at the time was trailing adaptati=
on
> of ACPI, so it makes sense... I knew that Soekris boxes had issues, but
> they
> are another 5 or 10 years older than the APUs and mine sadly isn't
> operational.
>
> So I can write a better UPDATING entry, can you share with me the dmesg
> from both APU1 and APU2?
>
> Warner
>
>
>> Note that pc-engines APU2 models are not affected as the BIOS ACPI
>> tables contain correct UART descriptions.
>>
>> - Stefan
>>
>> Warner: thanks for the quick reply. Not so really, really old in my view
> - the BIOS is from ~August 2022 (APU1). And yes, it uses coreboot:
>     PC Engines apu1
>     coreboot build 20220822
>     BIOS version v4.17.0.3
>     SeaBIOS (version rel-1.16.0.1-0-g77603a32)
>

Yea. ACPI started being reliable in the early 2000s, +/-. Nearly everything
sonce 2010 has provided it....  Here's clearly an exception that needs
special care so we can make newer hw more reliable... My comments are more
to explain the regression not to try to assign blame on the hardware..

>From verbose boot, dmesg -a:
> - APU1, original/faulty from today:
> https://hegnauer.selfhost.eu/web/computing/apu1c4_3mdeb_v4_17_0_3_std.txt
> - APU1, fixed in loader.conf.local:
> https://hegnauer.selfhost.eu/web/computing/apu1c4_3mdeb_v4_17_0_3_fixed.t=
xt
> - APU2 (has no problems):
> https://hegnauer.selfhost.eu/web/computing/apu2d4_3mdeb_v4_19_0_1.txt
>

Thanks. I think between the two I know what to write.

Warner


> Let me know if you need additional information.
>
> - Stefan
>

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

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sun, Oct 6, 2024, 1:14=E2=80=AFPM Stefan Hegnauer &=
lt;<a href=3D"mailto:stefan.hegnauer@gmx.ch">stefan.hegnauer@gmx.ch</a>&gt;=
 wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

 =20
   =20
 =20
  <div>
    <font face=3D"monospace">On 06.10.2024 15:47, Warner Losh wrote:<br>
    </font>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"ltr">
        <div dir=3D"ltr"><font face=3D"monospace"><br>
          </font></div>
        <font face=3D"monospace"><br>
        </font>
        <div class=3D"gmail_quote">
          <div dir=3D"ltr" class=3D"gmail_attr"><font face=3D"monospace">On
              Sun, Oct 6, 2024 at 6:35=E2=80=AFAM Stefan Hegnauer &lt;<a hr=
ef=3D"mailto:stefan.hegnauer@gmx.ch" target=3D"_blank" rel=3D"noreferrer">s=
tefan.hegnauer@gmx.ch</a>&gt;
              wrote:<br>
            </font></div>
          <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face=3D"m=
onospace">I have a few pc-engines APU1 appliances
              running in headless mode under<br>
              Nanobsd. Maintenance is by means of=C2=A0 direct COM port
              connection.<br>
              After a recent update a few weeks back I was not able to
              connect by COM<br>
              port anymore - console output and input went away after
              booting and<br>
              before single- or multi-user mode would start. Even
              re-flashing the<br>
              SDcard with a fresh image did not help.<br>
            </font>
            <font face=3D"monospace"><br>
              After some longish trials and errors it turned out that
              both<br>
              - commit 74b9fc7a &#39;amd64 GENERIC: Switch uart hints from
              &quot;isa&quot; to<br>
              &quot;acpi&quot;&#39; as well as<br>
              - commit 4ba4cfaf &#39;acpi: Narrow workaround for broken
              interrupt settings<br>
              on x86&#39;<br>
              broke things for me. Restoring hints and setting<br>
              hw.acpi.override_isa_irq_polarity=3D1 in
              /boot/loader.conf.local restored<br>
              working order.<br>
            </font>
            <font face=3D"monospace"><br>
              I agree that APU1 is EOL, however I would have expected an
              entry to<br>
              UPDATING for such a POLA violation.<br>
            </font></blockquote>
          <div><font face=3D"monospace"><br>
            </font></div>
          <div><font face=3D"monospace">Likely, but really really old gear
              like this is going to hit edge cases that</font></div>
          <div><font face=3D"monospace">developers haven&#39;t seen. The hi=
nt
              thing wasn&#39;t though to actually negatively</font></div>
          <div><font face=3D"monospace">affect any deployed hardware since
              it dealt with details that changed 15 or</font></div>
          <div><font face=3D"monospace">20 years ago...</font></div>
          <div><font face=3D"monospace"><br>
            </font></div>
          <div><font face=3D"monospace">Looks like the APU1 used coreboot
              which at the time was trailing adaptation</font></div>
          <div><font face=3D"monospace">of ACPI, so it makes sense... I
              knew that Soekris boxes had issues, but they</font></div>
          <div><font face=3D"monospace">are another 5 or 10 years older
              than the APUs and mine sadly isn&#39;t operational.</font></d=
iv>
          <div><font face=3D"monospace"><br>
            </font></div>
          <div><font face=3D"monospace">So I can write a better UPDATING
              entry, can you share with me the dmesg</font></div>
          <div><font face=3D"monospace">from both APU1 and APU2?</font></di=
v>
          <div><font face=3D"monospace"><br>
            </font></div>
          <div><font face=3D"monospace">Warner</font></div>
          <div><font face=3D"monospace">=C2=A0</font></div>
          <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face=3D"m=
onospace">
              Note that pc-engines APU2 models are not affected as the
              BIOS ACPI<br>
              tables contain correct UART descriptions.<br>
            </font>
            <font face=3D"monospace"><br>
              - Stefan<br>
            </font>
            <font face=3D"monospace"><br>
            </font>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <font face=3D"monospace">Warner: thanks for the quick reply. Not so
      really, really old in my view - the BIOS=C2=A0is from ~August 2022
      (APU1). And yes, it uses coreboot:<br>
      =C2=A0=C2=A0=C2=A0 PC Engines apu1<br>
      =C2=A0=C2=A0=C2=A0 coreboot build 20220822<br>
      =C2=A0=C2=A0=C2=A0 BIOS version v4.17.0.3<br>
      =C2=A0=C2=A0=C2=A0 SeaBIOS (version rel-1.16.0.1-0-g77603a32)<br></fo=
nt></div></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"a=
uto">Yea. ACPI started being reliable in the early 2000s, +/-. Nearly every=
thing sonce 2010 has provided it....=C2=A0 Here&#39;s clearly an exception =
that needs special care so we can make newer hw more reliable... My comment=
s are more to explain the regression not to try to assign blame on the hard=
ware..</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gma=
il_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex"><div><font face=3D"monospace">
      From verbose boot, dmesg -a:<br>
      - APU1, original/faulty from today:=C2=A0<a href=3D"https://hegnauer.=
selfhost.eu/web/computing/apu1c4_3mdeb_v4_17_0_3_std.txt" target=3D"_blank"=
 rel=3D"noreferrer">https://hegnauer.selfhost.eu/web/computing/apu1c4_3mdeb=
_v4_17_0_3_std.txt</a><br>
      - APU1, fixed in loader.conf.local:=C2=A0<a href=3D"https://hegnauer.=
selfhost.eu/web/computing/apu1c4_3mdeb_v4_17_0_3_fixed.txt" target=3D"_blan=
k" rel=3D"noreferrer">https://hegnauer.selfhost.eu/web/computing/apu1c4_3md=
eb_v4_17_0_3_fixed.txt</a><br>
      - APU2 (has no problems): <a href=3D"https://hegnauer.selfhost.eu/web=
/computing/apu2d4_3mdeb_v4_19_0_1.txt" target=3D"_blank" rel=3D"noreferrer"=
>https://hegnauer.selfhost.eu/web/computing/apu2d4_3mdeb_v4_19_0_1.txt</a><=
/font></div></blockquote></div></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Thanks. I think between the two I know what to write.</div><div d=
ir=3D"auto"><br></div><div dir=3D"auto">Warner=C2=A0</div><div dir=3D"auto"=
><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div><font face=3D"monospace"><br>
      Let me know if you need additional information.<br>
      <br>
      - Stefan<br>
    </font>
  </div>

</blockquote></div></div></div>

--00000000000004750f0623d54c89--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfryCQ5co-9DQ2Sz-%2B_T_4rzqYFLu4M5qAJMErtbDj5bFQ>