From nobody Fri Apr 1 00:32:40 2022 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 D98051A4F0E6 for ; Fri, 1 Apr 2022 00:32:49 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KV1NK1LlJz3ksM for ; Fri, 1 Apr 2022 00:32:49 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648773169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=1S8ZafLIW6WtHR2X7dYMupqdEehABFDJTr13WSH56Y8=; b=I69eLJxI+6TLZbQCq/EvvB0OzgGOFKKmFTRaW4N8bS55QU2LYmXsHTuQkUzhlUL09ejax6 T9SpLYR1hVHW4oyDxQcXhcmjuFMVW5dcFMN05YGRISyvUor1IwT3GSg10oHkNl2ruaiMwt o99njfg6lcd3vCBCf55Wlzg6sT53uC7IWafbjrq+d5y5/GmkWaZYglcKwbkM72QQj09B2M WIa0/TOxa9VWmghV2/yLikgk5WZNypNrFx8KZJPBUXixqUsfOCAL58hwgsKNVIG5DjHX9s j33OaAXf64nKkdYibnE74/DnV9nvr7T1ADq2hut6r6NRbxVGJpujwlGfzN63ag== Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id E64A528E36 for ; Fri, 1 Apr 2022 00:32:48 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id D3EE78D4A3A9 for ; Fri, 1 Apr 2022 00:32:47 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 712AFE70824 for ; Fri, 1 Apr 2022 00:32:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id hpJ6iUSm3sim for ; Fri, 1 Apr 2022 00:32:45 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id E4086E70821 for ; Fri, 1 Apr 2022 00:32:40 +0000 (UTC) Date: Fri, 1 Apr 2022 00:32:40 +0000 (UTC) From: "Bjoern A. Zeeb" To: FreeBSD wireless mailing list Subject: rtw88 import to main Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648773169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=1S8ZafLIW6WtHR2X7dYMupqdEehABFDJTr13WSH56Y8=; b=kK6HK9ktkUJ38+x81aIOGh7dZdGb1hQTDTmuo56WafRl57bAdZ//NUnVpOssQ5UeKuSGjE ZkLcBByFIqzhjMqkp7W6RhjCxF/nw4AmPGFUKjkJhOy+GjCi9wfOZ8N+heTsDYibMH4nMa w8AJE+3Cma+uPRL2yVlRIRK5If7rn60ncaHvlVABKrNrLDtRYbTqVm6aw5zmrMLlBxmf+I l3oDNeaSu89I4b8Ok4ACF/+VikpCrKnR6q44rbq05mbGPdOlUfiTLBzicdfHJ/Nsm+deZj YtNGnaN6c17aXS38U80cGhE2w7OvjlsFDzY+DF5KyOA565nY9h0FmhDTXe9+YA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648773169; a=rsa-sha256; cv=none; b=y1aUcrd737Is6PirmJyG7agd45a4xybzpz+U4ltCr45UVI1QdrmhU1JupwL3FBvu1asEmH Zwuf4PG7V3vESJ51fUgr1GiptBDSrvgXtbBKJJ/lCWYmjao51w1VLtrHaGECHvnd3yh9tj udNQjp+IiQV2hzcFefC8ATzmKXH5rRSFaIOwnsFF60wpq2QWxGts+Sq8VQePuRDfDS6tyi 2BKtVru3AFuUzlszlXe4Wo35ws+GVbJhq97f2gwMvO/tq9ExXnOIcuKZf0gn/1nrkrRzbA p2x639oNUSpWtGnhdGk81P/8Lbo45qX+GYiXiNr3xhl7m87k19W1881dod0Y2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Hi, I've just pushed Realtek's rtw88 driver into the tree along with firmware to support it and man pages. Station mode only. CAVEAT-0: Even though the MFC reminder is set, I'll probably not merge it this quickly into the stable/13 branch (see CAVEAT-1). If you want to do so yourself, you currently also need 86220d3cbd500b1018dcdabb0ba70644db438cfd if you are on i386 (I'll merge that in two days). I'll also keep merging anything else which improves things. Otherwise it's just the three commits to cherry-pick. CAVEAT-1: if you have more than 4GB of main memory, the driver will likely fail to load firmware or work. Sounds silly these days but hey. The reason for that is between LinuxKPI and busdma as I understand it currently and you can follow the problem by also applying https://reviews.freebsd.org/D34715 and checking the new compat.linuxkpi.lkpi_pci_nseg1_fail increases to > 0 when you try to load the driver. We'll keep pondering and I'll likely post (elsewhere) more about this the next days. Depending on the outcome of discussions we'll see how to solve that problem (I am currently thinking how much else it may affect and whether to hack the driver or FreeBSD to fix it). HINT-1: If you are still curious (and given you made it here you are!) you can try booting with hw.physmem="4G" # I believe is the right tuneable in loader.conf (which should limit your computers ability to do anything interesting these days) but may make rtw88 work (and that would be a report I'd be very interested in along with the PCI IDs and full dmesg if you wish). I know from one person who has tried successfully. I also tried on a 2G amd64 where this worked. My 64GB arm64 is still not happy even with this but that's probably another story. SUMMARY: I've added mentions of this to https://wiki.freebsd.org/WiFi/Rtw88 as well. CAVEAT-2: because of CAVEAT-1 testing so far has been limited so anything you can add will be appreciated. See HINT-1. Happy April 1st... oh I am not supposed to say that as this is real..tek? /bz -- Bjoern A. Zeeb r15:7