Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755AbcKCLnm (ORCPT ); Thu, 3 Nov 2016 07:43:42 -0400 Received: from pb-sasl1.pobox.com ([64.147.108.66]:54821 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752296AbcKCLnk (ORCPT ); Thu, 3 Nov 2016 07:43:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=subject:to :references:cc:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=qfWPkI kFfz383Y8kNnEhkwnepfpdErxcVkw/vHRSEB2L72ZgAQQSHO+EVzBwmRuifwQMyu FHK1Lv9pEvUTebt8+DS6Wq7fCsqLruHbVOk6DtYhKw9ATg5+8bosfZI077sGt8Hb laBKs9o6BSIJ5UehojIGtwI4EIlrFTdkcjAs8= Subject: Re: [PATCH net] r8152: Fix broken RX checksums. To: Hayes Wang , David Miller References: <9fb6be7b-95f3-6e59-c0f4-1d6c3357416d@pobox.com> <20161030.205755.1198665157526465556.davem@davemloft.net> <1f847ae0-4928-01e7-f1e7-3cbc37529961@pobox.com> <20161030.235342.134481656830778556.davem@davemloft.net> <0835B3720019904CB8F7AA43166CEEB201047353@RTITMBSV03.realtek.com.tw> <201611030159.uA31x0np004648@rtits1.realtek.com> <0835B3720019904CB8F7AA43166CEEB20104878A@RTITMBSV03.realtek.com.tw> Cc: nic_swsd , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Mark Lord Message-ID: Date: Thu, 3 Nov 2016 07:43:36 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <0835B3720019904CB8F7AA43166CEEB20104878A@RTITMBSV03.realtek.com.tw> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: C2FC4688-A1BA-11E6-A9E7-92296462E9F6-82205200!pb-sasl1.pobox.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1701 Lines: 44 On 16-11-03 04:56 AM, Hayes Wang wrote: > Mark Lord [mailto:mlord@pobox.com] >> Sent: Thursday, November 03, 2016 2:30 AM >> To: Hayes Wang; David Miller > [...] >> I have poked at it some more, and thus far it appears that it is >> only necessary to disable TCP rx checksums. The system doesn't crash >> when only IP/UDP checksums are enabled, but does when TCP checksums are on. >> >> This happens regardless of whether RX_AGG is disabled or enabled, >> and increasing/decreasing the number of RX URBs (RTL8152_MAX_RX) >> doesn't seem to affect it. > > I test Raspberry Pi v1, but I couldn't boot with NFSROOT through > both onboard nic and RTL8152. I get following error. > > VFS: Unable to mount root fs via NFS, trying floppy. > Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) > > However, if I start the system without NFSROOT, I could mount the nfs fs. > Any idea? Rather than getting caught up in all of that, you could then just chroot to the mounted nfs fs at that point, and continue on from there. Eg. chroot /mnt/nfsxxx /bin/sh Running from NFS is probably not necessary though. Instead, perhaps just run md5sum on every file on the nfs fs from the Raspberry Pi, and then repeat the md5sum's on the server, and compare the results for errors. The system I am using the dongle with is a custom embedded board, but I think the important thing is that it has a slow-ish CPU, which means it is more prone to having the on-chip RX FIFO overflow. It is also big-endian rather than little-endian, though that seems to be correctly handled already in the device driver. I will try the md5sum test on an x86 box for comparison. Cheers -- Mark Lord