Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2842635imu; Sun, 6 Jan 2019 11:18:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN4aHTJcKBA1kHH0OkJ1WODxUQIQhEEgF2DbhEX43BLIxhtkeKregywZL1+YrLV3ZtEPaLKC X-Received: by 2002:a63:7c41:: with SMTP id l1mr54910729pgn.45.1546802285200; Sun, 06 Jan 2019 11:18:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546802285; cv=none; d=google.com; s=arc-20160816; b=xph/nCe5XPEfiYdJpqPnAzvMQXx24NV9Hg/yJ9cH8a7y2yJanvF3pFSafgQPKH9WsR JOq/sNfok9kxIaUz541erQdvUqq+q+XAPjwk45UIrKtlpNNl/bUAFWB8bu08DWD/8epf qAXNO0oXcaR+tGdi/H6sYfRTBS/ZwW6FmdaW9PmYYbWznQfspApt1SO7AkkXvnqkmGYA K6+qvaVA3qONc2NSDhcBkVrehq+XO8/zoeo/KH9XqO88EKE5PHZzN1Bv62NxdtopCaJX HInQ78tH4cTHRhMkypHvS8fUW7TN7FZELYlmHKzHGMbnLtN9Iwb6A6ztOTrpeGEkplxl aDwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=AA0tOX9MqjXYF+GPLJTE3u+2knqlJlfRxdzVRv13Gro=; b=j5/Xuryocbdez1757q+35p7j1kzOCtMVTeuab2Bous/0TneUCBoPioqLWs5aKqA5c2 YtFRGlcMfQr2/1GzCuw68bVfxuBh4JV7oj0R9cre1cZtoDXEOjefqiLeV44g/v7fJ1D1 CNjtvFrv9CC7eADYI4wVClcEp7KsUNZepxRaSHLA4bA4VogBbV1ezTGTaeTM1+gBFiWH 3BT9+nlMeQvX6qt4Goa50rws+aK9QHnrFYC9ED7M2WlKX6wHs8EnlQCEKd8yMP109LKj HTHpUAwMbzCihWpBejjx3T/AFBKJenf3a1wMdgfKf6v4j1B81qBnnunSARCYRbW3N10b xwIA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y26si6447056pfd.25.2019.01.06.11.17.25; Sun, 06 Jan 2019 11:18:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726076AbfAFTOS convert rfc822-to-8bit (ORCPT + 99 others); Sun, 6 Jan 2019 14:14:18 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:50586 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfAFTOS (ORCPT ); Sun, 6 Jan 2019 14:14:18 -0500 Received: from mail-pl1-f199.google.com ([209.85.214.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ggDsF-0003wO-IE for linux-kernel@vger.kernel.org; Sun, 06 Jan 2019 19:14:15 +0000 Received: by mail-pl1-f199.google.com with SMTP id 12so30354808plb.18 for ; Sun, 06 Jan 2019 11:14:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0ivRVsY/+DJHm8bCFkUQInv0DeBpj/yazrThNw/uVbA=; b=lbdpU8IqLR9uj5LzsTT2DKuSrTsXBqcSwN0tdI4of0TSt9Vh5gK3ltqvjGy/qGcNh7 dViGwTXrn2hSL+0EJO6X7iFVntCP2P/nt75prqvV7RUTSgzzYE2bp45JzL8AEqS8lLGO zQrop8bOKqo6v1JFSytEhT2L5SsN6OxV+E+GrhWjW7riI66buXRTHJxlg/sJ3JA5l9JC IkFJKZgB3mkApfpHRcLVwxjQkP2thSgmtpjFAJ6KBj6/PtaRXmlt/HOnOyY86kFsAtPX BC4bqWDo2YniSgYHZq0etq9grFfj2lk6RJDtDzbpROQjUDBCTS6QzGB5q6X3LGEDO2y6 sSnA== X-Gm-Message-State: AJcUukdDdnrXZmYDJ5/zbcWStNrfeEehI7Qz2z1qhiIDuvjQUIMY+l2n Tbnpo7YNrPizvhaFhgd2p2hInFzRHmPctUXnCAPVVvUOZems2pCifsZtBwYIZIkP6SAfe757MG+ uHpjdg/zYJcMeRKF3u2LQWBN6gH5kJhcHyXX0I1sv+w== X-Received: by 2002:a63:b24a:: with SMTP id t10mr53903355pgo.223.1546802054192; Sun, 06 Jan 2019 11:14:14 -0800 (PST) X-Received: by 2002:a63:b24a:: with SMTP id t10mr53903331pgo.223.1546802053711; Sun, 06 Jan 2019 11:14:13 -0800 (PST) Received: from [192.168.1.215] (220-133-187-190.HINET-IP.hinet.net. [220.133.187.190]) by smtp.gmail.com with ESMTPSA id k24sm97465306pfj.13.2019.01.06.11.14.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 11:14:13 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: r8152: data corruption in various scenarios From: Kai Heng Feng In-Reply-To: <469a41ea-e97c-23d2-d129-68aad5585fec@pobox.com> Date: Mon, 7 Jan 2019 03:14:09 +0800 Cc: Ansis Atteka , Hayes Wang , 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" , Mario Limonciello Content-Transfer-Encoding: 8BIT Message-Id: <3D7273C4-D378-42D5-92FA-4ED72041D820@canonical.com> 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> To: Mark Lord X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 5, 2019, at 10:14 PM, 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/ > > 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 The serial should be unique according to Dell. > > 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. The WD15 I tested didn't use that serial number though... > > 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 This is probably an xHC bug. A similar issue is fixed by commit 9da5a1092b13 ("xhci: Bad Ethernet performance plugged in ASM1042A host”). > > 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. Is the xHC WD15 connected an ASMedia one? Kai-Heng > > From this I conclude that the workaround is not 100% complete yet. > -- > Mark Lord > Real-Time Remedies Inc. > mlord@pobox.com