From nobody Sat Apr 26 00:03:12 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 4Zkqg10d6Nz5tH9b for ; Sat, 26 Apr 2025 00:03:25 +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 4Zkqg05Hcmz3Wv1 for ; Sat, 26 Apr 2025 00:03:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745625804; 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=PlzmxV6iz0tZJ2dhb3OpPcMUda8KTiDUccylBkZ+bYo=; b=av6fxg+kYi0PXcEFkEqlCBpaH/7cJS/J6m0YGjtdHo85Li3DvLUQbVRtwAbwkntTwhqhMI dL3n78dOx3UzlDy97EjEWDZQT5XGYsf8EFdTk/7EEFfLSVm0Grg7r4+HjhTnr7kJwmcuk6 7ntvEBr/3IWOvNyUIAamVE+1OdhJNCofFADNbzGT8mCa1wQaqJ+Y5mcL2vVWJjXOgG3/2X +VBLA90McnNMC8YyQsKgtqxcbF2qR8MSH0q7n8sEwqsZwPFFj86wIy3h8u52Me4GyMJ70J iraEbFh3imEVZb4OzAS5u9n4FGmuCTMjQ1f5KNo+I7qd8k36OEdQ3zWFjtgLxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745625804; a=rsa-sha256; cv=none; b=SDYMFponzLYADgxmcTfplDnAK0drugNOm02uXS58PJanvzTQ9Ioue3oiRw7awoO8HKUYrM pCZzzeCobB9S17Z04ibVv/9hPIz3qId+loabgXhrZU5Op8F5sdL0ma7A8I/K1ovfwEJrIV JMrV5JJ4boWkCP46PkFCA8h/OGtny3ba0r5/kxknswJOOVTO9ZLNUwLmlwxqhydaHWtHpC wkrtY10GgbkcfJdUsfsGUJfLV028qi5hKmXD1SnxlWU1Ee0gI3hhLRpD/7mMMKBuZHwcKK dqfO+9H3LRHEGyRaluXv3/fUIegVO0cgZoIxVuKk3cM7n6gr5RnNO56G3O+Opw== 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=1745625804; 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=PlzmxV6iz0tZJ2dhb3OpPcMUda8KTiDUccylBkZ+bYo=; b=Djc9aUb++hzlqIPCP4HpS96ae/vE4cA/OLnCURvedNF/8JJmngcvv31UJLaqPmKwkVQxnF jQRQj9tK851VfUYzX2Se27fp4iMsKJao7C1Qv73LCiunyCmz/JVSUGm1Ek3HuPNwitvdRA a/WtL4sP/X5HOHH0Mv/Bi8BXwx5fvaPdS2xMhzvYx7Tmtf0UYtZ7PcaP/9zt129TPNMe4b rJN5gH/COpY9IYSbmlUscBzj/L32Sf76hDOkcJkdb1b4EIvF7nchT3dtZ3xalffx56ddF6 c+KQOO8oSaOqsWS0mdgUqLm8muVCYsLpXAyQn3gj5QhE5XK9137YonTQkPrGRg== Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 4Zkqg04byXzjqh for ; Sat, 26 Apr 2025 00:03:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-7c5c8a4a986so30264785a.3 for ; Fri, 25 Apr 2025 17:03:24 -0700 (PDT) X-Gm-Message-State: AOJu0YzPkh6ArRoeNTuYPDaqpN0MMPII4wkh7GmZdh6AGHSnYUHIzbVD hDGOfuvc3P06fIOUdJ+sslhxQzY74g+wid/b2U1jUUda7R0UNtmZhbXhloupyacwMymnT23rDL3 7TswOr2UAgnOxqutsqcwHymFLoZw= X-Google-Smtp-Source: AGHT+IEPp1xSUbIwdnz1Af6EPNdFran2QyMv+2CPZny+ehUYq3tAvVH8YQUPPiYLgzvXqSTEuHoIGwcmJ5JXuEi9Cts= X-Received: by 2002:ac8:5902:0:b0:475:1395:e169 with SMTP id d75a77b69052e-4801c7969e3mr22307111cf.4.1745625803998; Fri, 25 Apr 2025 17:03:23 -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: Sat, 26 Apr 2025 01:03:12 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: ATxdqUFSPua5m8os7275AZCZYrN5wEcx9TkmVbNpnsA3vuAdxtbvE0Iv37hQTeU 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 Directly from console: % iperf3 -c hp -R Connecting to host hp, port 5201 Reverse mode, remote host hp is sending [ 5] local 192.168.1.82 port 35544 connected to 192.168.1.100 port 5201 rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) [ ID] Interval Transfer Bitrate [ 5] 0.00-1.06 sec 0.00 Bytes 0.00 bits/sec rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (4672 bytes) [ 5] 1.06-2.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 2.00-3.03 sec 0.00 Bytes 0.00 bits/sec rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (4672 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) [ 5] 3.03-4.01 sec 0.00 Bytes 0.00 bits/sec rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (4672 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) [ 5] 4.01-5.05 sec 0.00 Bytes 0.00 bits/sec [ 5] 5.05-6.06 sec 0.00 Bytes 0.00 bits/sec rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (4672 bytes) [ 5] 6.06-7.06 sec 128 KBytes 1.05 Mbits/sec rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (4672 bytes) [ 5] 7.06-8.06 sec 256 KBytes 2.10 Mbits/sec rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf (6196 bytes) rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf Adrian Chadd escreveu (s=C3=A1bado, 26/04/2025 =C3= =A0(s) 00:51): > > change > > __func__); > > to > > __func__, totlen); > > > On Fri, 25 Apr 2025 at 16:30, Nuno Teixeira wrote: >> >> (...) >> >> kk, it builds fine without patch. >> >> Sending logs of the patch (as gmail ruins formating) and kernel.log atta= ched. >> >> Nuno Teixeira escreveu (s=C3=A1bado, 26/04/2025 = =C3=A0(s) 00:18): >> > >> > Hum build kernel is failing with: >> > >> > diff --git a/sys/dev/rtwn/usb/rtwn_usb_rx.c b/sys/dev/rtwn/usb/rtwn_us= b_rx.c >> > index 657d6bdeb9e4..15e7da2b1968 100644 >> > --- a/sys/dev/rtwn/usb/rtwn_usb_rx.c >> > +++ b/sys/dev/rtwn/usb/rtwn_usb_rx.c >> > @@ -126,7 +126,7 @@ rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct >> > rtwn_rx_stat_common *stat, >> > >> > m =3D m_get2(totlen, M_NOWAIT, MT_DATA, M_PKTHDR); >> > if (__predict_false(m =3D=3D NULL)) { >> > - device_printf(sc->sc_dev, "%s: could not allocate RX m= buf\n", >> > + device_printf(sc->sc_dev, "%s: could not allocate RX >> > mbuf (%d bytes)\n", >> > __func__); >> > goto fail; >> > } >> > >> > I will rebuild it again without patch and check what is the problem >> > >> > Nuno Teixeira escreveu (s=C3=A1bado, 26/04/2025 = =C3=A0(s) 00:12): >> > > >> > > I'm compiling and soon I will reboot. >> > > Do the tests the same way and previous email or just trigger error a= nd >> > > capture logs? >> > > >> > > Adrian Chadd escreveu (s=C3=A1bado, 26/04/2= 025 =C3=A0(s) 00:04): >> > > > >> > > > >> > > > >> > > > On Fri, 25 Apr 2025 at 16:03, Nuno Teixeira = wrote: >> > > >> >> > > >> > edit sys/dev/rtwn/usb/usb_rtwn_rx.c ,around line 129. Change th= at device_printf() line to >> > > >> > >> > > >> > device_printf(sc->sc_dev, "%s: could not allocate RX mbuf (%d b= ytes)\n", >> > > >> > __func__, totlen); >> > > >> >> > > >> # cd /usr/src >> > > >> # find . -name "*rtwn_rx.c" >> > > >> ./sys/dev/rtwn/if_rtwn_rx.c >> > > >> >> > > >> Where is sys/dev/rtwn/usb/usb_rtwn_rx.c ? >> > > >> >> > > > >> > > > /usr/src/sys/dev/rtwn/usb/rtwn_usb_rx.c >> > > > >> > > > sorry, typo. :-0 >> > > > >> > > > >> > > > >> > > > -adrian >> > > > >> > > >> >> > > >> -- >> > > >> 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