Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2024 22:12:38 -0400
From:      William Dudley <wfdudley@gmail.com>
To:        "Herbert J. Skuhra" <herbert@gojira.at>
Cc:        questions@freebsd.org, andrew@freebsd.org
Subject:   Re: Where is hptrr kernel module in 13.3 ?
Message-ID:  <CAFsnNZLHUwy42iO3k47corgCCA1GrkuK-VnAcWfqdYAJbWTwzg@mail.gmail.com>
In-Reply-To: <87a5iqp0et.wl-herbert@gojira.at>
References:  <CAFsnNZ%2BmBa4EuzJvwFEVXavYifMq4cTV=UoY2D362Mn9VHfWYA@mail.gmail.com> <87msmqyzv7.wl-herbert@gojira.at> <d83fc267-e788-4073-8840-da0705352be8@nomadlogic.org> <87le2ayy12.wl-herbert@gojira.at> <87a5iqp0et.wl-herbert@gojira.at>

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

I have submitted a but report.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280212
Thanks to all for reassuring me that I'm not missing something.

Bill Dudley
This email is free of malware because I run Linux.


On Tue, Jul 9, 2024 at 8:16=E2=80=AFPM Herbert J. Skuhra <herbert@gojira.at=
> wrote:

> On Wed, 10 Jul 2024 00:56:57 +0200, "Herbert J. Skuhra" wrote:
> >
> > On Wed, 10 Jul 2024 00:27:08 +0200, Pete Wright wrote:
> > >
> > > On 7/9/24 15:17, Herbert J. Skuhra wrote:
> > > > On Tue, 09 Jul 2024 21:39:30 +0200, William Dudley wrote:
> > > >> I wanted to use an old "RocketRaid 1740" SATA PCI card in a machin=
e,
> > > >> and that requires the "hptrr" driver.  This page:
> > > >>
> > > >> https://www.freebsd.org/releases/13.3R/hardware/
> > > >>
> > > >> Suggests it's part of the 13.3 release, but I cannot find anything
> but
> > > >> a man page for it on my 13.3 systems (all three of them).
> > > >>
> > > >> Further, I installed the source tree (using git) because I though
> > > >> maybe I had to build the module, but hptrr isn't mentioned at
> > > >> all in the /usr/src/sys/amd64/GENERIC file, so I can't "enable" it
> > > >> to be built as part of the kernel.
> > > > It is listed in sys/amd64/conf/NOTES.
> > > >
> > > >  From /usr/src/UPDATING:
> > > >
> > > > 20191003:
> > > >          The hpt27xx, hptmv, hptnr, and hptrr drivers have been
> removed from
> > > >          GENERIC.  They are available as modules and can be loaded
> by adding
> > > >          to /boot/loader.conf hpt27xx_load=3D"YES", hptmv_load=3D"Y=
ES",
> > > >          hptnr_load=3D"YES", or hptrr_load=3D"YES", respectively.
> > > >
> > > > But none of the 13.x-RELEASE kernel.txz (amd64) include the
> mentioned modules.
> > > > I guess you should open a PR at bugs.freebsd.org. Maybe this can be
> > > > fixed for 13.4-RELEASE.
> > > >
> > > > Have you tried to build your own kernel with "device hptrr"?
> > >
> > > i've got a system running CURRENT and can confirm those modules are
> > > present, i would also assume they are there on 13.x as well. what doe=
s
> > > "ls /boot/kernel/hpt*" show on your system? -pete
> >
> > The modules are available in 12.x, 14.x and main, but are obviously
> > missing in 13.x:
> >
> > $ curl -O
> https://download.freebsd.org/ftp/releases/amd64/13.3-RELEASE/kernel.txz
> > $ tar -ztf kernel.txz |grep hpt
> > ./boot/kernel/hptiop.ko
> > $ curl -O
> https://download.freebsd.org/ftp/releases/amd64/14.1-RELEASE/kernel.txz
> > $ tar -ztf kernel.txz |grep hpt
> > ./boot/kernel/hptrr.ko
> > ./boot/kernel/hptnr.ko
> > ./boot/kernel/tcphpts.ko
> > ./boot/kernel/hpt27xx.ko
> > ./boot/kernel/hptiop.ko
> > ./boot/kernel/hptmv.ko
> >
> > And after running "make buildworld buildkernel" for stable/13 (amd64)
> > on a stable/14 (amd64) system the modules are missing as well.
>
> Maybe
>
> commit 849aef496d2ae19961310f4e92f3a0b928732d26
> Author:     Andrew Turner
> AuthorDate: 2019-11-21 12:22:08 +0100
> Commit:     Andrew Turner
> CommitDate: 2019-11-21 12:22:08 +0100
>
>     Port the NetBSD KCSAN runtime to FreeBSD.
>     [...]
>
>
> The modules are built again if you revert the change to
> sys/modules/Makefile:
>
> diff --git a/sys/modules/Makefile b/sys/modules/Makefile
> index a61b4ad19095..31f6530fcb49 100644
> --- a/sys/modules/Makefile
> +++ b/sys/modules/Makefile
> @@ -747,11 +747,11 @@ _chvgpio=3D chvgpio
>  _ciss=3D         ciss
>  _chromebook_platform=3D  chromebook_platform
>  _coretemp=3D     coretemp
> -.if ${MK_SOURCELESS_HOST} !=3D "no" && empty(KCSAN_ENABLED)
> +.if ${MK_SOURCELESS_HOST} !=3D "no"
>  _hpt27xx=3D      hpt27xx
>  .endif
>  _hptiop=3D       hptiop
> -.if ${MK_SOURCELESS_HOST} !=3D "no" && empty(KCSAN_ENABLED)
> +.if ${MK_SOURCELESS_HOST} !=3D "no"
>  _hptmv=3D                hptmv
>  _hptnr=3D                hptnr
>  _hptrr=3D                hptrr
>
>
> I guess the following commit is missing on 13.x:
>
> commit 2422138952d86dd8b02ff33c55f747ca8e381afe
> Author:     Andrew Turner
> AuthorDate: 2021-06-02 12:07:55 +0200
> Commit:     Andrew Turner
> CommitDate: 2021-06-02 12:59:19 +0200
>
>     Fix the KCSAN_ENABLED check when building modules
>
>
>

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

