Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2494164imm; Mon, 24 Sep 2018 05:27:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Q8wMa6C3ePIBtZBS8qsJnysIk7y8EMFahWyhcTYqFY+pSc39sJH2nFO16R/ggmCCWLbo2 X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr10676722plf.126.1537792020606; Mon, 24 Sep 2018 05:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792020; cv=none; d=google.com; s=arc-20160816; b=rVLrX3oxSWZeDD+11QS/gLcQ38evkGN3HthAUfajmZAeBd98xI+P4FEiKi6Rqj+V5g xKzA+v8/9PlAvBrPBhQ2Gfn0gSVBT+tasI+Z8Y98F6X5Rp3wmBETqDkEloVN4wUpmUkf /8oxDxbNqSe7ejZwI3d8uJtfgfU1vjJMV8MA58eIjeexGAf/Q0JrKVxcfytLPGF17Mgt sW73VUoOwFeMloJChqGwFxzFMZBxx7BAPjph8KaH1ZxbVYOfcUPpN6zBZrJylZkT3tB4 KBnZAIcUKHz9CG+DmcmIUpNKq0CPx8TgyPdoppH1dHHnbRnn80k8q+uUNdoy4tbrPBcg DPkA== 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; bh=Evy9hwnkT70+VnOeW1sxtV/FxtY9x0cl7ZOC/iJJjyk=; b=ubpeJyczpOuPPHjNsyXEGVboAyeLmEkFOwq9pkSJQ+0S6o4cpIATH5cLuY9OUHUfFg Vw630X7TXxYD+x4je3ogO7yYgyz+8RRuRegBvBkPa0pnw8kpQbKISaSnyElVDWlralpu xYGGxJLCmni8fNQuG8KuNbsZ657Y6vTCG8GnuRP6QFlonED+VKB5k6Mt/7wsqA34WxS/ NU36C6RA62mwxPyL1+xeN+IQ8kL+idzkHecsTyHzKHieoasWNXvet33cAhicUkPQV0G8 NomfIyDvL/yel71vApMAWJVIdhr0XDjTkEFJJ52ivg5qpU4sr0OpsCfCgF7IhpV9wB+c pD+A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w188-v6si37084317pfw.307.2018.09.24.05.26.45; Mon, 24 Sep 2018 05:27:00 -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; 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 S1733056AbeIXS1o (ORCPT + 99 others); Mon, 24 Sep 2018 14:27:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57034 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731791AbeIXS1n (ORCPT ); Mon, 24 Sep 2018 14:27:43 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F2B261094; Mon, 24 Sep 2018 12:25:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Poirier , Alexander Duyck , Aaron Brown , Jeff Kirsher , Ben Hutchings Subject: [PATCH 4.14 168/173] Partial revert "e1000e: Avoid receiver overrun interrupt bursts" Date: Mon, 24 Sep 2018 13:53:22 +0200 Message-Id: <20180924113127.332611304@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113114.334025954@linuxfoundation.org> References: <20180924113114.334025954@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Benjamin Poirier commit 1f0ea19722ef9dfa229a9540f70b8d1c34a98a6a upstream. This partially reverts commit 4aea7a5c5e940c1723add439f4088844cd26196d. We keep the fix for the first part of the problem (1) described in the log of that commit, that is to read ICR in the other interrupt handler. We remove the fix for the second part of the problem (2), Other interrupt throttling. Bursts of "Other" interrupts may once again occur during rxo (receive overflow) traffic conditions. This is deemed acceptable in the interest of avoiding unforeseen fallout from changes that are not strictly necessary. As discussed, the e1000e driver should be in "maintenance mode". Link: https://www.spinics.net/lists/netdev/msg480675.html Signed-off-by: Benjamin Poirier Acked-by: Alexander Duyck Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/e1000e/netdev.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -1911,21 +1911,10 @@ static irqreturn_t e1000_msix_other(int struct e1000_adapter *adapter = netdev_priv(netdev); struct e1000_hw *hw = &adapter->hw; u32 icr; - bool enable = true; icr = er32(ICR); ew32(ICR, E1000_ICR_OTHER); - if (icr & E1000_ICR_RXO) { - ew32(ICR, E1000_ICR_RXO); - enable = false; - /* napi poll will re-enable Other, make sure it runs */ - if (napi_schedule_prep(&adapter->napi)) { - adapter->total_rx_bytes = 0; - adapter->total_rx_packets = 0; - __napi_schedule(&adapter->napi); - } - } if (icr & E1000_ICR_LSC) { ew32(ICR, E1000_ICR_LSC); hw->mac.get_link_status = true; @@ -1934,7 +1923,7 @@ static irqreturn_t e1000_msix_other(int mod_timer(&adapter->watchdog_timer, jiffies + 1); } - if (enable && !test_bit(__E1000_DOWN, &adapter->state)) + if (!test_bit(__E1000_DOWN, &adapter->state)) ew32(IMS, E1000_IMS_OTHER); return IRQ_HANDLED; @@ -2704,8 +2693,7 @@ static int e1000e_poll(struct napi_struc napi_complete_done(napi, work_done); if (!test_bit(__E1000_DOWN, &adapter->state)) { if (adapter->msix_entries) - ew32(IMS, adapter->rx_ring->ims_val | - E1000_IMS_OTHER); + ew32(IMS, adapter->rx_ring->ims_val); else e1000_irq_enable(adapter); }