From nobody Fri Jun 03 16:43:12 2022 X-Original-To: dev-commits-src-all@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 17AE01BD3AD5; Fri, 3 Jun 2022 16:43:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LF7wx3X1Cz3sDQ; Fri, 3 Jun 2022 16:43:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654274593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=P+XaH5uxDkEOX19bqMHx7A5g+ZCvsnsZfKpRBAzbxUQ=; b=cDMWvsMkFQs1unSPZIIDbWiYCcHVFq1ggbTuUSMSZ4vrcaeLWDJ4Aykvk1FpCza829+IzE ej2M5lXKe2BI05JL4pYQn88QjmlhfQqAf+/HwLd5fBgxAs8BIRxUnoQOv2uNf01b5rHbXA 5bcnsGpvNvUfBqYn1m7EXkjbNCHzByQke65ZPvnd4f8krRFVYy8zCp7UXmSirMvPLV3uVi 9wcJT6MzKoWrbwHv78DV56gWy1KFpei6kEmeDmBB+ZKEP+YQ0cxSvkmvY6uu4l8rrWPIcA hdHMZStRYzQaybXqgYIWL+UBZ4r4ALUoLX0vxGA4Li6HpPOUMP6LDi2gA7943Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 179DD4BD1; Fri, 3 Jun 2022 16:43:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 253GhCNL021820; Fri, 3 Jun 2022 16:43:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 253GhCXh021819; Fri, 3 Jun 2022 16:43:12 GMT (envelope-from git) Date: Fri, 3 Jun 2022 16:43:12 GMT Message-Id: <202206031643.253GhCXh021819@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: b7d358ded239 - stable/13 - rtw88: add man pages and hook up to build List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b7d358ded239227242b94379bf13ec97ab3bbbe6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654274593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=P+XaH5uxDkEOX19bqMHx7A5g+ZCvsnsZfKpRBAzbxUQ=; b=wWxlVJwMGlZNxRPq2CJvSZJ76aS8DvpB1AcxMI6YJOZo7N+eFtWVxAGdtO/TS+8Bye/Vrx 3gIv7MS32FeFT1kSj5ojJ0VoeNf7HZFxLdGdu0lPdMcBh791VnxEQF4jD5QTAyfpzrzDBM n0CQZ+10SoNG0G0mVZ+psWoWtfgbUS+cBYQA1JXUrDpdxLDV4uj3NXODNb8AbaVjEX2+4s rqqAQ1D+okZxDzuVxg5ue3hxb1dcQ7igG+0wePpuGETO0yi2wpyRKJqYE4zW+Gw/LQx83t LfxtRxGd1otCllA+uYaC58n4xqHCTJn4gB7zsST1Koqi1N9q+vryOo/IofXSJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654274593; a=rsa-sha256; cv=none; b=KYXmC9zwkn28aYefpiyEnkqSbdqmrlGeIYDP3DXEphGd/t1Q2fZj1BFGyLchTyWTfZ19o1 3HUVwvl1MZwDGhFLRP6hSsINVPJA+HFP7npK3h3oIiqlZnGDzB8XC4C1v/0cV8IxlOBljx 5uRP7QkNsiVBySt6KyLkAsHs1u0S0720tzClQaE5SZXk9oeEllUUgd1caVmRSr4ce4kz8z 9qTlurUeeonCMTlnrVHLLrASjF+iukOxLeW2rcDZl5sSKhpdsgRf2vmod305cGY5y/nj+c 3akK7IJSvZ7NqVv0SuHG8F+P8RWCzyBaIFOo5Huc+aRgMaxamYB+LFgQporXww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b7d358ded239227242b94379bf13ec97ab3bbbe6 commit b7d358ded239227242b94379bf13ec97ab3bbbe6 Author: Bjoern A. Zeeb AuthorDate: 2022-03-30 22:36:03 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-06-03 15:51:16 +0000 rtw88: add man pages and hook up to build Add man pages for rtw88 and rtw88fw. Install a copy of the firmware license file and hook up the driver and firmware modules to the build. Sponsored by: The FreeBSD Foundation Relnotes: yes (cherry picked from commit 20eeed6844e2ab82b909e02c720101297e78d916) --- share/doc/legal/Makefile | 3 +- share/doc/legal/realtek_rtw88/Makefile | 7 +++ share/man/man4/Makefile | 2 + share/man/man4/rtw88.4 | 95 ++++++++++++++++++++++++++++++++++ share/man/man4/rtw88fw.4 | 56 ++++++++++++++++++++ sys/modules/Makefile | 6 +++ 6 files changed, 168 insertions(+), 1 deletion(-) diff --git a/share/doc/legal/Makefile b/share/doc/legal/Makefile index 7a20215305d2..9710bfa48832 100644 --- a/share/doc/legal/Makefile +++ b/share/doc/legal/Makefile @@ -5,7 +5,8 @@ SUBDIR= intel_ipw \ intel_iwlwififw \ intel_iwn \ intel_wpi \ - realtek + realtek \ + realtek_rtw88 SUBDIR_PARALLEL= diff --git a/share/doc/legal/realtek_rtw88/Makefile b/share/doc/legal/realtek_rtw88/Makefile new file mode 100644 index 000000000000..8f1d6d9b9c41 --- /dev/null +++ b/share/doc/legal/realtek_rtw88/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +FILES= ${SRCTOP}/sys/contrib/dev/rtw88fw/LICENCE.rtlwifi_firmware.txt +FILESDIR= ${SHAREDIR}/doc/legal +FILESNAME= realtek_rtw88_firmware.LICENCE + +.include diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index 0df6c064d57c..622b4f040a70 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -473,6 +473,8 @@ MAN= aac.4 \ rndtest.4 \ route.4 \ rtsx.4 \ + rtw88.4 \ + rtw88fw.4 \ rtwn.4 \ rtwnfw.4 \ rtwn_pci.4 \ diff --git a/share/man/man4/rtw88.4 b/share/man/man4/rtw88.4 new file mode 100644 index 000000000000..b34fbf96c5df --- /dev/null +++ b/share/man/man4/rtw88.4 @@ -0,0 +1,95 @@ +.\"- +.\" Copyright (c) 2022 Bjoern A. Zeeb +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd March 31, 2022 +.Dt rtw88 4 +.Os +.Sh NAME +.Nm rtw88 +.Nd Realtek IEEE 802.11n/ac wireless network driver +.Sh SYNOPSIS +The driver will auto-load without any user interaction using +.Xr devmatch 8 +if enabled in +.Xr rc.conf 5 . +.Pp +Only if auto-loading is explicitly disabled, place the following +lines in +.Xr rc.conf 5 +to manually load the driver as a module at boot time: +.Bd -literal -offset indent +kld_list="${kld_list} if_rtw88" +.Ed +.Pp +The driver should automatically load any +.Xr rtw88fw 4 +firmware needed for the particular chipset. +.Pp +It is discouraged to load the driver from +.Xr loader 8 . +.Sh DESCRIPTION +The +.Nm +driver is derived from Realtek's Linux rtw88 driver and provides support for +the following chipsets: +.Pp +.Bl -tag -width Ds -offset indent -compact +.It Realtek 802.11n wireless 8723de (RTL8723DE) +.It Realtek 802.11ac wireless 8821ce (RTL8821CE) +.It Realtek 802.11ac wireless 8822be (RTL8822BE) +.It Realtek 802.11ac wireless 8822ce (RTL8822CE) +.El +.Pp +The driver uses the +.\" No LinuxKPI man pages so no .Xr here. +.Em linuxkpi_wlan +and +.Em linuxkpi +compat framework to bridge between the Linux and +native FreeBSD driver code as well as to the native +.Xr net80211 4 +wireless stack. +.Pp +While +.Nm +supports all 802.11 a/b/g/n and ac +the compatibility code currently only supports 802.11 a/b/g modes. +Support for 802.11 n/ac is to come. +.Sh BUGS +Certainly. +.Pp +Does not seem to work (reliably) on machines with more than 4GB of +main memory. +.Sh SEE ALSO +.Xr rtw88fw 4 , +.Xr wlan 4 , +.Xr ifconfig 8 , +.Xr wpa_supplicant 8 +.Sh HISTORY +The +.Nm +driver first appeared in +.Fx 14.0 . diff --git a/share/man/man4/rtw88fw.4 b/share/man/man4/rtw88fw.4 new file mode 100644 index 000000000000..1bf756d67e57 --- /dev/null +++ b/share/man/man4/rtw88fw.4 @@ -0,0 +1,56 @@ +.\"- +.\" Copyright (c) 2022 Bjoern A. Zeeb +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd March 31, 2022 +.Dt rtw88fw 4 +.Os +.Sh NAME +.Nm rtw88fw +.Nd Firmware modules for Realtek rtw88 wireless network driver +.Sh SYNOPSIS +The +.Xr rtw88 4 +driver should auto-load any firmware needed. +It is discouraged to load the driver or firmware manually from +.Xr loader 8 . +.Sh DESCRIPTION +Multiple modules provide access to firmware for the various chipset +models supported by the +.Xr rtw88 4 +driver. +.Sh FILES +A copy of the +.Xr rtw88 4 +firmware license is installed at +.Em /usr/share/doc/legal/realtek_rtw88_firmware.LICENCE . +.Sh SEE ALSO +.Xr rtw88 4 , +.Xr firmware 9 +.Sh HISTORY +The +.Nm +firmware modules first appeared in +.Fx 14.0 . diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 232728df7f63..9b5474425916 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -328,6 +328,8 @@ SUBDIR= \ rl \ ${_rockchip} \ rtsx \ + ${_rtw88} \ + ${_rtw88fw} \ rtwn \ rtwn_pci \ rtwn_usb \ @@ -542,6 +544,10 @@ _mlx4ib= mlx4ib _mlx5ib= mlx5ib .endif _ossl= ossl +_rtw88= rtw88 +.if ${MK_SOURCELESS_UCODE} != "no" +_rtw88fw= rtw88fw +.endif _vmware= vmware .endif