From nobody Sat Mar 01 02:40:47 2025 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z4Tpf6XfLz5hjwQ for ; Sat, 01 Mar 2025 02:40:58 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z4Tpf5qGnz3cNg; Sat, 01 Mar 2025 02:40:58 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740796858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wFddK4jh2Ajz/3ROM07scVQAAb2AFqgNro3hwJWO7SA=; b=gKK4cxY1i7IUNM0sWlfAf1Yho0juEqZIlf9M6Qm0RYrLVNCtCObboShxm+nowLxC37XLEG NhYVNmQAmLiRiKENUJL08JSbeDE1BOPV+h3LcwDAHlozhm5jbzRBaQxCEIk6XaaNVf+OWb bY+XdnWqOKLeuw7jvyOiKWyEpiwORn5nD/2LHA4H3691ycYbm/hT92GwyCqOpDQQjLsiTV IV2eaTRhEqvDkc1dCkYVHMEUQtXJXCv/t8dGl3BsB/vZ4iwePwfkwnsiVMAmf7t1hPPlf7 nQieMP5uw7ddUuvepWtt0ZSl3kO2WusTGKNyg33q7FepSMvNrR0j9hkEGTK59g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740796858; a=rsa-sha256; cv=none; b=ukl+/4hmSYOeE9LDmKtW1DQ1Q5SKPcFgwTEHoq6SNHpUhgXGH4yr9NF6YlsS9pvvHXyky9 s5WTmnJ7vb84l3cre8siavdTIJTGXZnsX57V1wnQaCwTk/prXOrlTz4QPfYNBwobbJhIg9 nCbRcFEmWoA3U7Bg0/lAklNtK2sTIlAIsUg3xqhSlFY8h0pNgl5tzqyaR9NWx9Cm43DpVX a1NAxCKbBn5lfGOsCt4heN3sjad5i+g+/5qtLDMwLzLW4IYpsUnMk6O4dgZoVCg+rqWJa8 1YYHSIacWaQfDBEUHvf4vinqdg74r1b8R1hbzjJg7+SxFA2LWAxfZLKb1dc5og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740796858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wFddK4jh2Ajz/3ROM07scVQAAb2AFqgNro3hwJWO7SA=; b=WDINRWDw+IDtyaNARudy18o9MUwZp8VEerAHcobjELEr3ZKc3253QPOEMg3rjfxfeDfMSQ m1DdbSqCBf29hSGjP7BAgVb4g5DA+7pV9Z4CPJet+o0RMferU2+zPBn95l4gEjyeNt/4NO l1uz32hF2oEzdGO43H5i4NoJJJ/Ll0YlF4xV3yawngpGw/UliEGGQAupj/XbXgwExN7WnP kuEDmWmYushxAv46Xdomer292tKC1LCwk9NnvReyzUATA+rpOmvamVoHPnGZUzqRvU+DVY to03Sxt9JrorAlXvB3u9yquHEy76NgjUR+NjOPC+dfnUYSbpLvy8VpaJTpt4Bg== Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Z4Tpf5NhpzXf; Sat, 01 Mar 2025 02:40:58 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-6e8969029aeso4043826d6.3; Fri, 28 Feb 2025 18:40:58 -0800 (PST) X-Gm-Message-State: AOJu0YyLwUq6nDhYRH4eg7BQf8I7Bn8GNa+Lb6hw1VDHLhgW73c/Q8lI n+o0JJ1TKZ4AzPkv2t1YiiWRbspBkQZiWGINt+iVV8qyNkzKKJHQtBneiSN09FRUCU2p/3dOh6m 96JZ9JTIAGZzh3vUwr8Tp3332iuk= X-Google-Smtp-Source: AGHT+IGTtgwfCqZMXPYkUJd5Sg0Zsn4AN1XktawkTpt6tnm5j/Hki3o0zylIMbWE9iP+cRb3lGAmEbLj54PRhBkBcPQ= X-Received: by 2002:a05:622a:14cb:b0:471:fe93:4b5f with SMTP id d75a77b69052e-474bc115ed2mr31565971cf.13.1740796858391; Fri, 28 Feb 2025 18:40:58 -0800 (PST) List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 References: <0r8nrq32-4980-r724-9snp-p9pqp2o50650@SerrOFQ.bet> In-Reply-To: From: Nuno Teixeira Date: Sat, 1 Mar 2025 02:40:47 +0000 X-Gmail-Original-Message-ID: X-Gm-Features: AQ5f1JrKNgc-ryDqDy1hY1h-sVOGm34v2lKZT6ojIR2zf8-MugXrilMrhMA7dDk Message-ID: Subject: Re: HT and VHT testing for modern iwlwifi chipsets (notes about others) To: "Bjoern A. Zeeb" Cc: FreeBSD wireless mailing list Content-Type: multipart/alternative; boundary="0000000000005ef1ef062f3eda7d" --0000000000005ef1ef062f3eda7d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) Hey! speedtest from ookla is telling max speed that my isp subscription handles! I'm downloading an iso from a linux mirror in Portugal @ >11MB/s !!! Damn, I must be dreaming... Am I? Nuno Teixeira escreveu (s=C3=A1bado, 1/03/2025 =C3=A0= (s) 02:32): > Hello, > > I see improvements on my side and connection stable: > > * main-n275735-457d745d90a6 > compat.linuxkpi.80211.hw_crypto=3D1 > compat.linuxkpi.iwlwifi_disable_11ac=3D0 > compat.linuxkpi.iwlwifi_11n_disable=3D0 > > * iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz > > * iwlwifi0@pci0:0:20:3: class=3D0x028000 rev=3D0x00 hdr=3D0x00 vendor= =3D0x8086 > device=3D0x06f0 subvendor=3D0x8086 subdevice=3D0x0074 > vendor =3D 'Intel Corporation' > device =3D 'Comet Lake PCH CNVi WiFi' > class =3D network > > * wlan0: flags=3D8843 metric 0 mt= u > 1500 > options=3D0 > ether 6c:6a:77:df:09:21 > inet 192.168.1.68 netmask 0xffffff00 broadcast 192.168.1.255 > groups: wlan > ssid Vodafone-24EF21 channel 36 (5180 MHz 11a vht/80+) bssid > 9c:b2:e8:fd:6c:90 > regdomain ETSI country PT authmode WPA2/802.11i privacy ON > deftxkey UNDEF AES-CCM 2:128-bit txpower 23 bmiss 7 mcastrate 6 > mgmtrate 6 scanvalid 60 -ampdutx ampdurx ampdulimit 64k > -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht vht40 vht80 > vht160 > -vht80p80 wme roaming MANUAL > parent interface: iwlwifi0 > media: IEEE 802.11 Wireless Ethernet VHT mode 11ac > status: associated > nd6 options=3D29 > > * i3status shows 360Mb/s > > * speedtest-go: > > =E2=9C=93 Test Server: [30945] 8.65km Gaia (Portugal) by MEO > =E2=9C=93 Latency: 11.332168ms Jitter: 557.557=C2=B5s Min: 10.26886ms Max= : 12.366276ms > =E2=9C=93 Packet Loss Analyzer: Running in background (<=3D 30 Secs) > =E2=9C=93 Download: 203.72 Mbps (Used: 255.91MB) (Latency: 28ms Jitter: 8= ms Min: > 11ms Max: 45ms) > =E2=9C=93 Upload: 101.70 Mbps (Used: 129.93MB) (Latency: 24ms Jitter: 16m= s Min: > 14ms Max: 73ms) > =E2=9C=93 Packet Loss: 1.06% (Sent: 280/Dup: 0/Max: 282) > > Cheers, > > Bjoern A. Zeeb escreveu (sexta, 28/02/2025 =C3=A0(s) 21:= 35): > >> Hi, >> >> upfront: rtw88/rtw89 and older iwlwifi chipsets all need more work which >> will continue. rtw88/rtw89 need LinuxKPI and net80211 changes, modern >> iwlwifi chipsets will need a net80211 change for a clean solution which >> is currently hardcoed in LinuxKPI, and older iwlwifi chipsets still need >> driver changes due to GPL-only code. >> >> If you have an iwlwifi AX2xx or BExxx and you have successfully tested >> HW_CYRPTO (see the other email thread here on wireless) then you have a >> chance to test a first cut of HT20/40 and VHT20/40/80 (no 160 yet) >> support by adding the following two tunables next to your hw_crypto one >> in loader.conf: >> >> compat.linuxkpi.iwlwifi_11n_disable=3D0 >> compat.linuxkpi.iwlwifi_disable_11ac=3D0 >> >> If you try this with any other (older) iwlwifi chipset (anything with >> just numbers 3xxx, 7xxx, 8xxx, 9xxx etc.), with rtw88 or rtw89 it will >> fail and I'll not provide support at this time unless you want to help >> to make it work. Otherwise you'll have to wait a few days/weeks >> longer -- sorry. >> >> Also if you try this without the hw_crypto tunable on, it'll fail badly, >> so please test that (independently) *first* if you haven't as that will >> be my first question. >> >> I am sure there'll be plenty of rough edges to fix for me... but I >> wanted to get the code out at this point. >> >> The last bits of the code have been in stable/14 since yesterday [1] and >> main since [2] (beware that main has more wireless changes I haven't >> rebased to yet for extra testing but they should not interfere). >> >> Once we have sufficient confidence that things work well enough I will >> likely add the tunables to the firmware ports so it'll do the right >> thing out of the box like was done for the rtw88 skb tunable and >> eventually slip the policy once the majority works. >> >> >> If things work the thanks should go to The FreeBSD Foundation, >> if things don't work the problem reports go to me. >> >> Happy testing and a blessed weekend, >> Bjoern >> >> [1] stable/14 >> https://cgit.freebsd.org/src/commit/?h=3Dstable/14&id=3D63c197298957c89f= e3e7bd0c3392da74ed72a24b >> [2] main: >> https://cgit.freebsd.org/src/commit/?id=3D2c44f1ff6935e93f7774e526f2f1ab= 0a2812eab5 >> >> -- >> Bjoern A. Zeeb r15:7 >> >> > > -- > Nuno Teixeira > FreeBSD UNIX: Web: https://FreeBSD.org > --=20 Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --0000000000005ef1ef062f3eda7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)

Hey!

speedtest from ookla is telling max speed that my isp subscription handles= !

I'm downloading an iso from a linux mirror i= n Portugal @ >11MB/s !!!

Damn, I must be dreaming...
Am I?

Nuno Teixeira <eduardo@freebsd.org> escreveu (s=C3=A1ba= do, 1/03/2025 =C3=A0(s) 02:32):
Hello,

I see= improvements on my side and connection stable:

* = main-n275735-457d745d90a6
compat.linuxkpi.80211.hw_crypto=3D1
= compat.linuxkpi.iwlwifi_disable_11ac=3D0
compat.linuxkpi.iwlwifi_11n_dis= able=3D0

* iwlwifi0: Detected Intel(R) Wi-Fi 6 AX2= 01 160MHz

* iwlwifi0@pci0:0:20:3: =C2=A0 class=3D0= x028000 rev=3D0x00 hdr=3D0x00 vendor=3D0x8086 device=3D0x06f0 subvendor=3D0= x8086 subdevice=3D0x0074
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D 'Int= el Corporation'
=C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D 'Comet La= ke PCH CNVi WiFi'
=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D networ= k

* wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SI= MPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 option= s=3D0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6c:6a:77:df:09:21
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 inet 192.168.1.68 netmask 0xffffff00 broadcast 192.168.1.= 255
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 ssid Vodafone-24EF21 channel 36 (5180 MHz 11a vht/80+) bssid 9c:b2:e8:f= d:6c:90
=C2=A0 =C2=A0 =C2=A0 =C2=A0 regdomain ETSI country PT authmode W= PA2/802.11i privacy ON
=C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF AES-CC= M 2:128-bit txpower 23 bmiss 7 mcastrate 6
=C2=A0 =C2=A0 =C2=A0 =C2=A0 m= gmtrate 6 scanvalid 60 -ampdutx ampdurx ampdulimit 64k
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht vht40 vht80 v= ht160
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -vht80p80 wme roaming MANUAL
=C2=A0= =C2=A0 =C2=A0 =C2=A0 parent interface: iwlwifi0
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 media: IEEE 802.11 Wireless Ethernet VHT mode 11ac
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 status: associated
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options= =3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

= * i3status shows 360Mb/s

* speedtest-go:

= =E2=9C=93 Test Server: [30945] 8.65km Gaia (Portugal) by MEO
=E2=9C=93 L= atency: 11.332168ms Jitter: 557.557=C2=B5s Min: 10.26886ms Max: 12.366276ms=
=E2=9C=93 Packet Loss Analyzer: Running in background (<=3D 30 Secs)=
=E2=9C=93 Download: 203.72 Mbps (Used: 255.91MB) (Latency: 28ms Jitter:= 8ms Min: 11ms Max: 45ms)
=E2=9C=93 Upload: 101.70 Mbps (Used: 129.93MB)= (Latency: 24ms Jitter: 16ms Min: 14ms Max: 73ms)
=E2=9C=93 Packet Loss:= 1.06% (Sent: 280/Dup: 0/Max: 282)

Cheers,

Bj= oern A. Zeeb <bz@fre= ebsd.org> escreveu (sexta, 28/02/2025 =C3=A0(s) 21:35):
Hi,

upfront: rtw88/rtw89 and older iwlwifi chipsets all need more work which will continue. rtw88/rtw89 need LinuxKPI and net80211 changes, modern
iwlwifi chipsets will need a net80211 change for a clean solution which
is currently hardcoed in LinuxKPI, and older iwlwifi chipsets still need driver changes due to GPL-only code.

If you have an iwlwifi AX2xx or BExxx and you have successfully tested
HW_CYRPTO (see the other email thread here on wireless) then you have a
chance to test a first cut of HT20/40 and VHT20/40/80 (no 160 yet)
support by adding the following two tunables next to your hw_crypto one
in loader.conf:

compat.linuxkpi.iwlwifi_11n_disable=3D0
compat.linuxkpi.iwlwifi_disable_11ac=3D0

If you try this with any other (older) iwlwifi chipset (anything with
just numbers 3xxx, 7xxx, 8xxx, 9xxx etc.), with rtw88 or rtw89 it will
fail and I'll not provide support at this time unless you want to help<= br> to make it work.=C2=A0 Otherwise you'll have to wait a few days/weeks longer -- sorry.

Also if you try this without the hw_crypto tunable on, it'll fail badly= ,
so please test that (independently) *first* if you haven't as that will=
be my first question.

I am sure there'll be plenty of rough edges to fix for me... but I
wanted to get the code out at this point.

The last bits of the code have been in stable/14 since yesterday [1] and main since [2] (beware that main has more wireless changes I haven't rebased to yet for extra testing but they should not interfere).

Once we have sufficient confidence that things work well enough I will
likely add the tunables to the firmware ports so it'll do the right
thing out of the box like was done for the rtw88 skb tunable and
eventually slip the policy once the majority works.


If things work the thanks should go to The FreeBSD Foundation,
if things don't work the problem reports go to me.

Happy testing and a blessed weekend,
Bjoern

[1] stable/14 https://cgit.freebsd.org/src/commit/?h=3Dstable/14&id=3D6= 3c197298957c89fe3e7bd0c3392da74ed72a24b
[2] main: https://= cgit.freebsd.org/src/commit/?id=3D2c44f1ff6935e93f7774e526f2f1ab0a2812eab5<= /a>

--
Bjoern A. Zeeb=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r15:7



--


--
Nuno Teixeira
=
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org
--0000000000005ef1ef062f3eda7d--