Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1756775imu; Sat, 5 Jan 2019 06:24:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN6T/VZrBKQKPbfQ7zcRxPHJgJLrIix3spkwWCI2b8roD/tgO/H+is6jVCvAJ721bFva3Duw X-Received: by 2002:a63:30c8:: with SMTP id w191mr5137776pgw.120.1546698270526; Sat, 05 Jan 2019 06:24:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546698270; cv=none; d=google.com; s=arc-20160816; b=DiwTDAwKQ/JoqNK0kZ4T3LcpO08Y4tj2PXW7w60eHxHspEr7w0y5BdWVWBY4yL4jMV 7RazLhC5C5tp8bj8Fzq3NHc3hSbB+SI1oBpLbLHr0Mf4EYP8/Vp6LPj0gyn9D3+dcFHm C5N5tQlQ81P90B14+wN8cnW1DJGYm28DVrBsoiZJMutswe8/E/o99+XUzbu9eh1AHP6H fo7oOQdjFWxfc5n3CwkohcNO4f02r7tg2O+73z5mNBCMtxBz4zTfYRsp5w6PcA+5bbvy b5TyiPMnXo2kzM5/x37hECB5iW+c+XkKcCOsVABd81+St+O5ajKHd9ODBurcAQW6Xvu5 RAXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:domainkey-signature :dkim-signature; bh=Pixz+zB/XxG/ww1SuRWgfo6+tYcVp3yAw5TpUdT0U7g=; b=0hh7jU43aqfZlzmOIPQiRnan9XBnLcAe71Q/JtZosfsr7OpdNji3KsabyrcKemxVQQ 1MUd0stCZad45MaHuzVDS/JoNAPAB5tmgQe4XUVShHuVf4U2OCHdlY52aHfQGzbr1ZRB PvLu6lp5h27c4XuP7PnXRpeQtBgfbRbCspc5OmLfce3Ez7nFIGa9ny55TWbDVVOOn4tM 6zyzm5b7K4tvvBS5UW7qJYPeia36Ei+caKMUdZ7+MJMG1PJVZfT4GzJF/+Z0CCL9zu2n 2Lp0/V9JrY6Mm8VbkcrCejheIiMlP+7QcL+Y1Tg/Q4tWAcQJxEM4Kkv9e9xcMPV+KKmg n7LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=A+k2WjqU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pobox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si21768173plw.158.2019.01.05.06.24.15; Sat, 05 Jan 2019 06:24:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=A+k2WjqU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pobox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726318AbfAEOWf (ORCPT + 99 others); Sat, 5 Jan 2019 09:22:35 -0500 Received: from pb-sasl20.pobox.com ([173.228.157.48]:62057 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbfAEOWe (ORCPT ); Sat, 5 Jan 2019 09:22:34 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl20.pobox.com (Postfix) with ESMTP id C7EE130B39; Sat, 5 Jan 2019 09:22:32 -0500 (EST) (envelope-from mlord@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=subject:from :to:cc:references:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=ykolLrs0sXb5 T/gExCLiBe3FWJQ=; b=A+k2WjqUgBWFLcAMQ4xOZWQeeXkakV92W8wAuqJktHt+ OpCUXVijd3l+a+NZrnkWGrS8j+jqGoedLY/hVKW1YxIpTNYRzMjkoFYsPxRa6vRT eMM4MF+NGtw++Lz85z93LwgkN/oribNEvG5abPlr8TIjMNclMCUhFRC9u60w4Yo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=subject:from:to :cc:references:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=HJ4xs9 u4canwLC7W6xOy65mJOp/bllVdysBWDgeqLSSvCh/9J+HJTvnX7xR55felWteYF7 mmOpSTc/wwIXb6L92aZmJQXfoHnD4h54W3WAsnYQF9n1RcRkwjd6g5ieMYl/uoab EuKhSs0R77eNzVlMUUHrvG3DaEiz5aqkyHCtk= Received: from pb-sasl20.sea.icgroup.com (unknown [127.0.0.1]) by pb-sasl20.pobox.com (Postfix) with ESMTP id B5DEC30B38; Sat, 5 Jan 2019 09:22:32 -0500 (EST) (envelope-from mlord@pobox.com) Received: from [10.0.0.9] (unknown [24.53.240.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-sasl20.pobox.com (Postfix) with ESMTPSA id 9343430B35; Sat, 5 Jan 2019 09:22:29 -0500 (EST) (envelope-from mlord@pobox.com) Subject: Re: r8152: data corruption in various scenarios From: Mark Lord To: Ansis Atteka , Hayes Wang Cc: David Miller , "greg@kroah.com" , "romieu@fr.zoreil.com" , "netdev@vger.kernel.org" , nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , Kai-Heng Feng References: <20161125095350.GA20653@kroah.com> <1816ec7e-2733-f4ba-5d30-29dbabd20aad@pobox.com> <20161125.115827.2014848246966159357.davem@davemloft.net> <0835B3720019904CB8F7AA43166CEEB201057793@RTITMBSV03.realtek.com.tw> <469a41ea-e97c-23d2-d129-68aad5585fec@pobox.com> Message-ID: <77cfa599-4bc3-3d4a-eab8-f2f102656484@pobox.com> Date: Sat, 5 Jan 2019 09:22:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <469a41ea-e97c-23d2-d129-68aad5585fec@pobox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 55C38E08-10F5-11E9-AA9E-80D833260776-82205200!pb-sasl20.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-01-05 9:14 a.m., Mark Lord wrote: > A couple of years back, I reported data corruption resulting from > a change in kernel 3.16 which enabled hardware checksums in the r8152 driver. > This was happening on an embedded system that was using a r8152 USB dongle. > > At the time, it was very difficult to figure out what could possibly be causing it, > other than that re-enabling software checksums prevented corrupted packets from > resulting in more serious issues. > > Since that time, more and more reports of similar corruption and issues > have been trickling in. Eg. > > https://lore.kernel.org/patchwork/patch/873920/ Forgot to include this link (below) where people still have the issue even with the driver workaround. Switching to software checksums "fixes" it: https://bugzilla.redhat.com/show_bug.cgi?id=1460789 > > Note that there are reports in the thread above that the issues > are not limited to only the built-in ethernet chip of the dock. > > There is even now a special hack in the upstream r8152.c to attempt to detect > a Dell TB16 dock and disable RX Aggregation in the driver to prevent such issues. > > Well.. I have a WD15 dock, not a TB16, and that same hack also catches my dock > in its net: > > [5.794641] usb 4-1.2: Dell TB16 Dock, disable RX aggregation > > So one issue is that the code is not correctly identifying the dock, > and the WD15 is claimed to be immune from the r8152 issues. > > One of the symptoms of the r8152 issue, reported by Ansis Atteka, > were messages like this: > > xhci_hcd 0000:39:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 13 > comp_code 1 > > I just got that exact message above, with the r8152 in my 1-day old WD15 dock, > with the TB16 "workaround" enabled in Linux kernel 4.20.0. > >>From this I conclude that the workaround is not 100% complete yet. > -- Mark Lord Real-Time Remedies Inc. mlord@pobox.com