Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2024 08:55:42 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Cy Schubert <Cy.Schubert@cschubert.com>
Cc:        Andriy Gapon <avg@freebsd.org>, Jung-uk Kim <jkim@freebsd.org>,  Baptiste Daroussin <bapt@freebsd.org>, src-committers <src-committers@freebsd.org>,  "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>,  "<dev-commits-src-main@freebsd.org>" <dev-commits-src-main@freebsd.org>, Dmitry Salychev <dsl@mcusim.org>
Subject:   Re: git: 07c64d74917e - main - acpica: Import ACPICA 20230628
Message-ID:  <CANCZdfoB6oJXF%2BCOt0071DKrc6fZ67V4jpm_5uTfjfnDchy2Ng@mail.gmail.com>
In-Reply-To: <CANCZdfrs%2BHZnvPz4pXhLxtd_kA_yUoUMRvrvzbQGJumEgrPmQg@mail.gmail.com>
References:  <737703f2-26a6-4a84-a64b-3fa55cad721c@FreeBSD.org> <20240131204355.9EA2B19F@slippy.cwsent.com> <CANCZdfqVe%2BMGM846HPnMdHP=hhy6mKK2VHagzZ9R9p4C7JZgXA@mail.gmail.com> <CANCZdfrs%2BHZnvPz4pXhLxtd_kA_yUoUMRvrvzbQGJumEgrPmQg@mail.gmail.com>

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

On Mon, Feb 5, 2024 at 8:34=E2=80=AFAM Warner Losh <imp@bsdimp.com> wrote:

>
>
> On Wed, Jan 31, 2024 at 1:59=E2=80=AFPM Warner Losh <imp@bsdimp.com> wrot=
e:
>
>>
>>
>> On Wed, Jan 31, 2024, 1:44=E2=80=AFPM Cy Schubert <Cy.Schubert@cschubert=
.com>
>> wrote:
>>
>>> In message <737703f2-26a6-4a84-a64b-3fa55cad721c@FreeBSD.org>, Andriy
>>> Gapon
>>> wri
>>> tes:
>>> > On 31/01/2024 19:40, Cy Schubert wrote:
>>> > > In message <04c4a0e1-aa79-4d25-a1f7-2196cfa65578@FreeBSD.org>,
>>> Jung-uk Kim
>>> > > writ
>>> > > es:
>>> > >> On 24. 1. 31., Baptiste Daroussin wrote:
>>> > >>> Hello,
>>> > >>>
>>> > >>> Either this one or the previous import is breaking arm64 build
>>> > >>>
>>> > >>> --- acpi_iort.o ---
>>> > >>> /home/bapt/worktrees/main/sys/arm64/acpica/acpi_iort.c:103:4:
>>> error: fiel
>>> > d
>>> > >>> 'data' with variable sized type 'union (unnamed union at
>>> > >>> /home/bapt/worktrees/main/sys/arm64/acpica/acpi_iort.c:98:2
>>> > >>> )' not at the end of a struct or class is a GNU extension
>>> > >>> [-Werror,-Wgnu-variable-sized-type-not-at-end]
>>> > >>>     103 |         } data;
>>> > >>>           |           ^
>>> > >>
>>> > >> Sorry for the breakage.  I will fix it soon.
>>> > >>
>>> > >> BTW, this code was added by this:
>>> > >>
>>> > >> https://reviews.freebsd.org/D31267
>>> > >>
>>> > >> It seems struct iort_named_component was a hack, which duplicated
>>> > >> ACPI_IORT_NAMED_COMPONENT but with a fixed length field
>>> DeviceName[32].
>>> > >> Is it really necessary?
>>> > >
>>> > > Though they incorporated the WOL patch I've been using, they've
>>> broken
>>> > > poweroff.
>>> >
>>> > The poweroff issue could be because of 9cdf326b4f
>>>
>>> Thanks. I clued into that a while ago after taking a break to read the
>>> ML.
>>>
>>> This smelled of the original WOL problem I had last year that required
>>> pulling the plug to allow the NIC to see the magic packet, but worse.
>>> Hence
>>> I was barking up the wrong tree.
>>>
>>
>> On an semi-related issue... mind if I do a proper merge commit to catch
>> up and not leave hidden landmines for the future?
>>
>
> OK. I'll do a proper merge commit. We've accumulated a few dozen conflict=
s
> I'll have to sort out (though I think they
> are all in files we don't user or have deleted).
>

After resolving the conflicts, it's one file (limts.h) that's now included
where it wasn't before. Once I make sure that world and kernel still build,
I'll push the change since limits.h isn't going to affect any functionality
and I may need to ifdef it for the kernel anyay...

Many of the conflicts could be avoided if we didn't modify the files like
we do. I'll see about working up a patch, either myself or someone else who
has interest, and submitting it for review. This would make future merges
even easier since the changes we've made are all build-system related and
need manual intervention today.

Warner


