Date: Wed, 4 Nov 2020 09:52:24 +0100 From: Hans Petter Selasky <hps@selasky.org> To: =?UTF-8?Q?Carsten_B=c3=a4cker?= <carbaecker@gmx.de>, YongHyeon PYUN <pyunyh@gmail.com>, Kristof Provost <kp@FreeBSD.org> Cc: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Problem with checksum offloading on RPi3 (PF + Jails involved) Message-ID: <9e1f9407-e2ff-6486-256e-012626b534fb@selasky.org> In-Reply-To: <e43b42e0-80fe-847a-f1bc-025b6914f98a@gmx.de> References: <748edc3d-4ef7-c4de-291f-7c0b460a6052@gmx.de> <D8CE4762-4D94-47C7-A8D1-6C537766813B@FreeBSD.org> <5130ee46-5832-d4df-d774-c6bd32e10b30@gmx.de> <A3890336-BE8F-438C-8C3E-7B21FB729FCA@FreeBSD.org> <20201029213622.GM31099@funkthat.com> <55713894-A896-4F12-ABB9-93DFEB2F16B9@FreeBSD.org> <20201103045215.GA2524@michelle> <46d08198-530c-cb4b-efa8-4edaf89471c1@selasky.org> <4dfaa9a3-c085-8466-a6e4-19f988b5ed3d@selasky.org> <e43b42e0-80fe-847a-f1bc-025b6914f98a@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-11-04 07:36, Carsten Bäcker wrote: > Am 03.11.2020 um 09:46 schrieb Hans Petter Selasky: >> On 2020-11-03 09:19, Hans Petter Selasky wrote: >>> It looks like smsc(4) uses the following RX format but I don't >>> know actual RX format of H/W(no access to datasheet). >>> >>> <---------------------------- actlen >>> --------------------------------------------------> >>> <------------- pktlen ------------------------> >>> rxhdr(4 bytes) | padding (2 bytes) | RX frame | FCS(4 bytes) | >>> partial checksum(2 bytes) >> >> Hi, >> >> I wonder if the checksum is zero, when not valid, and that we should >> check for this in the driver! >> >> Can you try this patch? >> >> Also enabling debugging in the SMSC driver would be useful. >> >> --HPS >> >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" > Hi, > > i applied the patch on -CURRENT but got a panic right after loading the > kernel. Most likely an unrelated problem. > > But i was able to apply the patch on releng/12.2 (with an offset). > Unfortunately it doesn't change the previously described behavior with > rxcsum and i didn't manage to get any reasonable debug-output. > > Since i can easily reproduce the problem. How else can i help? > Can you enable the debug knob for SMSC: sysctl hw.usb.smsc.debug=16 It will print the RX checksum per frame received. Just do this with the unpatched driver while doing some traffic. Capture log messages from dmesg or /var/log/messages. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e1f9407-e2ff-6486-256e-012626b534fb>