Received: by 10.223.185.116 with SMTP id b49csp1517296wrg; Wed, 14 Feb 2018 19:25:44 -0800 (PST) X-Google-Smtp-Source: AH8x225LTaxrhlvXZWoyXBqoDo+Cg5o23aQSDgWqkOVbZJh7HY/JKXepSA355uRXce0SZEED3F8p X-Received: by 2002:a17:902:225:: with SMTP id 34-v6mr1147392plc.415.1518665144008; Wed, 14 Feb 2018 19:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518665143; cv=none; d=google.com; s=arc-20160816; b=QMOgW3/LOwK4CzoC2Pp1gWPtC9/HEh07tT9SfT5LiWasDzerITMAKIFFgQMIoPikp6 5MaMSuJHRACLSWpFpHdqEW6U/12szL1Vj7eDKlwDVQsBWhIOkYkgmozgguK3wai0X4CA hHz12G58ysmOluNcahMCDQMB67hyjhMOCpACTCZuJWnli4WujDKQH00YQAEcPVk7cA8R ZevFEQQv1NN+34t4M+sKisbc11CYYiP3HfhGXtQSL+fMI7MBfpuLgxK3cPH9lqEw+RPa xd2U96N4rh0b2y76paGg3mAkFZXL9mid795Q5Pv4wDV3TS4m7Oa4UT2lKWpDAw1XTir8 9PQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=b1nULHRT4FxkhoAFDeXp5PrtCHhyAPRws89KpvAWH60=; b=NkrfbjfYrCJs7TP/q6G+IwaoUyTgzvaFqjtlHXwsDG8opu3zky5WNQg868n5/v7dEb pmQBNxRgC3fg8jx90DVYqfnpH4ZaYeZnZWiAwSomIWeyOJju09JLvNUkwDaIQcW/Z1/T +WvmidtPd1wVSEO3a395HWQTkoaqBEra6eox7UD/rzoqFLH9h5ZGjWqtuIqReCSXkfKz 80sky1nf0YiBtWt5sZM2c4HvvKz8iOC5xW/BHWZzHsDsHkOlmIdrb8gFXVj/r9bsxsVV cCQqQ37lw+jFdoBYxknbn6SyJeLS2/SXZFz9VGHX+7rcDGgyK3qkkwagZ44egaxrhtNT 8huQ== 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 k189si684124pgc.662.2018.02.14.19.25.29; Wed, 14 Feb 2018 19:25:43 -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; 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 S967877AbeBODYA convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Feb 2018 22:24:00 -0500 Received: from mga11.intel.com ([192.55.52.93]:21145 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966428AbeBODX6 (ORCPT ); Wed, 14 Feb 2018 22:23:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2018 19:23:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,515,1511856000"; d="scan'208";a="204254533" Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by fmsmga005.fm.intel.com with ESMTP; 14 Feb 2018 19:23:58 -0800 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.179]) by ORSMSX108.amr.corp.intel.com ([169.254.2.52]) with mapi id 14.03.0319.002; Wed, 14 Feb 2018 19:23:57 -0800 From: "Brown, Aaron F" To: Benjamin Poirier , "Kirsher, Jeffrey T" CC: "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [Intel-wired-lan] [PATCH net-queue 3/3] e1000e: Avoid missed interrupts following ICR read. Thread-Topic: [Intel-wired-lan] [PATCH net-queue 3/3] e1000e: Avoid missed interrupts following ICR read. Thread-Index: AQHToKi1kS2OvYi6CE6rXtjT9NpTMaOk1xXw Date: Thu, 15 Feb 2018 03:23:57 +0000 Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B8C7E62D1@ORSMSX103.amr.corp.intel.com> References: <20180208064714.6042-1-bpoirier@suse.com> <20180208064714.6042-3-bpoirier@suse.com> In-Reply-To: <20180208064714.6042-3-bpoirier@suse.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Benjamin Poirier > Sent: Wednesday, February 7, 2018 10:47 PM > To: Kirsher, Jeffrey T > Cc: netdev@vger.kernel.org; intel-wired-lan@lists.osuosl.org; linux- > kernel@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH net-queue 3/3] e1000e: Avoid missed > interrupts following ICR read. > > The 82574 specification update errata 12 states that interrupts may be > missed if ICR is read while INT_ASSERTED is not set. Avoid that problem by > setting all bits related to events that can trigger the Other interrupt in > IMS. > > The Other interrupt is raised for such events regardless of whether or not > they are set in IMS. However, only when they are set is the INT_ASSERTED > bit also set in ICR. > > By doing this, we ensure that INT_ASSERTED is always set when we read ICR > in e1000_msix_other() and steer clear of the errata. This also ensures that > ICR will automatically be cleared on read, therefore we no longer need to > clear bits explicitly. > > Signed-off-by: Benjamin Poirier > --- > drivers/net/ethernet/intel/e1000e/defines.h | 21 > ++++++++++++++++++++- > drivers/net/ethernet/intel/e1000e/netdev.c | 11 ++++------- > 2 files changed, 24 insertions(+), 8 deletions(-) > Tested-by: Aaron Brown