Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1637039imm; Sat, 29 Sep 2018 00:39:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV61kkj0oGiRL7wEy1UgwyKx3yKFDsW+WJTfCE2YQT0dXyyCUMDc39olx2P2jkWpJ8tPd8JLF X-Received: by 2002:a17:902:c85:: with SMTP id 5-v6mr2028620plt.141.1538206763227; Sat, 29 Sep 2018 00:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538206763; cv=none; d=google.com; s=arc-20160816; b=fPfZ3n2ooR+lberLFqFoNephi/Q7j6NQAmBH+S3jXyLzIA9JZtH1u1qwVuRWrvQXBU 0j6IQm6oejCzSo2fOsoVMJ/GCqvo9XOjjQcSX9Gi4YtBSCvdrKkuhAfZvp1RIWf6NHS/ tOmB9+z0izGyNGbf5E/uOEH99yaoqArmNmP1snHXLo33Hlu8UcHfNVYoDV6BZ5uDl96n xYD7rFBSffNNYdVp1V/6rUEahuJ2w4NUVn6FonBlZAFrdnikM/nIfgr+foBHogSlgicF Hw6t5B8YN+yIna/WgHUCNv+jg3W37jZQD5ct3pcrURRatqE4c7RH8kLPEb0joGGIbxOz BG8Q== 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:dkim-signature; bh=4J0hSGdFSZbM3G5uIsoDHLZOfSClS71ktF2TfH0W6yM=; b=ERYAl4IRxpQs4Ne5tf8413b/snAwZ5K+DXRWJHCgPFLT9kMBFGPWSfDMamwm9ER7UN 3Z3FLENdGX1kmNOZxXp6oJVk0Up+WQeCrChwDlOoBu51Y6rV19pEvVAIAHK+EHSHK32X 0NbUyxeyUhG/RFc06VkkHd+Ccfi8+H7ajVoIxyWuXfopRowaivCQTmUqlgsdNyO4bucK o4FCVT2zJ3MgUzO/P8kEq0pAW2NF/ExwMxP324g0tzr82+wiuGbyudcF+bn13Xnmh33y E7gCMQAP2oCmFbjPxftjV1JLD/kPcvFtbF91GsqXMFqa/Wlm9trEywr7z3IIaih7sLfe Lo2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=Ek+MtaCw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si7362958plc.388.2018.09.29.00.39.07; Sat, 29 Sep 2018 00:39:23 -0700 (PDT) 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=@googlemail.com header.s=20161025 header.b=Ek+MtaCw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727562AbeI2OGZ (ORCPT + 99 others); Sat, 29 Sep 2018 10:06:25 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:32833 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727508AbeI2OGZ (ORCPT ); Sat, 29 Sep 2018 10:06:25 -0400 Received: by mail-wr1-f66.google.com with SMTP id f10-v6so8581155wrs.0 for ; Sat, 29 Sep 2018 00:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4J0hSGdFSZbM3G5uIsoDHLZOfSClS71ktF2TfH0W6yM=; b=Ek+MtaCwnX8w4DF2CiWXAeEQqP0rQQxLYnrpvn/wdMctVLKxjl2pxD9VoutJvc8Uz3 Ff8vgU3zPVjlbFhmwpTeMfF8hfD4cva5SYFgMoQlbZJ/f8Ov2w9gHIWOebNiAq4986DN cjjh8QtILghoOUqlyMVbJxAihQXS8Nu9JEuhbqhoBVbs92nBC9qWyp4q53w/FoiaKHO9 2pzBOrWaHSCMbJwgA+NiyTIntjociJRN3vrKg6VVpXoouu4uh4SelOc30fnyZBpK7ubE Pzcrbf2epfNjWWiCysmXY7zUhk2i472QP6H1ez2nS2a6mDc806aeX49RQkipYGUKNaEz +yIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4J0hSGdFSZbM3G5uIsoDHLZOfSClS71ktF2TfH0W6yM=; b=W7d9ubgvX/r6K7Oi8mOBM5hdencrrJjn8w4HRvKEf1J1Pd+j4RfNWUG1SSTtil0uTn asf5jQRJrlT23YGGkx07lBoGS9sA6ABQWyJG33l79Fg0V5qEffreHlvt9hchL8eiJeD6 ky3D8T+6Ggt6eB3Z1UkzSpop+KiTciNhhCgmaHJFB/Q6xpUSOzU70yASafBVEp7cveE9 4mfgRPM5JJKn6IdZ2yrXjAZJOwS1z1R9o1sQzKNEnipceUF7GYhE3SzdwH3rygAkpMQs oiVvJS8/8QYSyASoNWY4Xc988n+Qb0BFZpyeY1SZePEzM+NBYLEQLmiN3SovRwGrxk5a jiFA== X-Gm-Message-State: ABuFfogXKhqc1X3cy0bguV9kA0d6QOHyyUnWj3EstdJPJ4w/wYGFmOIa 4bByeRU1C5VubNtG0PzJpOOjOxo8 X-Received: by 2002:a5d:61ca:: with SMTP id q10-v6mr1142834wrv.33.1538206739178; Sat, 29 Sep 2018 00:38:59 -0700 (PDT) Received: from [192.168.0.20] ([94.1.124.175]) by smtp.googlemail.com with ESMTPSA id g10-v6sm3189619wrv.49.2018.09.29.00.38.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 00:38:58 -0700 (PDT) Subject: Re: R8169: Network lockups in 4.18.{8,9,10} (and 4.19 dev) From: Chris Clayton To: Heiner Kallweit , "Maciej S. Szmigiero" Cc: "David S. Miller" , Azat Khuzhin , Greg Kroah-Hartman , Realtek linux nic maintainers , linux-kernel References: <54d8d7e9-a80d-dc2b-5628-22f9dc14e2ee@maciej.szmigiero.name> <535f42c7-6c3b-8e5a-49de-5dc975879b21@googlemail.com> <98680351-5123-761f-982a-726098da9716@gmail.com> <600d279d-357b-50c6-37f8-a4e96c7436a4@googlemail.com> Message-ID: Date: Sat, 29 Sep 2018 08:38:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <600d279d-357b-50c6-37f8-a4e96c7436a4@googlemail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, sent by accident. Note to self - don't attempt email until after second cup of coffee. On 29/09/2018 08:25, Chris Clayton wrote: > > > On 28/09/2018 23:13, Heiner Kallweit wrote: >> On 29.09.2018 00:00, Chris Clayton wrote: >>> Thanks Maciej. >>> >>> On 28/09/2018 16:54, Maciej S. Szmigiero wrote: >>>> Hi, >>>> >>>>> Hi, >>>>> >>>>> I upgraded my kernel to 4.18.10 recently and have since been experiencing network problems after resuming from a >>>>> suspend to RAM or disk. I previously had 4.18.6 and that was OK. >>>>> >>>>> The pattern of the problem is that when I first boot, the network is fine. But, after resume from suspend I find that >>>>> the time taken for a ping of one of my ISP's nameservers increases from 14-15ms to more than 1000ms. Moreover, when I >>>>> open a browser (chromium or firefox), it fails to retrieve my home page (https://www.google.co.uk) and pings of the >>>>> nameserver fail with the message "Destination Host Unreachable". Often, I can revive the network by stopping it with >>>>> /sbin/if(down,up} but sometimes it is necessary to also remove the r8169 module and load it again. >>>> >>>> Please have a look at the following thread: >>>> https://lkml.org/lkml/2018/9/25/1118 >>>> >>> >>> I applied your patch for the 4.18 stable kernels to 4.18.10, but the problem is not solved by it. Similarly, I applied >>> Heiner's patch to the 4.19, but again the problem is not solved. >>> >> I think we talk about two different issues here. The one the fix is for has no link to suspend/resume. >> >> Chris, the lspci output doesn't provide enough detail to determine the exact chip version. >> Can you provide the dmesg part with the XID? I meant to say that I have now re-enabled MSI in 4.18.7 - the latest stable series kernel in which eth0 continues to function reliably after a suspend/resume cycle. The second dmesg output below is taken from that kernel. The first one was from an up-to-date 4.19 kernel > > $ dmesg | grep -i r8169 > [ 5.320679] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded > [ 5.321432] r8169 0000:05:00.2: can't disable ASPM; OS doesn't have ASPM control > [ 5.322892] r8169 0000:05:00.2 eth0: RTL8411, 80:fa:5b:08:d0:3d, XID 48800800, IRQ 19 > [ 5.323786] r8169 0000:05:00.2 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko] > [ 10.232077] r8169 0000:05:00.2 eth0: No native access to PCI extended config space, falling back to CSI > [ 10.235218] r8169 0000:05:00.2 eth0: link down > [ 11.717460] r8169 0000:05:00.2 eth0: link up > > $ dmesg | grep -i r8169 > [ 5.208040] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded > [ 5.208677] r8169 0000:05:00.2: can't disable ASPM; OS doesn't have ASPM control > [ 5.210066] r8169 0000:05:00.2 eth0: RTL8411, 80:fa:5b:08:d0:3d, XID 48800800, IRQ 29 > [ 5.210676] r8169 0000:05:00.2 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko] > [ 10.456081] r8169 0000:05:00.2 eth0: No native access to PCI extended config space, falling back to CSI > [ 10.459217] r8169 0000:05:00.2 eth0: link down > [ 10.459880] r8169 0000:05:00.2 eth0: link down > [ 12.015158] r8169 0000:05:00.2 eth0: link up > > >> According to your lspci output neither MSI nor MSI-X is active. >> Do you have to use nomsi for whatever reason? > > No, I do not use nomsi, but MSI wasn't enabled in my kernel config. I'm 99% sure that it used to be - I've no idea how > it got dropped. If I'm not sure about an option, I start by taking the recommendation in the kconfig help. Help on MSI > has a very clear "say Y". As I said above I have re-enabled MSI. > >> >> Heiner >> >>>> Maciej >>>> >>> Chris >>> >>