Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 May 2022 10:14:43 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        "Bjoern A. Zeeb" <bz@freebsd.org>
Cc:        FreeBSD wireless mailing list <wireless@freebsd.org>
Subject:   Re: rtw88: no more patching needed but a tunable in loader.conf
Message-ID:  <CAN6yY1uwJ=GogV=mBPB=0oeo1DcuT3puwYaF0D85_5K%2Bk_Mt6w@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.2205052120170.68830@ai.fobar.qr>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, May 5, 2022 at 2:26 PM Bjoern A. Zeeb <bz@freebsd.org> wrote:

> Hi,
>
> as of 0881eb9665dbfc8a53d9914a9dca1f0473ee1acb you do not need to
> patch your kernel anymore if you have more than 4GB of main memory.
> If you have a previously applied patch you may want to back that out
> to avoid conflicts when updating.
>
> The underlying problem wasn't fixed yet but I added a tunable to the
> code to allow you to use a GENERIC kernel and with that I feel okay to
> also MFC the driver in a few days to stable/13.
>
> The man page got updated (wiki will follow soon).  You want to add:
>
>         compat.linuxkpi.skb.mem_limit=1
>
> to your laoder.conf{.local} now and you need a reboot to make it
> effective.   Beware that the "1" is a specific value to limit DMA
> to 32bit.  Other values will not work for the desired results!
>
> You can check that the tunable was applied correctly by checking the
> read-only sysctl of the same name after booting.
>
>
> Enjoy,
> Bjoern
>
> --
> Bjoern A. Zeeb                                                     r15:7
>

Before I shoot myself in hte foot, can I get a little clarification?

I am running 13.1-Stable with an AX200. When this gets MFCed to 13.1-Stable
I guess I'll need to deal with this. I don't run a GENERIC kernel, but my
minor changes (SCHED_4BSD) would not seem like it would matter. Am I
correct? Since I have 20G of RAM, am I right to assume that I'll need
compat.linuxkpi.skb.mem_limit=1 in boot/loader.conf? I will not be updating
my system until the end of the month as I will be travelling and may not
even have network connectivity. (Most hotels seem to be using wireless that
does not play with FreeBSD's dhciient).

Just want to be sure that I know how to proceed when I get home and try to
update.

Thanks!


-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">On Thu, May 5, 2022 at 2:26 PM Bjoern A. Zeeb &lt;<a href="mailto:bz@freebsd.org">bz@freebsd.org</a>&gt; wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
as of 0881eb9665dbfc8a53d9914a9dca1f0473ee1acb you do not need to<br>
patch your kernel anymore if you have more than 4GB of main memory.<br>
If you have a previously applied patch you may want to back that out<br>
to avoid conflicts when updating.<br>
<br>
The underlying problem wasn&#39;t fixed yet but I added a tunable to the<br>
code to allow you to use a GENERIC kernel and with that I feel okay to<br>
also MFC the driver in a few days to stable/13.<br>
<br>
The man page got updated (wiki will follow soon).  You want to add:<br>
<br>
        compat.linuxkpi.skb.mem_limit=1<br>
<br>
to your laoder.conf{.local} now and you need a reboot to make it<br>
effective.   Beware that the &quot;1&quot; is a specific value to limit DMA<br>
to 32bit.  Other values will not work for the desired results!<br>
<br>
You can check that the tunable was applied correctly by checking the<br>
read-only sysctl of the same name after booting.<br>
<br>
<br>
Enjoy,<br>
Bjoern<br>
<br>
-- <br>
Bjoern A. Zeeb                                                     r15:7<br></blockquote><div> </div></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Before I shoot myself in hte foot, can I get a little clarification?</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">I am running 13.1-Stable with an AX200. When this gets MFCed to 13.1-Stable I guess I&#39;ll need to deal with this. I don&#39;t run a GENERIC kernel, but my minor changes (SCHED_4BSD) would not seem like it would matter. Am I correct? Since I have 20G of RAM, am I right to assume that I&#39;ll need compat.linuxkpi.skb.mem_limit=1 in boot/loader.conf? I will not be updating my system until the end of the month as I will be travelling and may not even have network connectivity. (Most hotels seem to be using wireless that does not play with FreeBSD&#39;s dhciient).</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Just want to be sure that I know how to proceed when I get home and try to update.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Thanks!<br></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uwJ=GogV=mBPB=0oeo1DcuT3puwYaF0D85_5K%2Bk_Mt6w>