Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1203205ybk; Thu, 21 May 2020 00:58:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOQCNCQTAZxMKXXda/2Gjj5klnlSCSGHO1cWgeVuRJdX6FGoEyreyEZcv/R1qebdHaOrKx X-Received: by 2002:a05:600c:228d:: with SMTP id 13mr8192690wmf.182.1590047890938; Thu, 21 May 2020 00:58:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590047890; cv=pass; d=google.com; s=arc-20160816; b=zbGq/i+YGKj+iQF00irI7fkR5FfqmNKcGN//Hs3rXXP4zdQEk04pTWms8JXdGJz8nY nMYgu69kwyLx4zGJS60FPSaRBNPSoV95liGqsftYGaTV40VXYAmRmC1YL9taSNobM4BK PpbJDoFp0Ljo+3rqydixYytUiFqqSau/ICXvVVK6uCVOHiJyEAEDrJ2q4LupaKOfLI0p ZL4dxv+F8xcWW8lVwy53k0F2maSZu1Rns4aBmG9J77pHA0oz3vImI6fTCx5v572Cf1Bq EzqNhdU/vth4VZ/e4c9G2oAWZJ60gtFpagIQH5TR1ED7pADCdSdJYld68RwRXD0u18VZ rpcA== ARC-Message-Signature: i=2; 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-product:dlp-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr :ironport-sdr; bh=lgEHjhjzCoHl98WlaRY6AZYUuzEoQgZjbG1WqEFACc4=; b=RiO0WxzbBZHxinBR5FXQjxpb4ObgjcPYmDR2ldg8VccDklh+uh3BlqVpRUNdmt5ipQ WTHG+uK56oFjaiuXklxF0J+lGuROZc1676QwKmqiCCN99NhKkQZI9sXL9oVkCiiTuO5S cEu5F20j2OSmnyxzILiBzjiiRBYz2vXghI/gs88IhAdNmASfjxu4JjUxc40GPu7UCowr cafmgSsGWW/zBEF1Ie/48wFgK5XJMBeW7qVjMl3BcLIcogyyRNietJ59BbksaaLTNhcW t1r/piAsqXDm32e5oGfY9xa8hj3gSgofGD5d1VQTVkVQTQA3HBampkZElku+ctx2fkTn 8oqQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=R+XUpn9q; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs4si2952901ejb.275.2020.05.21.00.57.47; Thu, 21 May 2020 00:58:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=R+XUpn9q; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728542AbgEUH4T (ORCPT + 99 others); Thu, 21 May 2020 03:56:19 -0400 Received: from mga18.intel.com ([134.134.136.126]:51722 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728485AbgEUH4S (ORCPT ); Thu, 21 May 2020 03:56:18 -0400 IronPort-SDR: 7EIqXKvs99vNQHGP5/ZsO5MMS9xbFPjf9TnHYslla6/JccOC3OTUsgUyIjPaggg+0EsllJN56Q PgwoiJtoSxmQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2020 00:56:17 -0700 IronPort-SDR: Ifqt7oWD28CU73Jplv1Hghgc8Gm+dCNQR8HOy0So5tRO7Ep/EUlkghn5pUieCRH+VqxwEXXz0N IkWda0b1W/wA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,417,1583222400"; d="scan'208";a="253907294" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga007.fm.intel.com with ESMTP; 21 May 2020 00:56:16 -0700 Received: from orsmsx113.amr.corp.intel.com (10.22.240.9) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 May 2020 00:56:14 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX113.amr.corp.intel.com (10.22.240.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 May 2020 00:56:14 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 May 2020 00:56:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gcysVZa7j0ZFnhXIybgdZ7ipZNsUvCQ0/6tIedIeWFbps6xLDbVriJTeT+9yfSgayaaPDttIt0LIA0DsSa1ECIU4FQxwQUlxDfXbFmBeRAp5UXECTDkpLYdG7nFjOwpaKNYqfa1WEeKQEbX+I6MbhsJFRblUR1nqK7ogW80mDSzYP0O4h3iAZ5FEz/jZHzO8xsRPM8x5gYTDSqq4wYKq9B3nBCQO69oZxdS/N/HJEMLdpVAOE1z80iCVcdP+TsxDYnS/btbV/Jf9b0qEHfOKd6MMHAq04VqhV84HGuH7qPJo34KDSMyNsvZUAU1qTvglPX7XOJMhDz47vOG2603ttw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lgEHjhjzCoHl98WlaRY6AZYUuzEoQgZjbG1WqEFACc4=; b=GRi60DZSakUcZ6lmplbrTrSIxsjAF350qTCyqdKKFORBKiJh9Sf+eQ/O9UBn8y8VVc2oAvEoFXmrxxKf+k0EaZbUm8NWPcG5mkjB0uiLynd5QtAF31oxjR0h47pPTF2G9/B4v18uhVpQotRTihJ6GXDwdsiVJIy3lfWPAVumZqWWJTbleOCPvTxNloQPaErj3Fmh9uzgU5g7nQETxF/yhoSjtVTwNuoGBBmx434LI7clTx+tGjEsjHb7Heex6QqCt/apd5ux1x+6mAlzZb9VfR6p3NadyoTcZTvt5nHot5pYXAYjIcp4QVLW5UfipFzb9ttmk9pXKd1+CjVsdHdMxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lgEHjhjzCoHl98WlaRY6AZYUuzEoQgZjbG1WqEFACc4=; b=R+XUpn9qrtfBYngywTB44TiMtvrNCjWf/ydCSjZCJ7ilTuQRDQaZqHMTzcvy9rB81Rb5wUcDHZl6h4mqzh9pQ1b5VGZR5SM5IrAe6wpWbDjWCSaelJYDOQsAoUAg6ahpiMI3IDqLVmrVs7dt8HT9vABT+qTOukPJ19awzwSaOTE= Received: from DM6PR11MB2890.namprd11.prod.outlook.com (2603:10b6:5:63::20) by DM6PR11MB3545.namprd11.prod.outlook.com (2603:10b6:5:141::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.26; Thu, 21 May 2020 07:56:12 +0000 Received: from DM6PR11MB2890.namprd11.prod.outlook.com ([fe80::40b:5b49:b17d:d875]) by DM6PR11MB2890.namprd11.prod.outlook.com ([fe80::40b:5b49:b17d:d875%7]) with mapi id 15.20.3000.022; Thu, 21 May 2020 07:56:12 +0000 From: "Brown, Aaron F" To: Punit Agrawal , "Kirsher, Jeffrey T" CC: "daniel.sangorrin@toshiba.co.jp" , Alexander Duyck , "David S. Miller" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] e1000e: Relax condition to trigger reset for ME workaround Thread-Topic: [PATCH] e1000e: Relax condition to trigger reset for ME workaround Thread-Index: AQHWKnHhYXgap9bbtEq5AHkc4XiRdaiyNRoQ Date: Thu, 21 May 2020 07:56:12 +0000 Message-ID: References: <20200515043127.3882162-1-punit1.agrawal@toshiba.co.jp> In-Reply-To: <20200515043127.3882162-1-punit1.agrawal@toshiba.co.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: toshiba.co.jp; dkim=none (message not signed) header.d=none;toshiba.co.jp; dmarc=none action=none header.from=intel.com; x-originating-ip: [134.134.136.209] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 636f7f95-98e2-4c3c-cd4d-08d7fd5c6e68 x-ms-traffictypediagnostic: DM6PR11MB3545: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 041032FF37 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MULiVrybOMiOQlbSvwYYsd0aCpuYZ3oJbBR4G9u7sht0aJIaM2ssNPtgfwok1f18L6a6MR9FP4Tz0fTNJhgMPHVQKsdTgwWgv+oM+Kv9PVycrCzY7Nu69brmZSMmEwMilRW4TXlkun8LaGodFr8eRtUL3K1p6Q0gQNT0NCPErB6K9ZKgOb+hWAA2NnNMBiL7INC/DRK/dQA5ZBFAfaboOfZoOuT11bYzzM6vSMtgYd10kdAyCcOkWVdoxDFKCYlShjS4bHTIm0CcONe6kYhANQNPJZwmyg55qzN/tBl+CAafdMNdDAIeRsHH79FZ/W72MMTk7GwRhIIeYIIx+TIfjfZBb5+b0d5Bo/jdGMbRxFE/LibfzIeLhfqc78UazsnxFY7gFbyT9btcFgDxtZxAAw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB2890.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(396003)(366004)(39860400002)(376002)(346002)(136003)(66476007)(6506007)(53546011)(66556008)(52536014)(66946007)(2906002)(7696005)(66446008)(64756008)(6636002)(8676002)(9686003)(55016002)(26005)(76116006)(186003)(966005)(33656002)(86362001)(71200400001)(4326008)(316002)(54906003)(5660300002)(110136005)(8936002)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: EJldffoT+Z+ETWFkKglWlOhy4LtWzOHt1d3jSzJySXtVq1OZGDzWPJDbKd+fUsFUoCwWdqlnKwIs5hPkg1smR+VncMQ08zbo7kZMxj5llAl1fQsW+ytteam9UAnMWp/NHWzFscxth0gQi1VDYjA8UbnB4ctLK95LX8VPhtL5TXQVJdlFu+PFHPaz3W8TDkNYm1iK39VQjykronVDUgJpSrCaj3utlHvVaUd91yropUY7+e6hnP9AM7Xui0cWwKPofOB+wKoJPGrN1cF15U7BJf0MXG4leRZ1RNku2pZLQFKzv5z/vbVukNrhqHm76K5QLozklH91EX3RuE5voKhn0vFbEZU25wyxm3368Lm+xaWYZAVEBYKBkdb+3M8wuEyLbWPB93dwu1tyhWa/IDcEaQ3c3XKiYEATJ52R2gUbZJrReUHFG9/LO9tGCBEnKsthU4UPKwhcEaB2qmMg6cOKVfRA9wptFUKv3XdSUcnQsIVgkZUxjkzTkTAJkp00NLCf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 636f7f95-98e2-4c3c-cd4d-08d7fd5c6e68 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2020 07:56:12.6495 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Pqst+UwYZgfP+xkpCk6eTL4/kWBjMAoNvBsNeqLM9yeYYv04VKMY7fF8wf7nZ0mJ1/Kmwh0b8KGsNhAdfpytXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3545 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: netdev-owner@vger.kernel.org On > Behalf Of Punit Agrawal > Sent: Thursday, May 14, 2020 9:31 PM > To: Kirsher, Jeffrey T > Cc: daniel.sangorrin@toshiba.co.jp; Punit Agrawal > ; Alexander Duyck > ; David S. Miller ; > intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org > Subject: [PATCH] e1000e: Relax condition to trigger reset for ME workarou= nd >=20 > It's an error if the value of the RX/TX tail descriptor does not match > what was written. The error condition is true regardless the duration > of the interference from ME. But the driver only performs the reset if > E1000_ICH_FWSM_PCIM2PCI_COUNT (2000) iterations of 50us delay have > transpired. The extra condition can lead to inconsistency between the > state of hardware as expected by the driver. >=20 > Fix this by dropping the check for number of delay iterations. >=20 > While at it, also make __ew32_prepare() static as it's not used > anywhere else. >=20 > Signed-off-by: Punit Agrawal > Reviewed-by: Alexander Duyck > Cc: Jeff Kirsher > Cc: "David S. Miller" > Cc: intel-wired-lan@lists.osuosl.org > Cc: netdev@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > Hi Jeff, >=20 > If there are no further comments please consider merging the patch. >=20 > Also, should it be marked for backport to stable? >=20 > Thanks, > Punit >=20 > RFC[0] -> v1: > * Dropped return value for __ew32_prepare() as it's not used > * Made __ew32_prepare() static > * Added tags >=20 > [0] https://lkml.org/lkml/2020/5/12/20 >=20 > drivers/net/ethernet/intel/e1000e/e1000.h | 1 - > drivers/net/ethernet/intel/e1000e/netdev.c | 12 +++++------- > 2 files changed, 5 insertions(+), 8 deletions(-) >=20 Tested-by: Aaron Brown