Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3143010imu; Sun, 6 Jan 2019 20:12:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUj/OyFO5eIonzWh5d4cAAVIViCBIdde4+rQl/wvNORggj5i10y0a63QbZ+a3yxFYL/C9u X-Received: by 2002:a62:3943:: with SMTP id g64mr62405028pfa.114.1546834325167; Sun, 06 Jan 2019 20:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546834325; cv=none; d=google.com; s=arc-20160816; b=e0F96IkmUQMnQLl1ePc1dfXAZCDNHR4hjwE7FZBEPI7UF14RgnEVSpCNEjV7Ijf8lG QwYiXm13+/9n3u2vu/ZmNL2yxjqlo4RCUfX+yDj5t5Tl0AKcSgDzKE8BPn1BObCneX+J fpuudlFGazjgPjOrI+kWB0peJaTaWMD6PsuO4+5dJbsVJF/w4cXfnHZt7vVTGQ7ZYrjL ynGJiBUw4VeQXDUWcY7g4ffLWqsLk99T0PEoTnoNt+jQ4JpED7tyoBDu3rgwOpJt40r3 K5ht8AUw4z0VHJ3pM9giy6vCk3NzCXnHXTYkW+KymFWNXrJOyZFKwV2AMc/EC+EZ89X1 yClQ== 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=/XIx+XkS+FEWbsCAVIsdCheQzTE/zzhuvt5y7CVabXo=; b=FMbFyX9/QL9tv8bPv8Hayvm1YqGeOTRVnIYW3GEtFuxjHutstK0kArDPaysjHyJGWP ufWz2V+8v+9yvkonlNIJ04wcr1qEG1AXy9pI7moi9lMOpcgWu4eoThE5KujnRcv0IWDm bi91wbSlcqP1RyxBZI1ovX8bNiCa+oF/2Tcmq6yqITs1GpwDVuTePlSizpFo016Dvo8h KlmrvF6LeVlLnf7E+BvOLhekwhqS+4YP8RYT3sd+aA092OxFIJM7uaacWBHqjUoAqSyy zPnwgUqqQpGwavNgdmTeeJTptU0tTBlHaWkIG+P9lx7H7ScMNrZEnVqcF3yddMf/nnUt 7nOw== 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 c31si61593117pgc.465.2019.01.06.20.11.49; Sun, 06 Jan 2019 20:12: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 S1726402AbfAGEJl convert rfc822-to-8bit (ORCPT + 99 others); Sun, 6 Jan 2019 23:09:41 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:55761 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbfAGEJl (ORCPT ); Sun, 6 Jan 2019 23:09:41 -0500 Received: from mail-pl1-f200.google.com ([209.85.214.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ggMEM-0000ix-Qp for linux-kernel@vger.kernel.org; Mon, 07 Jan 2019 04:09:39 +0000 Received: by mail-pl1-f200.google.com with SMTP id 4so31079446plc.5 for ; Sun, 06 Jan 2019 20:09:38 -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=ZWkULGf/ejrnRqa2r8b45fRinFxrIcI7nNBQYVKtCps=; b=CIKR65h4OhYIIeo3G6aE6nR6NY7s18xHqEJmoMV+ehaONtnEbfe7wbc/GrtLw65ZH3 zasKSsw8pz4w/WU1BYauoKWCSYz8NUERsX48Pb7tSZ3L3llYdu41D0SyPF2h7qKmzlFX n1k/q5t0gkocaO3o/t9iRedSBtxRYbWllc3Mb7qUJNoOSLZ8tvY/er9pMgLKXUxZ5pEG jYbHNh+guFZDx9e89A0JzyGW1bPXwQDNanfP9BfLPkBnkvUQMCTmsukPUSnH/wEbqtur 83OhT1BogZFc8SEO+0dIpjqosFkh80KBn1X7oVEMOgsgBSzzMKsiySFIYeXvWZn/DDv9 yZKQ== X-Gm-Message-State: AJcUukdCUZoBtGElm1XKWwPM4WDf5GVLpCwE9e7KNadxmRHk2nAvlMC7 +oxNjyMfuz/PqhvZYEt9SVdVxnBkHcPOhDWpSgAQuLIj2BxYARfxaR0j6VC8x+TmIFcJUj12xrb YZQ3sxkO5VvXm++hRNMIqINMNFkeRTdE+LSx8SYuo2A== X-Received: by 2002:a17:902:2862:: with SMTP id e89mr60593762plb.158.1546834177116; Sun, 06 Jan 2019 20:09:37 -0800 (PST) X-Received: by 2002:a17:902:2862:: with SMTP id e89mr60593753plb.158.1546834176718; Sun, 06 Jan 2019 20:09:36 -0800 (PST) Received: from 2001-b011-380f-3f3d-8c0d-0ee6-8d41-4b74.dynamic-ip6.hinet.net (2001-b011-380f-3f3d-8c0d-0ee6-8d41-4b74.dynamic-ip6.hinet.net. [2001:b011:380f:3f3d:8c0d:ee6:8d41:4b74]) by smtp.gmail.com with ESMTPSA id m20sm81192379pgv.93.2019.01.06.20.09.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 20:09:36 -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: <31f145b8-4518-122c-eab8-50ed1075ba55@pobox.com> Date: Mon, 7 Jan 2019 12:09:32 +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: <3F1015D1-B2B5-4A2B-87EC-8AB2A516A2F1@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> <3D7273C4-D378-42D5-92FA-4ED72041D820@canonical.com> <1726a1ef-cfa7-0f97-4388-bf2ba72cb9a9@pobox.com> <31f145b8-4518-122c-eab8-50ed1075ba55@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 7, 2019, at 05:16, Mark Lord wrote: > > On 2019-01-06 4:13 p.m., Mark Lord wrote: >> On 2019-01-06 2:14 p.m., Kai Heng Feng wrote:>> On Jan 5, 2019, at 10:14 PM, Mark Lord >> wrote: >> .. >>>> 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... >> >> What info do you need from me about the WD15 so this can be corrected? >> >>>> 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? >> >> I don't know. I *think* it identifies as a DSL6340 (see below). >> >> Here is lspci and lsusb: >> >> $ lspci -vt >> -[0000:00]-+-00.0 Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers >> +-02.0 Intel Corporation UHD Graphics 620 >> +-04.0 Intel Corporation Skylake Processor Thermal Subsystem >> +-14.0 Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller >> +-14.2 Intel Corporation Sunrise Point-LP Thermal subsystem >> +-15.0 Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 >> +-15.1 Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 >> +-16.0 Intel Corporation Sunrise Point-LP CSME HECI #1 >> +-1c.0-[01-39]----00.0-[02-39]--+-00.0-[03]-- >> | +-01.0-[04-38]-- >> | \-02.0-[39]----00.0 Intel Corporation DSL6340 USB 3.1 >> Controller [Alpine Ridge] >> +-1c.4-[3a]----00.0 Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter >> +-1d.0-[3b]----00.0 Samsung Electronics Co Ltd Device a808 >> +-1f.0 Intel Corporation Device 9d4e >> +-1f.2 Intel Corporation Sunrise Point-LP PMC >> +-1f.3 Intel Corporation Sunrise Point-LP HD Audio >> \-1f.4 Intel Corporation Sunrise Point-LP SMBus > > > Mmm.. lspci -vt isn't as verbose as I thought, so here is plain lspci to fill in the blanks: > > $ lspci > 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM > Registers (rev 08) > 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) > > 00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08) > > 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) > > 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) > > 00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 > (rev 21) > 00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 > (rev 21) > 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) > > 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) > > 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) > > 00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1) > > 00:1f.0 ISA bridge: Intel Corporation Device 9d4e (rev 21) > > 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) > > 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) > > 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) > > 01:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] > > 02:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] > > 02:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] > > 02:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] > > 39:00.0 USB controller: Intel Corporation DSL6340 USB 3.1 Controller [Alpine Ridge] So it’s not an ASMedia one. Before digging further, please make sure the system firmware (BIOS), Thunderbolt controller NVM and WD15 firmware are all up-to-date. Kai-Heng > > 3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32) > > 3b:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a808 > > > -- > Mark Lord > Real-Time Remedies Inc. > mlord@pobox.com