From nobody Wed Jan 18 16:24:39 2023 X-Original-To: dev-commits-src-branches@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 4Nxrgq548Nz2yJL1; Wed, 18 Jan 2023 16:24:39 +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 4Nxrgq49C3z3DH7; Wed, 18 Jan 2023 16:24:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674059079; 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=XlRIlA8U+1zPXwSXelmA532VGpkcnQPk6Qzhn4rsQFU=; b=RcFHpMHn7v3uHGgeHX7dWAbueBrgf5JBKWrUmL+m7GqGOIRXfMRN/HzJ0Wdz5jOeu2qRVw M8bg1HyxiKLUaxnLTT+1xnKQWVm1OMEUODcDTMjRKjR1fNirbWU9Ds/h+xvlOq+KS1Qg9i QEzZXxBw+Bwd41XoSDTaKfP7WqIgRY15tujzQ+YcsW12z6DWnDIEz7B1w6slfaSgD/UIzg 3NJhycOr/I3BafViWpcrkLK7XN2MUAZjLu/B0ZLgSmRFld3pDDcFINPtMCxAA0LdFn1GNG x6K85JtaRc/zXiQssPMEf7iePQ7tV3Uj4+ZWyxzTnkWyV5REvULVxl+CH1CMHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674059079; 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=XlRIlA8U+1zPXwSXelmA532VGpkcnQPk6Qzhn4rsQFU=; b=lYiOoXxIrNuvtsdte6Z9u7j/183OajfIh59wGGWzY4dJ88uPe8XJK+ovWsjUYLUd+infwv kBtBo6fkhQUG/jkT5ubp/+xiHol+7zo5AP9qajH2ANc7ThLyXdOqOub4XwtZ/HioUNvh1L HWCFs5hFmwpI/QtiaYS3TewxcFBxl66JC79d9M/6WoWYZbivSpLF75Qrt9Tweyq9fcu3um WjSaj9SZqRaOgeSGeDvqZOgsCoAm0FXyG0V93hECzBWX80N3MtL5paadatH6WbMD071Abo uihcjg6ZQgzb2WwvXKWqokkfKJdxvg+HETTGn1Q2Fz+JUd11llBNy5B9uw2iDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674059079; a=rsa-sha256; cv=none; b=F1e8Je6unVB1P+fODHBtHY11VU2inREWR0aKN47CZNvqvC9RDGGPA9lJb/n6D0wt+2uJ6D xfWICpn8i3rr5oM2JLwJtx5g1RWCOvIZazuNnnc9+iPPGBMcKUpjXl1nYFwaP4EUl/6O8y 0IGgK/wT08+Y/HJJDO11Ka15D7hPuh9Z4ZvN1zHhTIBPLrFa5OtXIkO/8VrUP5+S3Q89wG 6y+RWI4r915v4AuAZgWhmb/TjsTJNgkoK/9mwGNaJ+a3aw/wAFEl5lHmyUGmifvzK6ampt v/H8R1nxUCiTYEOLtEf5EsFDUPNeOl2pXQ2rnxvkGNbVWG2WfMJnt0k/shwcww== 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 4Nxrgq3GWCzHp6; Wed, 18 Jan 2023 16:24:39 +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 30IGOdnR037709; Wed, 18 Jan 2023 16:24:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30IGOdTG037708; Wed, 18 Jan 2023 16:24:39 GMT (envelope-from git) Date: Wed, 18 Jan 2023 16:24:39 GMT Message-Id: <202301181624.30IGOdTG037708@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: b8262cc1340e - stable/13 - rtw89: import firmware for Realtek's rtw89 supported chipsets. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: b8262cc1340e993829dc7f6512b4773cd167b89e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b8262cc1340e993829dc7f6512b4773cd167b89e commit b8262cc1340e993829dc7f6512b4773cd167b89e Author: Bjoern A. Zeeb AuthorDate: 2022-09-09 12:52:54 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-01-18 13:22:44 +0000 rtw89: import firmware for Realtek's rtw89 supported chipsets. Import the most recent versions of the firmware images for the rtw89 driver. This is based on linux-firmware at 2f2f0181581d3e35bfdb9fc65f609ee9d3fbaeb7. The license of the firmware matches the previously added rtw88(4) firmware and you can find a copy in sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt. Add build infrastructure to create the .ko files but do not yet hook it up to the build until all parts are in the tree. Approved by: core.11 (imp) [2022-03-27] (cherry picked from commit 866e021654cfb72c050fd228dee476fb92fa6f48) --- .../dev/rtw89fw/LICENCE.rtlwifi_firmware.txt | 39 +++++++++++++++++++++ sys/contrib/dev/rtw89fw/WHENCE | 8 +++++ sys/contrib/dev/rtw89fw/rtw8852a_fw.bin | Bin 0 -> 1423232 bytes sys/contrib/dev/rtw89fw/rtw8852c_fw.bin | Bin 0 -> 1340192 bytes sys/modules/rtw89fw/Makefile | 7 ++++ sys/modules/rtw89fw/Makefile.inc | 17 +++++++++ sys/modules/rtw89fw/rtw8852a/Makefile | 6 ++++ sys/modules/rtw89fw/rtw8852c/Makefile | 6 ++++ 8 files changed, 83 insertions(+) diff --git a/sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt b/sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt new file mode 100644 index 000000000000..d70921f49379 --- /dev/null +++ b/sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt @@ -0,0 +1,39 @@ +Copyright (c) 2010, Realtek Semiconductor Corporation +All rights reserved. + +Redistribution. Redistribution and use in binary form, without +modification, are permitted provided that the following conditions are +met: + +* Redistributions must reproduce the above copyright notice and the + following disclaimer in the documentation and/or other materials + provided with the distribution. +* Neither the name of Realtek Semiconductor Corporation nor the names of its + suppliers may be used to endorse or promote products derived from this + software without specific prior written permission. +* No reverse engineering, decompilation, or disassembly of this software + is permitted. + +Limited patent license. Realtek Semiconductor Corporation grants a world-wide, +royalty-free, non-exclusive license under patents it now or hereafter +owns or controls to make, have made, use, import, offer to sell and +sell ("Utilize") this software, but solely to the extent that any +such patent is necessary to Utilize the software alone, or in +combination with an operating system licensed under an approved Open +Source license as listed by the Open Source Initiative at +http://opensource.org/licenses. The patent license shall not apply to +any other combinations which include this software. No hardware per +se is licensed hereunder. + +DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 +COPYRIGHT OWNER 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. diff --git a/sys/contrib/dev/rtw89fw/WHENCE b/sys/contrib/dev/rtw89fw/WHENCE new file mode 100644 index 000000000000..496ef115ef0b --- /dev/null +++ b/sys/contrib/dev/rtw89fw/WHENCE @@ -0,0 +1,8 @@ + +Driver: rtw89 - Realtek 802.11ax WLAN driver for RTL8852A + +File: rtw89/rtw8852a_fw.bin +File: rtw89/rtw8852c_fw.bin + +Licence: Redistributable. See LICENCE.rtlwifi_firmware.txt for details. + diff --git a/sys/contrib/dev/rtw89fw/rtw8852a_fw.bin b/sys/contrib/dev/rtw89fw/rtw8852a_fw.bin new file mode 100644 index 000000000000..00d139b3f2f1 Binary files /dev/null and b/sys/contrib/dev/rtw89fw/rtw8852a_fw.bin differ diff --git a/sys/contrib/dev/rtw89fw/rtw8852c_fw.bin b/sys/contrib/dev/rtw89fw/rtw8852c_fw.bin new file mode 100644 index 000000000000..86b634aeb69f Binary files /dev/null and b/sys/contrib/dev/rtw89fw/rtw8852c_fw.bin differ diff --git a/sys/modules/rtw89fw/Makefile b/sys/modules/rtw89fw/Makefile new file mode 100644 index 000000000000..2db828c06f00 --- /dev/null +++ b/sys/modules/rtw89fw/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +SUBDIR= \ + rtw8852a \ + rtw8852c + +.include diff --git a/sys/modules/rtw89fw/Makefile.inc b/sys/modules/rtw89fw/Makefile.inc new file mode 100644 index 000000000000..96ab73502152 --- /dev/null +++ b/sys/modules/rtw89fw/Makefile.inc @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# Common rules for building firmware. Note this gets auto-included +# by the subdir Makefile's as a consequence of included bsd.kmod.mk. + +_NAME= rtw${NAME}_fw.bin + +IMG= ${_NAME} +KMOD= ${_NAME} + +CLEANFILES+= ${IMG} + +FIRMWS= ${IMG}:${IMG}:${VERSION} + +${IMG}: ${SRCTOP}/sys/contrib/dev/rtw89fw/${IMG} + cp ${.ALLSRC} ${.TARGET} + diff --git a/sys/modules/rtw89fw/rtw8852a/Makefile b/sys/modules/rtw89fw/rtw8852a/Makefile new file mode 100644 index 000000000000..7ed7ad1f6c71 --- /dev/null +++ b/sys/modules/rtw89fw/rtw8852a/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +VERSION= 013360 +NAME= 8852a + +.include diff --git a/sys/modules/rtw89fw/rtw8852c/Makefile b/sys/modules/rtw89fw/rtw8852c/Makefile new file mode 100644 index 000000000000..7b871745cde4 --- /dev/null +++ b/sys/modules/rtw89fw/rtw8852c/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +VERSION= 027200 +NAME= 8852c + +.include