Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2020 12:54:25 +0100
From:      =?UTF-8?Q?Carsten_B=c3=a4cker?= <carbaecker@gmx.de>
To:        YongHyeon PYUN <pyunyh@gmail.com>
Cc:        Hans Petter Selasky <hps@selasky.org>, Kristof Provost <kp@FreeBSD.org>, freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: Problem with checksum offloading on RPi3 (PF + Jails involved)
Message-ID:  <1245cbe5-9d2f-4808-f989-569ae7d57a8a@gmx.de>
In-Reply-To: <20201116011910.GB1941@michelle>
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> <20201116011910.GB1941@michelle>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------759182F27CF02C4EEA64D72D
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

Am 16.11.2020 um 02:19 schrieb YongHyeon PYUN:
> On Wed, Nov 04, 2020 at 07:36:44AM +0100, Carsten B=E4cker wrote:
>
> [...]
>
>> 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?
>>
> Finally had time to read the LAN89530 data sheet.  The data sheet
> still does not clear on several cases and it requires real H/W to
> experiment for various cases.  I created a patch which adds more
> RX validation but it was not tested at all due to lack of H/W. Also
> I even don't know whether it works or not after this change.  When
> it does not work it would be good to know debug out of smsc(4).
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or=
g"

Hi,

i just did a test with your modification.
The good news is that the driver itself still works.
The bad news is that it doesn't solve the problem. :-(

I used the snapshot from 2020-10-29 as i already had an sdcard with that
image.
http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/13.0/

Kernel was build from head + your patch.
FreeBSD generic 13.0-CURRENT FreeBSD 13.0-CURRENT #1 r367714M: Mon Nov
16 08:03:24 UTC 2020
root@sysbuild:/usr/obj/usr/src_head/arm64.aarch64/sys/GENERIC arm64

Log from smsc is attached.

As the lack of hardware seems to be a problem... i may be able to
provide temporary access, incl. serial using a 2nd pi - but this will
take some time as i need to change the network-setup.

Regards,
Carsten














--------------759182F27CF02C4EEA64D72D
Content-Type: text/plain; charset=UTF-8;
 name="debug_smsc.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="debug_smsc.log"

hw.usb.smsc.debug: 0 -> 16

smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 94
smsc0: debug: rx : rxhdr 0x005a0020 : pktlen 90 : actlen 94 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00420020 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 94
smsc0: debug: rx : rxhdr 0x005a0020 : pktlen 90 : actlen 94 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 102
smsc0: debug: rx : rxhdr 0x00622420 : pktlen 98 : actlen 102 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 102
smsc0: debug: rx : rxhdr 0x00622420 : pktlen 98 : actlen 102 : off 4
smsc0: debug: rx : actlen 102
smsc0: debug: rx : rxhdr 0x00622420 : pktlen 98 : actlen 102 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 3048
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 3048 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 3048 : off 1528
smsc0: debug: rx : actlen 4572
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 3052
smsc0: debug: rx : actlen 7620
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 7620 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 7620 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 7620 : off 3052
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 7620 : off 4576
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 7620 : off 6100
smsc0: debug: rx : actlen 6096
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 6096 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 6096 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 6096 : off 3052
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 6096 : off 4576
smsc0: debug: rx : actlen 4572
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 3052
smsc0: debug: rx : actlen 4572
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4572 : off 3052
smsc0: debug: rx : actlen 4168
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4168 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 4168 : off 1528
smsc0: debug: rx : rxhdr 0x045c0020 : pktlen 1116 : actlen 4168 : off 3052
smsc0: debug: rx : actlen 1524
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 1524 : off 4
smsc0: debug: rx : actlen 10668
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 3052
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 4576
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 6100
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 7624
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 9148
smsc0: debug: rx : actlen 9144
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 9144 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 9144 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 9144 : off 3052
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 9144 : off 4576
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 9144 : off 6100
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 9144 : off 7624
smsc0: debug: rx : actlen 10668
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 4
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 1528
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 3052
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 4576
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 6100
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 7624
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 10668 : off 9148
smsc0: debug: rx : actlen 2644
smsc0: debug: rx : rxhdr 0x05f00020 : pktlen 1520 : actlen 2644 : off 4
smsc0: debug: rx : rxhdr 0x045c0020 : pktlen 1116 : actlen 2644 : off 1528
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 70
smsc0: debug: rx : rxhdr 0x00422420 : pktlen 66 : actlen 70 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4
smsc0: debug: rx : actlen 315
smsc0: debug: rx : rxhdr 0x01372420 : pktlen 311 : actlen 315 : off 4

hw.usb.smsc.debug: 16 -> 0
--------------759182F27CF02C4EEA64D72D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1245cbe5-9d2f-4808-f989-569ae7d57a8a>