Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2581446imm; Thu, 11 Oct 2018 12:36:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV62U6mDKNuuYa4QoQbo5Byhzyr8HHXgpaP3/aY3DMRtPRGJz+tgcKgZJ1cQSZCiDLNxQGwx+ X-Received: by 2002:a17:902:9b89:: with SMTP id y9-v6mr2790147plp.239.1539286564221; Thu, 11 Oct 2018 12:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539286564; cv=none; d=google.com; s=arc-20160816; b=in7TToziJHSrMP8RA4EY7onbBxZbbTHkxpQA1N3OC5QFqHDkJ94aDOEJyEUCPkK3jL u9QI22zbAwH+3K8JDXr5J49nxahyZ7t6cGzgGh2LDR4W3l3hiqnFPPaTu776ZVdkmY/t J6jYWBqzQs18YwvbJal6VRTTk8MKGM6miJxBglROh9E0RlKBBJZu0VbTT7FafMFXtIO+ 7RAhhEIaItRbme7WMqYSudyBNag2GKXYjwV/wUQ9EmXsuMvQQyF5hfjj5/HIs8pX6HDb c4Jf5m+TMFTYM1iem6i+YYiBTyA117pJI4yj5gt2znxPNntTcXgGVJOGFww2tdHjOgR5 PhFg== 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:from:references:cc:to:subject:dkim-signature; bh=Ad00m6xN6lDlmdS2qr6HB18bEWnin8CUs6FPBeaHi2Q=; b=OWVgl9FrmUmUIg9PLsqHx3ghCWijgw5aHsAHKE1oFvdWxDyZWha+VP3SIdd9yAKSL0 T8PZ/QpbWLAJzYMYCqPGgCF3UJxScrnD0g3v5UkTDSz2ED6PS2k3MO723l0sOD9WlsLb etAmDoCjQFvSJeYLzsK2utO5BrIkP93LdVe9LJmCt6ASb5U6Rfoyx4x/6G/+4wQEAXyZ p+wGiuQ29P0tlEQn13s3sZsnJVkBR3kS2/t6KGKl2NYT+sgoVhGR2Y+ftLpotn1C1j+b gFdNS9HU7gR+SxyNkXHhHdCeOL0/5MdUgldF7g1RdpNbIMPDcWF4tou77MosV2103iMm sCWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=pGUtEcty; 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 i5-v6si27738221pgg.559.2018.10.11.12.35.49; Thu, 11 Oct 2018 12:36:04 -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=pGUtEcty; 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 S1728733AbeJLBmk (ORCPT + 99 others); Thu, 11 Oct 2018 21:42:40 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44789 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbeJLBmk (ORCPT ); Thu, 11 Oct 2018 21:42:40 -0400 Received: by mail-wr1-f65.google.com with SMTP id 63-v6so10719958wra.11; Thu, 11 Oct 2018 11:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ad00m6xN6lDlmdS2qr6HB18bEWnin8CUs6FPBeaHi2Q=; b=pGUtEctyE34XZDpolr2AXwns3PhepESvxen02wUVN7KhxMzrTJzP8qKtsZD5YXiLRX aWE/U9fsVI0cjpxm5AnY23sbLdfYRwdfd11IhotSJmP+kim4Z9aHdbS1I1fDYDTga1NF hRjhfxsgHjNou23IDJXUGcP/dczyjf2nHZwfHFqaR1BTQqCo2uYZEXHsMxVkfYoAtcop ne8mTojKu1BAcV95NPGp/xksqzVh4cIApL9y9x5YftJxcuqSpG/HuUeN/0KjQ/pK1Ggl VvKGyZyOUNTR7IPar0uMBz72cOo1Ulzoeo9XoRZrHwQE2NIuK7bIKiVsrNYcUPZL0qch IXfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ad00m6xN6lDlmdS2qr6HB18bEWnin8CUs6FPBeaHi2Q=; b=b1r5SuWkDy7kqC7A7Z6XVpt5tfa8xqfoVNgWJENoRnVnJWYVJCVYKjlbigImKbyrRI jU6TDN0uDuDlVdxEDLpAecI0gEH1TYUZMEierXmSPbExt94O+3+lfuZNavEz78vIT9K/ K/6IeE+UVpezW7kgJ28GHQy7krL7xaiXplIxVWK8DpqK4qnQMd598PUNdfir7MY72Wzh rUtK3360FVAvppMUoQ1R/sRhfl078Wj6FMaLCKf3xe1UefabLpyVZ9itonjWNHidKobU 0SrmPNQXfYJQhgSnalDbxLwDh4RF8tz2fu5QrtSGh8eGZZgW26GsD7GePBiUh7DoLsa2 a+VQ== X-Gm-Message-State: ABuFfoiURN75xhW2h7a19d6g71XrT1PedmNsxu4KPocSa50EO/TMbJGw /jiozXtz4kLvHTXeIUkZnBq/UtuT X-Received: by 2002:adf:f986:: with SMTP id f6-v6mr2549193wrr.293.1539281657578; Thu, 11 Oct 2018 11:14:17 -0700 (PDT) Received: from [192.168.0.20] ([94.1.125.110]) by smtp.googlemail.com with ESMTPSA id l4-v6sm31957422wrb.92.2018.10.11.11.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 11:14:17 -0700 (PDT) Subject: Re: [PATCH] r8169: set RX_MULTI_EN bit in RxConfig for 8168F-family chips To: "Maciej S. Szmigiero" , "David S. Miller" Cc: Heiner Kallweit , Azat Khuzhin , Realtek linux nic maintainers , "netdev@vger.kernel.org" , linux-kernel References: <73ee1d68-2a27-aee9-d8b5-79ba3eda8187@maciej.szmigiero.name> From: Chris Clayton Message-ID: <865c59af-f396-c50a-007e-9a62d4e17037@googlemail.com> Date: Thu, 11 Oct 2018 19:14:02 +0100 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: <73ee1d68-2a27-aee9-d8b5-79ba3eda8187@maciej.szmigiero.name> Content-Type: text/plain; charset=iso-8859-2 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 On 11/10/2018 15:02, Maciej S. Szmigiero wrote: > It has been reported that since > commit 05212ba8132b42 ("r8169: set RxConfig after tx/rx is enabled for RTL8169sb/8110sb devices") > at least RTL_GIGA_MAC_VER_38 NICs work erratically after a resume from > suspend. > The problem has been traced to a missing RX_MULTI_EN bit in the RxConfig > register. > We already set this bit for RTL_GIGA_MAC_VER_35 NICs of the same 8168F > chip family so let's do it also for its other siblings: RTL_GIGA_MAC_VER_36 > and RTL_GIGA_MAC_VER_38. > > Curiously, the NIC seems to work fine after a system boot without having > this bit set as long as the system isn't suspended and resumed. > > Fixes: 05212ba8132b42 ("r8169: set RxConfig after tx/rx is enabled for RTL8169sb/8110sb devices") > Reported-by: Chris Clayton > Signed-off-by: Maciej S. Szmigiero > --- > drivers/net/ethernet/realtek/r8169.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c > index 7d3f671e1bb3..b68e32186d67 100644 > --- a/drivers/net/ethernet/realtek/r8169.c > +++ b/drivers/net/ethernet/realtek/r8169.c > @@ -4269,8 +4269,8 @@ static void rtl_init_rxcfg(struct rtl8169_private *tp) > RTL_W32(tp, RxConfig, RX_FIFO_THRESH | RX_DMA_BURST); > break; > case RTL_GIGA_MAC_VER_18 ... RTL_GIGA_MAC_VER_24: > - case RTL_GIGA_MAC_VER_34: > - case RTL_GIGA_MAC_VER_35: > + case RTL_GIGA_MAC_VER_34 ... RTL_GIGA_MAC_VER_36: > + case RTL_GIGA_MAC_VER_38: > RTL_W32(tp, RxConfig, RX128_INT_EN | RX_MULTI_EN | RX_DMA_BURST); > break; > case RTL_GIGA_MAC_VER_40 ... RTL_GIGA_MAC_VER_51: > Once this is merged in 4.19, a backport for 4.18 stable will be needed because the same problem was introduced at 4.18.8. Tested-by: Chris Clayton