<div dir=3D"ltr">I have submitted a but report.=C2=A0=C2=A0<a href=3D"https=
://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280212">https://bugs.freebsd=
.org/bugzilla/show_bug.cgi?id=3D280212</a><div>Thanks to all for reassuring=
 me that I&#39;m not missing something.<br><div><br></div><div>Bill Dudley<=
br clear=3D"all"><div><div dir=3D"ltr" class=3D"gmail_signature" data-smart=
mail=3D"gmail_signature">This email is free of malware because I run Linux.=
</div></div><br></div></div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Tue, Jul 9, 2024 at 8:16=E2=80=AFPM Herber=
t J. Skuhra &lt;<a href=3D"mailto:herbert@gojira.at">herbert@gojira.at</a>&=
gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On We=
d, 10 Jul 2024 00:56:57 +0200, &quot;Herbert J. Skuhra&quot; wrote:<br>
&gt; <br>
&gt; On Wed, 10 Jul 2024 00:27:08 +0200, Pete Wright wrote:<br>
&gt; &gt;=C2=A0 <br>
&gt; &gt; On 7/9/24 15:17, Herbert J. Skuhra wrote:<br>
&gt; &gt; &gt; On Tue, 09 Jul 2024 21:39:30 +0200, William Dudley wrote:<br=
>
&gt; &gt; &gt;&gt; I wanted to use an old &quot;RocketRaid 1740&quot; SATA =
PCI card in a machine,<br>
&gt; &gt; &gt;&gt; and that requires the &quot;hptrr&quot; driver.=C2=A0 Th=
is page:<br>
&gt; &gt; &gt;&gt; <br>
&gt; &gt; &gt;&gt; <a href=3D"https://www.freebsd.org/releases/13.3R/hardwa=
re/" rel=3D"noreferrer" target=3D"_blank">https://www.freebsd.org/releases/=
13.3R/hardware/</a><br>
&gt; &gt; &gt;&gt; <br>
&gt; &gt; &gt;&gt; Suggests it&#39;s part of the 13.3 release, but I cannot=
 find anything but<br>
&gt; &gt; &gt;&gt; a man page for it on my 13.3 systems (all three of them)=
.<br>
&gt; &gt; &gt;&gt; <br>
&gt; &gt; &gt;&gt; Further, I installed the source tree (using git) because=
 I though<br>
&gt; &gt; &gt;&gt; maybe I had to build the module, but hptrr isn&#39;t men=
tioned at<br>
&gt; &gt; &gt;&gt; all in the /usr/src/sys/amd64/GENERIC file, so I can&#39=
;t &quot;enable&quot; it<br>
&gt; &gt; &gt;&gt; to be built as part of the kernel.<br>
&gt; &gt; &gt; It is listed in sys/amd64/conf/NOTES.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt;=C2=A0 From /usr/src/UPDATING:<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; 20191003:<br>
&gt; &gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 The hpt27xx, hptmv, hptnr,=
 and hptrr drivers have been removed from<br>
&gt; &gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 GENERIC.=C2=A0 They are av=
ailable as modules and can be loaded by adding<br>
&gt; &gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 to /boot/loader.conf hpt27=
xx_load=3D&quot;YES&quot;, hptmv_load=3D&quot;YES&quot;,<br>
&gt; &gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hptnr_load=3D&quot;YES&quo=
t;, or hptrr_load=3D&quot;YES&quot;, respectively.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; But none of the 13.x-RELEASE kernel.txz (amd64) include the =
mentioned modules.<br>
&gt; &gt; &gt; I guess you should open a PR at <a href=3D"http://bugs.freeb=
sd.org" rel=3D"noreferrer" target=3D"_blank">bugs.freebsd.org</a>. Maybe th=
is can be<br>
&gt; &gt; &gt; fixed for 13.4-RELEASE.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Have you tried to build your own kernel with &quot;device hp=
trr&quot;?<br>
&gt; &gt; <br>
&gt; &gt; i&#39;ve got a system running CURRENT and can confirm those modul=
es are<br>
&gt; &gt; present, i would also assume they are there on 13.x as well. what=
 does<br>
