Received: by 10.223.176.5 with SMTP id f5csp1962699wra; Thu, 8 Feb 2018 06:24:01 -0800 (PST) X-Google-Smtp-Source: AH8x226hBQxDoi55rqpJ2vwaq/jHvCF59+9kwTiZbawojnayZo6KS1pfaeSrLxiWykvv/xySAwO9 X-Received: by 2002:a17:902:9003:: with SMTP id a3-v6mr812568plp.338.1518099841543; Thu, 08 Feb 2018 06:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518099841; cv=none; d=google.com; s=arc-20160816; b=dt5yM8HzEWp0pmRrJ9a+PGy4hoQaPvVs8QC5JzHLpxABkd3oJMLCd9bQnpY3rIrkqe fhHjJn+IEIbK5Ox7SCz1tsehZsMF7sexHdCZOMZfEky645uS2hLQV2CaK8fbVIJT6sEC o7BEobZLVMUUHmeGETt3gD5LVDPRg4tgag9hBicrKy8kTyX0MMexDDD1ShglNkf3vqQv 0BBkCjrw5Y3NDR7dkHHBfOZZm6Vn6GL8F6NHE3ewist0kCBbtDWT0VkLnjfflmB8taVF e5sw0wqYXwKsjicmBphOfN1X+6XkcjVbO/2S6BAfXCY5SPV38UC8061OXAxmgrDmD9u1 8QJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=YyzJmub5IeRP1bqs3+sOvvSUm93wQC+sio2atCZC/hM=; b=wDHELDOjhADzImAowAHKoHSe41K9EtPsmPuX+Z6YxVrkhVOW/9K5L7PJ3bUYsv6QEn Uc2DGvozmp5XibYyZag80dod4c9127S+stKa7DHvasLuMuYhP0toOSXGmv9RezyzyjYO S1yw6eqsqKxm2Wv4qneCEWDh2apUD55fX/8APif5KUHvFk0QyYPO45Sh4qr+eG4bD7im /7oejvhTB1CvdbieSevvRo8X1Gy9QK3aX5CRmTkHoIkk449SvXyN2j3J/fSn5rA5LiAN HFEQ4KPFlz7RhCeCQu8Kj2M6xfeQJ6GCs7MrVDhmIjLjBCdjFoFu58a6hiHPs8F4bw/o X5rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RiNlfGMO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si15584pgv.822.2018.02.08.06.23.47; Thu, 08 Feb 2018 06:24:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RiNlfGMO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752056AbeBHOXF (ORCPT + 99 others); Thu, 8 Feb 2018 09:23:05 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:44492 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079AbeBHOXC (ORCPT ); Thu, 8 Feb 2018 09:23:02 -0500 Received: by mail-qk0-f196.google.com with SMTP id n188so5780884qkn.11; Thu, 08 Feb 2018 06:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YyzJmub5IeRP1bqs3+sOvvSUm93wQC+sio2atCZC/hM=; b=RiNlfGMOjOCm5S7rHmvkTQUfsz7KqfoyE05vehRBLPllA/dQbH8g+ZgdZlNbLvI2mM pREAeCh7gEuJNNds5OCcfhyQdggmYX1qQRNEpcybjKUVNsRqiD/lrHZwfym1w8V0LLw4 FRlyWzdkP/Obh0HLIqKUYi84Uu9loFKhl/SJHoCyoee2ksYF6lSeG4SQpav5ENvumX1R 17eTA9mCcSQSNNpdh/wjL3sHJBhBOYMUQhouZIgpfUVk6AQjsOCd0yM4ZkxYkZIwCJ0C s2M2b8nxk7o7f1uIULYtvj0X9ePlJuuZGrXXNSTOo70eLVsnikKFYOSodrIHnShW4tT5 doyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YyzJmub5IeRP1bqs3+sOvvSUm93wQC+sio2atCZC/hM=; b=dO+q6I8X5KeAiLWdTx9Q35SjmockiLRnjRbT6W50dLwQ/tcfkad+pJ1auJ68FbiT/j UOZd+yJxq1UDDgSH7o3y0KwyFQLqWX+ThCS1+i5tvIwJ8BIGBaOqjnqsmAtj4E2Jgjuj yVBnIt5BhxVtzYH0RtEEsNnMGwtRtqUq86+HnawyY5/7tGcIIVFr08iVCUBK9eMK+GGj hyAVHZdFKixImkcGiWQ22bU5FSaBVkIz3vg0WgZh0pefB75R9Ek3p+0eZBTybHYrGHhP 2h8M6kuKm00bB9MOT2yUqLWjy1++QPz0YIT+tRqVagPeHKJqSs0qjRI+WKt4L+3iB/MW g8KQ== X-Gm-Message-State: APf1xPBDgdajcuQa8VIaU21I18CU2uL3Eizo3v8CaXZHgY7N3D6/MEa8 4y0A6Kg9JLvPZeTsL5Q5F2ETFJ39aXETNA8C+3k= X-Received: by 10.55.135.70 with SMTP id j67mr1301720qkd.34.1518099781381; Thu, 08 Feb 2018 06:23:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.89.199 with HTTP; Thu, 8 Feb 2018 06:23:00 -0800 (PST) In-Reply-To: <20180208064714.6042-1-bpoirier@suse.com> References: <20180208064714.6042-1-bpoirier@suse.com> From: Alexander Duyck Date: Thu, 8 Feb 2018 06:23:00 -0800 Message-ID: Subject: Re: [PATCH net-queue 1/3] Partial revert "e1000e: Avoid receiver overrun interrupt bursts" To: Benjamin Poirier Cc: Jeff Kirsher , intel-wired-lan , Netdev , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 7, 2018 at 10:47 PM, Benjamin Poirier wrote: > 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 > --- > drivers/net/ethernet/intel/e1000e/netdev.c | 16 ++-------------- > 1 file changed, 2 insertions(+), 14 deletions(-) > > diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c > index 153ad406c65e..3b36efa6228d 100644 > --- a/drivers/net/ethernet/intel/e1000e/netdev.c > +++ b/drivers/net/ethernet/intel/e1000e/netdev.c > @@ -1915,21 +1915,10 @@ static irqreturn_t e1000_msix_other(int __always_unused irq, void *data) > 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; > @@ -1938,7 +1927,7 @@ static irqreturn_t e1000_msix_other(int __always_unused irq, void *data) > 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; > @@ -2708,8 +2697,7 @@ static int e1000e_poll(struct napi_struct *napi, int weight) > 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); > } > -- > 2.16.1 >