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'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 <<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, "Herbert J. Skuhra" wrote:<br> > <br> > On Wed, 10 Jul 2024 00:27:08 +0200, Pete Wright wrote:<br> > >=C2=A0 <br> > > On 7/9/24 15:17, Herbert J. Skuhra wrote:<br> > > > On Tue, 09 Jul 2024 21:39:30 +0200, William Dudley wrote:<br= > > > >> I wanted to use an old "RocketRaid 1740" SATA = PCI card in a machine,<br> > > >> and that requires the "hptrr" driver.=C2=A0 Th= is page:<br> > > >> <br> > > >> <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> > > >> <br> > > >> Suggests it's part of the 13.3 release, but I cannot= find anything but<br> > > >> a man page for it on my 13.3 systems (all three of them)= .<br> > > >> <br> > > >> Further, I installed the source tree (using git) because= I though<br> > > >> maybe I had to build the module, but hptrr isn't men= tioned at<br> > > >> all in the /usr/src/sys/amd64/GENERIC file, so I can'= ;t "enable" it<br> > > >> to be built as part of the kernel.<br> > > > It is listed in sys/amd64/conf/NOTES.<br> > > > <br> > > >=C2=A0 From /usr/src/UPDATING:<br> > > > <br> > > > 20191003:<br> > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 The hpt27xx, hptmv, hptnr,= and hptrr drivers have been removed from<br> > > >=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> > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 to /boot/loader.conf hpt27= xx_load=3D"YES", hptmv_load=3D"YES",<br> > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hptnr_load=3D"YES&quo= t;, or hptrr_load=3D"YES", respectively.<br> > > > <br> > > > But none of the 13.x-RELEASE kernel.txz (amd64) include the = mentioned modules.<br> > > > 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> > > > fixed for 13.4-RELEASE.<br> > > > <br> > > > Have you tried to build your own kernel with "device hp= trr"?<br> > > <br> > > i've got a system running CURRENT and can confirm those modul= es are<br> > > present, i would also assume they are there on 13.x as well. what= does<br> > > "ls /boot/kernel/hpt*" show on your system? -pete<br> > <br> > The modules are available in 12.x, 14.x and main, but are obviously<br= > > missing in 13.x:<br> > <br> > $ 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> > $ tar -ztf kernel.txz |grep hpt<br> > ./boot/kernel/hptiop.ko<br> > $ 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> > $ tar -ztf kernel.txz |grep hpt<br> > ./boot/kernel/hptrr.ko<br> > ./boot/kernel/hptnr.ko<br> > ./boot/kernel/tcphpts.ko<br> > ./boot/kernel/hpt27xx.ko<br> > ./boot/kernel/hptiop.ko<br> > ./boot/kernel/hptmv.ko<br> > <br> > And after running "make buildworld buildkernel" for stable/1= 3 (amd64)<br> > 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 "no" && empty(KCSAN_ENABL= ED)<br> +.if ${MK_SOURCELESS_HOST} !=3D "no"<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 "no" && empty(KCSAN_ENABL= ED)<br> +.if ${MK_SOURCELESS_HOST} !=3D "no"<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>