From owner-freebsd-arm@freebsd.org Mon Nov 16 11:54:29 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC1412EC8D3; Mon, 16 Nov 2020 11:54:29 +0000 (UTC) (envelope-from carbaecker@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CZSD54669z3HDN; Mon, 16 Nov 2020 11:54:29 +0000 (UTC) (envelope-from carbaecker@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605527667; bh=Rq62OD5TYdrCo7VP6e4VSKzUU/SDHTIhVEi1BTngum4=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=fd0FUVfVNiSvOCc0mKGE7THsjXPzTuUJ2Djk5xkvzAoMZnMzjZAzNQBkXfqIn9Jo0 eMedWwBDL9ZqpbjbqhKn4T3oVslmw9UdWgQLBt1oQiJJwhfNUs+4FsMy2m9FtL597t ShdUV0tcXJyX3KQYQ8LkQsyG+2l88J3opFBt+Dt0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.30] ([94.31.96.148]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MbRfv-1k82MV3TLN-00buUb; Mon, 16 Nov 2020 12:54:26 +0100 Subject: Re: Problem with checksum offloading on RPi3 (PF + Jails involved) To: YongHyeon PYUN Cc: Hans Petter Selasky , Kristof Provost , freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org References: <748edc3d-4ef7-c4de-291f-7c0b460a6052@gmx.de> <5130ee46-5832-d4df-d774-c6bd32e10b30@gmx.de> <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> <20201116011910.GB1941@michelle> From: =?UTF-8?Q?Carsten_B=c3=a4cker?= Message-ID: <1245cbe5-9d2f-4808-f989-569ae7d57a8a@gmx.de> Date: Mon, 16 Nov 2020 12:54:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <20201116011910.GB1941@michelle> Content-Type: multipart/mixed; boundary="------------759182F27CF02C4EEA64D72D" Content-Language: de-DE X-Provags-ID: V03:K1:ftziIChQwT8TYbWtF1y53OJG69B9SzuM7MFKo0G4Gs17sZMmVY7 lqa6IBMXVLXLlZLO/K9Bn5Uj0U2hhhbmuwNvE0quOxMGxpeTPTqN057Hu7mBHV3DlVsI8xp AQCXKBIDhFqjpY2KXD1t01cg9fOHcmTXZdP3twwFmNNtquE+uB/qcH7WTIO4IKa7Y/gVvlA 77nX8ev2+DblBwC8czqZA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:dnk/iF8Zqjs=:7q1dVkoZRyZ8VOPZ1hIueG C9edPqZuWiDg6ULOR04rgKpPg1bGXFYxbvM349QolPb9IWJcn+b/FbQZv27GgbrIxIoCg69pr i6G43g2DR3EM6pGfk/1YyMap4oNisJ7Gf3D8uQODo5QR7szO1PP8zM08Sc9lVidrB1cOIKXdz XBcbSa1NmXJvBl8NuSwK3OTnkfvU54kFXCnRzCWmbamaYtbs3UmBc4jUrzDPIKfglSHAWUxbZ nim5mJJkUR2qkPJK/igIQ2xy/wpY1gtwA4bSJGTCRSvGU2dAvgDG+/ntjeIgDDv2YQwEakmzE W4xaOidCS3SKQg1INr0YSCya/MiIPgH2IqIhzOiNQSHN5PZ+pI6wBXQLOJKzcPY8WrgWIkDbK GRjFbrOceoWVJBeaO2v5vHbYPw/8MgVPIXMAVigPfhi+LPpzCXP1I5nQj68/5S260TbBHRG7k 4vKEc9wk3Ui2m9Q5qJBghrs+CUc80nvqPEuz9JNvTFehJ5BkNrS1dbDfqugUIF/n0UoBaibLF t142FkB67F/d12h9zvcoHxLRc+FX7mHJm6Mg1/69BK+mUIJW31hHRhDrnJVR+c8Z31Dk92s0f LkCvG5NUxEZmMpFoBN/bH1Df2ucxriTMdqtuiBRZbB3gQmntiHn9LzGfRv1hg0lCcA0oezDNG lfqnR+inrs4CdngVdNBqhHQfhRUK4nfrcumDMSRgxbUsjV5+ytam4IT52AkTOfx/azSsvaeBu QYRXbZWFz1sO+X/WceLQOolLoA+WpohnHo4ws42oDRz1b7wfM1hYBJmr2LXceA+WDhJW8+jrJ xxwQlZe/b1bwuheLUEAo1btZAD0yR8mhh/N8j3yqSiMLcz4t6Ms5b0nJ9SBQJqRa4irzebiH4 Wo8PASZp62Yi4OmPqS/A== X-Rspamd-Queue-Id: 4CZSD54669z3HDN X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 11:54:29 -0000 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--