&gt; &gt; &quot;ls /boot/kernel/hpt*&quot; show on your system? -pete<br>
&gt; <br>
&gt; The modules are available in 12.x, 14.x and main, but are obviously<br=
>
&gt; missing in 13.x:<br>
&gt; <br>
&gt; $ curl -O <a href=3D"https://download.freebsd.org/ftp/releases/amd64/1=
3.3-RELEASE/kernel.txz" rel=3D"noreferrer" target=3D"_blank">https://downlo=
ad.freebsd.org/ftp/releases/amd64/13.3-RELEASE/kernel.txz</a><br>
&gt; $ tar -ztf kernel.txz |grep hpt<br>
&gt; ./boot/kernel/hptiop.ko<br>
&gt; $ curl -O <a href=3D"https://download.freebsd.org/ftp/releases/amd64/1=
4.1-RELEASE/kernel.txz" rel=3D"noreferrer" target=3D"_blank">https://downlo=
ad.freebsd.org/ftp/releases/amd64/14.1-RELEASE/kernel.txz</a><br>
&gt; $ tar -ztf kernel.txz |grep hpt<br>
&gt; ./boot/kernel/hptrr.ko<br>
&gt; ./boot/kernel/hptnr.ko<br>
&gt; ./boot/kernel/tcphpts.ko<br>
&gt; ./boot/kernel/hpt27xx.ko<br>
&gt; ./boot/kernel/hptiop.ko<br>
&gt; ./boot/kernel/hptmv.ko<br>
&gt; <br>
&gt; And after running &quot;make buildworld buildkernel&quot; for stable/1=
3 (amd64)<br>
&gt; on a stable/14 (amd64) system the modules are missing as well.<br>
<br>
Maybe<br>
<br>
commit 849aef496d2ae19961310f4e92f3a0b928732d26<br>
Author:=C2=A0 =C2=A0 =C2=A0Andrew Turner<br>
AuthorDate: 2019-11-21 12:22:08 +0100<br>
Commit:=C2=A0 =C2=A0 =C2=A0Andrew Turner<br>
CommitDate: 2019-11-21 12:22:08 +0100<br>
<br>
=C2=A0 =C2=A0 Port the NetBSD KCSAN runtime to FreeBSD.<br>
=C2=A0 =C2=A0 [...]<br>
<br>
<br>
The modules are built again if you revert the change to<br>
sys/modules/Makefile:<br>
<br>
diff --git a/sys/modules/Makefile b/sys/modules/Makefile<br>
index a61b4ad19095..31f6530fcb49 100644<br>
--- a/sys/modules/Makefile<br>
+++ b/sys/modules/Makefile<br>
@@ -747,11 +747,11 @@ _chvgpio=3D chvgpio<br>
=C2=A0_ciss=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ciss<br>
=C2=A0_chromebook_platform=3D=C2=A0 chromebook_platform<br>
=C2=A0_coretemp=3D=C2=A0 =C2=A0 =C2=A0coretemp<br>
-.if ${MK_SOURCELESS_HOST} !=3D &quot;no&quot; &amp;&amp; empty(KCSAN_ENABL=
ED)<br>
+.if ${MK_SOURCELESS_HOST} !=3D &quot;no&quot;<br>
=C2=A0_hpt27xx=3D=C2=A0 =C2=A0 =C2=A0 hpt27xx<br>
=C2=A0.endif<br>
=C2=A0_hptiop=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0hptiop<br>
-.if ${MK_SOURCELESS_HOST} !=3D &quot;no&quot; &amp;&amp; empty(KCSAN_ENABL=
ED)<br>
+.if ${MK_SOURCELESS_HOST} !=3D &quot;no&quot;<br>
=C2=A0_hptmv=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hptm=
v<br>
=C2=A0_hptnr=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hptn=
r<br>
=C2=A0_hptrr=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hptr=
r<br>
<br>
<br>
I guess the following commit is missing on 13.x:<br>
<br>
commit 2422138952d86dd8b02ff33c55f747ca8e381afe<br>
Author:=C2=A0 =C2=A0 =C2=A0Andrew Turner<br>
AuthorDate: 2021-06-02 12:07:55 +0200<br>
Commit:=C2=A0 =C2=A0 =C2=A0Andrew Turner<br>
CommitDate: 2021-06-02 12:59:19 +0200<br>
<br>
=C2=A0 =C2=A0 Fix the KCSAN_ENABLED check when building modules<br>
<br>
<br>
</blockquote></div>

--000000000000f6f84a061cdb30a5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFsnNZLHUwy42iO3k47corgCCA1GrkuK-VnAcWfqdYAJbWTwzg>