From nobody Fri Apr 25 12:00:06 2025 X-Original-To: freebsd-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 4ZkWcf3lHRz5tT90 for ; Fri, 25 Apr 2025 12:00:18 +0000 (UTC) (envelope-from eduardo@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZkWcf351jz4Fgs for ; Fri, 25 Apr 2025 12:00:18 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745582418; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IfuYzgopQY4NFUWQSq6gqHCno2IXMKFCvJjjvmxyE5M=; b=Q1m3rVtYpW1Ur74FtdJr7bjdindOW7oTxavVdznZEMWQowK5vODQRRWFF1Gnud1vJf+t1g sw1PQPgo5CEiVOYsft+3dbfXl2+ADj5/ex6KXUaoqaY4NaCjmCaibPZGo1O7l3dLKFfkR/ zZtrb0e1uMh8mLLo/cAf08z7vOMbU7/BdJV3PfF/TN0as2MdvD8kU9sehlRBv0WQ+yVUST j3KUNik6SREBRBXoodI0/rFK1eLlJwRtukryU36EtWf1SlG78/The0MtF36k0gNFxRT8oy 7sHeF7wVENRKLRsLNc6z3ZJ8SDOJjGAN0reeO1J+uJ5hkNPJ2f024IXYH8nDAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745582418; a=rsa-sha256; cv=none; b=BnGe8SZrBKb/agqGPhtsfdjQveXqanq8XWNPHtzWJrrxbLnVbUXigffv8Sg9iPSqnosBCi +95OG3l4b8duHllGw2X101OA9hX29xg0e2NZw7YnZpJK/vVUYkRCzjzLk+DZtn3Lax9m4M O7V3C9oJpIIch8isekA96UC7Nk0x9htFRvIjtlCHpCb2w80cAbyMFvcRZz/j1pJ/zlDbBU k302uu1KQnOEHfAYxN57Ka9Nm+Olb6f+4tMpvUHVkk76r8tiDqHZAYJkDn3nqIMHOIBor+ x21MbQ1L2hJrxXO1x/DTvWFybCpY7Bt2OkVWKsMS15SfZ64RSh1hA1dQCeH6pQ== 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=1745582418; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IfuYzgopQY4NFUWQSq6gqHCno2IXMKFCvJjjvmxyE5M=; b=EeHZwOaP1LE+mx6XppOEQ//IM5jgREyAcrACXDVbkRitnuRTICfkHF9UPY8v1+PIZSg4Wk v7pgslxGDAd8QdymS6ro3ehrB3HArpSssHjqDlsTmSHhUaW3JWcxWvuuA1ndTF0EB2F0QM onKRimvybYfonAW4c0eNcNDvtEgpp/27M8wZWi/rElESwU+dk9AYyjb6c7csaVirw6/7hJ kaTEVpNaGXVEDbOQqmBqlfyHDlNL1zSf7jqPV0s3sLH10SzWutyFt/16Lb58LAsSsvaDx6 rDD7bq+y5KpHUSBTheRGme8pkmrL7yGRsxxtnlzn4S0Ald+ZL7OQzfSgXxIUPA== Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (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 4ZkWcf2GxPz9Qm for ; Fri, 25 Apr 2025 12:00:18 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-6f2b58f0d09so3368916d6.3 for ; Fri, 25 Apr 2025 05:00:18 -0700 (PDT) X-Gm-Message-State: AOJu0YyqcxpA1TMzzNQSzOA4SKQx9ebQv29ioTKxOLtItnPjPEsfCXtR OVFUtfdgA6LDB6MiXDYSp8fHokt9RE7pNhagA5TtLd7/owviNgFJfjzZCb3Xh+HhcqbcfZp0wre 2czSit4m9ZLefbBVpyksqySimQs4= X-Google-Smtp-Source: AGHT+IHvd/6aB2WYtzV6AP8eR7A5hwblR7RlacLAp+kKj0smfFInTaeL5DUdK9mJ1YYNW15RPm8gTII/CsiqpAdxbxE= X-Received: by 2002:ac8:5f12:0:b0:472:e32:3fa7 with SMTP id d75a77b69052e-4801eada5d6mr13663421cf.15.1745582417853; Fri, 25 Apr 2025 05:00:17 -0700 (PDT) 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: In-Reply-To: From: Nuno Teixeira Date: Fri, 25 Apr 2025 13:00:06 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: ATxdqUEva5dboOrxLYt_bHe9SB_iVegYS_3qnWunFv4MGZUzKSAz9ToxPo3EbV8 Message-ID: Subject: Re: rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf To: Adrian Chadd Cc: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, The oldest BE that I have in aarch64 is from main-n276312-487c7245a789: Tue Apr 8 iperf3 -c 192.168.1.100 Connecting to host 192.168.1.100, port 5201 [ 5] local 192.168.1.102 port 28643 connected to 192.168.1.100 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.03 sec 6.62 MBytes 53.8 Mbits/sec 9 92.0 KBytes [ 5] 1.03-2.00 sec 6.38 MBytes 55.2 Mbits/sec 6 94.8 KBytes [ 5] 2.00-3.00 sec 6.50 MBytes 54.5 Mbits/sec 9 102 KBytes [ 5] 3.00-4.00 sec 6.50 MBytes 54.5 Mbits/sec 2 98.8 KBytes [ 5] 4.00-5.00 sec 6.62 MBytes 55.6 Mbits/sec 14 105 KBytes [ 5] 5.00-6.00 sec 6.50 MBytes 54.5 Mbits/sec 31 119 KBytes [ 5] 6.00-7.00 sec 6.62 MBytes 55.6 Mbits/sec 3 123 KBytes [ 5] 7.00-8.00 sec 6.50 MBytes 54.5 Mbits/sec 20 123 KBytes [ 5] 8.00-9.00 sec 6.62 MBytes 55.6 Mbits/sec 4 127 KBytes [ 5] 9.00-10.00 sec 6.38 MBytes 53.5 Mbits/sec 59 71.4 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 65.2 MBytes 54.7 Mbits/sec 157 sender [ 5] 0.00-10.01 sec 65.0 MBytes 54.5 Mbits/sec recei= ver In iperf3 -R mode, I can reproduce the current problem: % iperf3 -c 192.168.1.100 -R Connecting to host 192.168.1.100, port 5201 Reverse mode, remote host 192.168.1.100 is sending [ 5] local 192.168.1.102 port 37659 connected to 192.168.1.100 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.02 sec 0.00 Bytes 0.00 bits/sec [ 5] 1.02-2.04 sec 0.00 Bytes 0.00 bits/sec [ 5] 2.04-3.06 sec 0.00 Bytes 0.00 bits/sec [ 5] 3.06-4.01 sec 0.00 Bytes 0.00 bits/sec [ 5] 4.01-5.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 5.00-6.00 sec 384 KBytes 3.15 Mbits/sec [ 5] 6.00-7.00 sec 1.00 MBytes 8.38 Mbits/sec [ 5] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 9.00-10.01 sec 0.00 Bytes 0.00 bits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.01 sec 1.38 MBytes 1.15 Mbits/sec 24 sender [ 5] 0.00-10.01 sec 1.38 MBytes 1.15 Mbits/sec recei= ver rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf Maybe in the time of this world I didn't notived any warning/errors since connection was funcional. Cheers, Adrian Chadd escreveu (sexta, 25/04/2025 =C3=A0(s)= 03:28): > > hi, > > Ok, can you just try a straight up freebsd-head from two weeks ago and se= e if that changes the behaviour? That's odd, I'm not seeing any issues loca= lly. > Let's try to narrow down when things did and didn't work and we can move = forward along the net80211/rtwn changes from there! > > > -adrian > > > On Thu, 24 Apr 2025 at 14:31, Nuno Teixeira wrote: >> >> (...) >> >> kldstat >> 25 1 0xffffffff845be000 f017 if_rtwn_usb.ko >> 26 1 0xffffffff845ce000 1b140 rtwn.ko >> >> Nuno Teixeira escreveu (quinta, 24/04/2025 =C3=A0(= s) 22:29): >> > >> > freebsd >> > >> > wlans_rtwn0=3D"wlan0" >> > ifconfig_wlan0=3D"WPA SYNCDHCP up" >> > create_args_wlan0=3D"country PT regdomain ETSI" >> > >> > Adrian Chadd escreveu (quinta, 24/04/2025 =C3= =A0(s) 22:06): >> > > >> > > >> > > >> > > On Thu, 24 Apr 2025 at 13:41, Nuno Teixeira wr= ote: >> > >> >> > >> Hey! >> > >> >> > >> I remember having both cards working fine maybe in the last 3-5 day= s. >> > >> I've spoted that someting isn't right wuth git taking too long too = pull. >> > >> >> > >> this is my /boot/loader.conf.local: >> > >> >> > >> compat.linuxkpi.80211.hw_crypto=3D1 >> > >> compat.linuxkpi.iwlwifi_disable_11ac=3D0 >> > >> compat.linuxkpi.iwlwifi_11n_disable=3D0 >> > >> wlan_amrr_load=3D"YES" >> > >> >> > > >> > > Are you using the linux driver or the freebsd rtwn driver? >> > > >> > > >> > > >> > > -adrian >> > > >> > >> >> > >> Cheers, >> > >> >> > >> Adrian Chadd escreveu (quinta, 24/04/2025 = =C3=A0(s) 21:34): >> > >> > >> > >> > >> > >> > >> > >> > On Thu, 24 Apr 2025 at 04:05, Nuno Teixeira = wrote: >> > >> >> >> > >> >> Hello, >> > >> >> >> > >> >> At main-n276705-e3e55936ce3b: Wed Apr 23, rtwn driver became alm= ost >> > >> >> useless on my amd64 and aarch64. >> > >> >> >> > >> >> Tested with RTL8811AU and RTL8821AU usb dongles. >> > >> > >> > >> > >> > >> > hi! >> > >> > >> > >> > I'm using them at home and they're fine! So I am testing these! >> > >> > >> > >> > Do you know when it was last OK for you? >> > >> > >> > >> > >> > >> > >> > >> > -adrian >> > >> > >> > >> > >> > >> > >> > >> >> >> > >> >> >> > >> >> Should I open a PR? >> > >> >> Any tips to debug this? >> > >> >> >> > >> >> Thanks, >> > >> >> >> > >> >> `git pull --rebase` takes too long time to complete and sometime= s fails. >> > >> >> >> > >> >> iperf3 shows bellow resilts on amd64/aarch64 with both cards. >> > >> >> >> > >> >> % iperf3 -c hp -R >> > >> >> Connecting to host hp, port 5201 >> > >> >> Reverse mode, remote host hp is sending >> > >> >> [ 5] local 192.168.1.82 port 43550 connected to 192.168.1.100 p= ort 5201 >> > >> >> [ ID] Interval Transfer Bitrate >> > >> >> [ 5] 0.00-1.00 sec 0.00 Bytes 0.00 bits/sec >> > >> >> [ 5] 1.00-2.06 sec 0.00 Bytes 0.00 bits/sec >> > >> >> [ 5] 2.06-3.00 sec 128 KBytes 1.11 Mbits/sec >> > >> >> [ 5] 3.00-4.03 sec 128 KBytes 1.02 Mbits/sec >> > >> >> [ 5] 4.03-5.01 sec 0.00 Bytes 0.00 bits/sec >> > >> >> [ 5] 5.01-6.01 sec 256 KBytes 2.10 Mbits/sec >> > >> >> [ 5] 6.01-7.06 sec 0.00 Bytes 0.00 bits/sec >> > >> >> [ 5] 7.06-8.06 sec 0.00 Bytes 0.00 bits/sec >> > >> >> [ 5] 8.06-9.01 sec 0.00 Bytes 0.00 bits/sec >> > >> >> [ 5] 9.01-10.01 sec 128 KBytes 1.04 Mbits/sec >> > >> >> - - - - - - - - - - - - - - - - - - - - - - - - - >> > >> >> [ ID] Interval Transfer Bitrate Retr >> > >> >> [ 5] 0.00-10.01 sec 768 KBytes 628 Kbits/sec 156 = sender >> > >> >> [ 5] 0.00-10.01 sec 640 KBytes 524 Kbits/sec = receiver >> > >> >> >> > >> >> iperf Done. >> > >> >> >> > >> >> -- >> > >> >> Nuno Teixeira >> > >> >> FreeBSD UNIX: Web: https://FreeBSD.org >> > >> >> >> > >> >> > >> >> > >> -- >> > >> Nuno Teixeira >> > >> FreeBSD UNIX: Web: https://FreeBSD.org >> > >> > >> > >> > -- >> > Nuno Teixeira >> > FreeBSD UNIX: Web: https://FreeBSD.org >> >> >> >> -- >> Nuno Teixeira >> FreeBSD UNIX: Web: https://FreeBSD.org --=20 Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org