Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2475403yba; Mon, 15 Apr 2019 12:25:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRTh24NnwW4nvP/iJUdFGcLy/YMy+1dllqsafSCpc9aMhqKEGBCX2Bcybm/OiPChMr/Hu9 X-Received: by 2002:a62:e315:: with SMTP id g21mr77314233pfh.2.1555356325774; Mon, 15 Apr 2019 12:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555356325; cv=none; d=google.com; s=arc-20160816; b=YZbYPnvEf9yM2hmc/Rhh78YbY4qvZi+TshsG2B0tbjAm/8PUVzaYj/cRZMyX3fIPB+ lsrafYJbm+BuOSzgFsbzTJ+u+y++b5NV1zWdrCl2dGAO3phGl4apKtFeLA4P5c8z8s9O 2teT+x9b6LVGL+u50XuA2QlBFaASBECHa+N5DkKT645+VXNrBBowYdEBsrKgzIPlveEf 405GE6XmGFiZcJrx2R6WgyndBLAELt7SSNpXLppE/6Q9iePygfidpo6sysmksCe+Ku9h 5FIQJZVAeDFwlCEDxIOqE2HXBjZkZ3ttKmU6o5Cw1en/k74s+9ftZMNYCRZaM+5waQb/ n5Tw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=v6MrS/nOD2pfQhlEAbUyP4DnqdkOJzeHuKYr7iMr3Zo=; b=Z7bsm5Ybj1Rgj8QDD6FRDb2+jsEeFnsjMNzuGGxckk+VkC7aDPMMowhU3sn3ltck6H OUSA2TMK/ZlBiEuG3fkob2ylyjXcKX2ebIxrWqwGesOv+552dB6P1LbuklcFx7rSp+wN pVZcGDpnibPsrJdz8UcEXic0SbCKmputR4u8j/gRGiT9LnCkajYORqtyLD2aWoqk19o0 CAHqpnsouGc5uyqU40WEzO8dfYO5ZD57zeCDWaf/35QuCDGa6j63O+3Ax6CNoHjJD7h7 Xz5xkKB+Q9C5EBa4b+Y4gm2U37jpZxZrSpYk4ICE4IagwH5alG5dq7NVO6eZ6je45xBt jegg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yvy9LVwS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si49677493pfb.67.2019.04.15.12.25.09; Mon, 15 Apr 2019 12:25:25 -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=@kernel.org header.s=default header.b=yvy9LVwS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730025AbfDOTGp (ORCPT + 99 others); Mon, 15 Apr 2019 15:06:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:41248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730009AbfDOTGl (ORCPT ); Mon, 15 Apr 2019 15:06:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E31C218A1; Mon, 15 Apr 2019 19:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355201; bh=sEMSincRBeagLJeJzGhIaLf3tATgxZm72E2Tv4T11XY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yvy9LVwSjMjEWirA94UWgdNzy0rEwF6OJOQachdQcGNTs6FYp3qkS+BOAolOjGZQA NkI30Qb5Hx4ejbq7J6vKoa64AjNhc6HlSIvzuxM1lKNipA6GZWYihsSqbMZYNCPoq4 nr7NffouqSUPOpLQ6hLIbnaKBiZl4PQXv8SiKub8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Crowe , Heiner Kallweit , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 033/101] r8169: disable default rx interrupt coalescing on RTL8168 Date: Mon, 15 Apr 2019 20:58:31 +0200 Message-Id: <20190415183742.206867216@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 288ac524cf70a8e7ed851a61ed2a9744039dae8d ] It was reported that re-introducing ASPM, in combination with RX interrupt coalescing, results in significantly increased packet latency, see [0]. Disabling ASPM or RX interrupt coalescing fixes the issue. Therefore change the driver's default to disable RX interrupt coalescing. Users still have the option to enable RX coalescing via ethtool. [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925496 Fixes: a99790bf5c7f ("r8169: Reinstate ASPM Support") Reported-by: Mike Crowe Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/realtek/r8169.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 1d24884e9897..7a50b911b180 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -5418,7 +5418,7 @@ static void rtl_hw_start_8168(struct rtl8169_private *tp) tp->cp_cmd |= PktCntrDisable | INTT_1; RTL_W16(tp, CPlusCmd, tp->cp_cmd); - RTL_W16(tp, IntrMitigate, 0x5151); + RTL_W16(tp, IntrMitigate, 0x5100); /* Work around for RxFIFO overflow. */ if (tp->mac_version == RTL_GIGA_MAC_VER_11) { -- 2.19.1