> Warner
>
>
>> Warner
>>
>>>
>>> --
>>> Cheers,
>>> Cy Schubert <Cy.Schubert@cschubert.com>
>>> FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
>>> NTP:           <cy@nwtime.org>    Web:  https://nwtime.org
>>>
>>>                         e^(i*pi)+1=3D0
>>>
>>>
>>>

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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, Feb 5, 2024 at 8:34=E2=80=AFA=
M Warner Losh &lt;<a href=3D"mailto:imp@bsdimp.com">imp@bsdimp.com</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=
=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Wed, Jan 31, 2024 at 1:59=E2=80=AFPM Warne=
r Losh &lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"_blank">imp@bsdimp.c=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
"><div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">On Wed, Jan 31, 2024, 1:44=E2=80=AFPM Cy Schubert &l=
t;<a href=3D"mailto:Cy.Schubert@cschubert.com" target=3D"_blank">Cy.Schuber=
t@cschubert.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">In message &lt;737703f2-26a6-4a84-a64b-3fa55cad721c@FreeBSD.=
org&gt;, Andriy Gapon <br>
wri<br>
tes:<br>
&gt; On 31/01/2024 19:40, Cy Schubert wrote:<br>
&gt; &gt; In message &lt;04c4a0e1-aa79-4d25-a1f7-2196cfa65578@FreeBSD.org&g=
t;, Jung-uk Kim<br>
&gt; &gt; writ<br>
&gt; &gt; es:<br>
&gt; &gt;&gt; On 24. 1. 31., Baptiste Daroussin wrote:<br>
&gt; &gt;&gt;&gt; Hello,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Either this one or the previous import is breaking arm64 =
build<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --- acpi_iort.o ---<br>
&gt; &gt;&gt;&gt; /home/bapt/worktrees/main/sys/arm64/acpica/acpi_iort.c:10=
3:4: error: fiel<br>
&gt; d<br>
&gt; &gt;&gt;&gt; &#39;data&#39; with variable sized type &#39;union (unnam=
ed union at<br>
&gt; &gt;&gt;&gt; /home/bapt/worktrees/main/sys/arm64/acpica/acpi_iort.c:98=
:2<br>
&gt; &gt;&gt;&gt; )&#39; not at the end of a struct or class is a GNU exten=
sion<br>
&gt; &gt;&gt;&gt; [-Werror,-Wgnu-variable-sized-type-not-at-end]<br>
&gt; &gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0103 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0} data;<br>
&gt; &gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Sorry for the breakage.=C2=A0 I will fix it soon.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; BTW, this code was added by this:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; <a href=3D"https://reviews.freebsd.org/D31267" rel=3D"norefer=
rer noreferrer" target=3D"_blank">https://reviews.freebsd.org/D31267</a><br=
>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It seems struct iort_named_component was a hack, which duplic=
ated<br>
&gt; &gt;&gt; ACPI_IORT_NAMED_COMPONENT but with a fixed length field Devic=
eName[32].<br>
&gt; &gt;&gt; Is it really necessary?<br>
&gt; &gt; <br>
&gt; &gt; Though they incorporated the WOL patch I&#39;ve been using, they&=
#39;ve broken<br>
&gt; &gt; poweroff.<br>
&gt;<br>
&gt; The poweroff issue could be because of 9cdf326b4f<br>
<br>
Thanks. I clued into that a while ago after taking a break to read the ML.<=
br>
<br>
This smelled of the original WOL problem I had last year that required <br>
pulling the plug to allow the NIC to see the magic packet, but worse. Hence=
 <br>
I was barking up the wrong tree.<br></blockquote></div></div><div dir=3D"au=
to"><br></div><div dir=3D"auto">On an semi-related issue... mind if I do a =
proper merge commit to catch up and not leave hidden landmines for the futu=
re?</div></div></blockquote><div><br></div><div>OK. I&#39;ll do a proper me=
rge commit. We&#39;ve accumulated a few dozen conflicts I&#39;ll have to so=
rt out (though I think they</div><div>are all in files we don&#39;t user or=
 have deleted).</div></div></div></blockquote><div><br></div><div>After res=
olving the conflicts, it&#39;s one file (limts.h) that&#39;s now included w=
here it wasn&#39;t before. Once I make sure that world and kernel still bui=
ld, I&#39;ll push the change since limits.h isn&#39;t going to affect any f=
unctionality and I may need to ifdef it for the kernel anyay...<br></div><d=
iv><br></div><div>Many of the conflicts could be avoided if we didn&#39;t m=
odify the files like we do. I&#39;ll see about working up a patch, either m=
yself or someone else who has interest, and submitting it for review. This =
would make future merges even easier since the changes we&#39;ve made are a=
ll build-system related and need manual intervention today.<br></div><div><=
br></div><div>Warner<br></div><div>=C2=A0</div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div>Warn=
er</div><div>=C2=A0<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex"><div dir=3D"auto"><div dir=3D"auto">Warner</div><div dir=3D"auto"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Cheers,<br>
Cy Schubert &lt;<a href=3D"mailto:Cy.Schubert@cschubert.com" rel=3D"norefer=
rer" target=3D"_blank">Cy.Schubert@cschubert.com</a>&gt;<br>
FreeBSD UNIX:=C2=A0 &lt;cy@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a href=
=3D"https://FreeBSD.org" rel=3D"noreferrer noreferrer" target=3D"_blank">ht=
tps://FreeBSD.org</a><br>
NTP:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&lt;<a href=3D"mailto:cy@nwtim=
e.org" rel=3D"noreferrer" target=3D"_blank">cy@nwtime.org</a>&gt;=C2=A0 =C2=
=A0 Web:=C2=A0 <a href=3D"https://nwtime.org" rel=3D"noreferrer noreferrer"=
 target=3D"_blank">https://nwtime.org</a><br>;
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 e^(i*pi)+1=3D0<br>
<br>
<br>
</blockquote></div></div></div>
</blockquote></div></div>
</blockquote></div></div>

--000000000000fb3f010610a47ee2--



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