Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1939977ybk; Thu, 21 May 2020 20:23:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE4eqjnm2jqfJ0OgL6A2NZQ6+yYisgWIqI7zpCuj0s+5OzmTq3+YzdjGgk77IMDMxlf9wm X-Received: by 2002:a17:906:6808:: with SMTP id k8mr6590472ejr.125.1590117829033; Thu, 21 May 2020 20:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590117829; cv=none; d=google.com; s=arc-20160816; b=tiVSDLdQ7IxX2Juc93MhKlfeBXno/GlGW6v4p2IvjuwduuHl6rK0xgpakmYHqM8usv CeYflXVsog19RSOSDOvZOUsQ8qFw3eKoj4q3Qg+BrnDTtUAmL0sjbfJucFbetjFaQGeu cDIuyr0invHSHTWt271BCaJn23qfNUH6uhgT6Fm/N1oNuya4DkJCF1gYw0TIqprJN6M6 VL88ruLcLACp8L24ZcPR0m/LRkxzPR2AZPOYpe2U7wGCAmFHnmdDyMMz4SpfjiPbQGhp lLNmZg4sPBysLcezkl7ph7dhOg4V2IlUuRxqOHENaJeBFVKoJ6Gin6eDnyXowf4j7UwJ c2ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=sSb5ddmXzVeOmKdOts2Q10VpTfKCs8nXYOOSPMABViY=; b=q8uirZLG9KkRMkAgclYq+GpD0p8613V7+EA1BXRCvV93z3dogRcVzygFFyuP21EVJ1 bN/7/pnMN8rFXlUEan8TRvobpIIsMGV1lJ7NG9oW9g4EfKJLgkfPVCRwOdPhK7weH+43 bC0BGnNGvShGAPNDjtG45NuNATigfoKwy+8O0in1n2tT0NH26wztnE6lq7DmnXBR3QFc MGx8TlGYPKDl6IjItwi54MRCvf4j0yFnkx50/+xJPrSZQhD281wYkSeWTwPrTib9me8t +2kfGnfHLEvTmQsMJiGWTkuwZIpI/GkhdCgSb4cV9BKtfYxVs6vKyiV3Y4fIhC66Kg9V KxyQ== ARC-Authentication-Results: i=1; mx.google.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=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si3818820edv.382.2020.05.21.20.23.12; Thu, 21 May 2020 20:23:49 -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; 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=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727909AbgEVDVQ (ORCPT + 99 others); Thu, 21 May 2020 23:21:16 -0400 Received: from mo-csw1516.securemx.jp ([210.130.202.155]:57734 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbgEVDVQ (ORCPT ); Thu, 21 May 2020 23:21:16 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id 04M3L1OB004202; Fri, 22 May 2020 12:21:01 +0900 X-Iguazu-Qid: 34trJzXMWLTWgibhZ2 X-Iguazu-QSIG: v=2; s=0; t=1590117661; q=34trJzXMWLTWgibhZ2; m=wrPARnLkF2hEskCsXYqcABH37zzS5Viw1KXT40c9bv0= Received: from imx12.toshiba.co.jp (imx12.toshiba.co.jp [61.202.160.132]) by relay.securemx.jp (mx-mr1510) id 04M3KxZS038811; Fri, 22 May 2020 12:20:59 +0900 Received: from enc02.toshiba.co.jp ([61.202.160.51]) by imx12.toshiba.co.jp with ESMTP id 04M3KwbJ004263; Fri, 22 May 2020 12:20:58 +0900 (JST) Received: from hop101.toshiba.co.jp ([133.199.85.107]) by enc02.toshiba.co.jp with ESMTP id 04M3KwHO019853; Fri, 22 May 2020 12:20:58 +0900 From: Punit Agrawal To: "Brown\, Aaron F" Cc: "Kirsher\, Jeffrey T" , "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 References: <20200515043127.3882162-1-punit1.agrawal@toshiba.co.jp> Date: Fri, 22 May 2020 12:20:57 +0900 In-Reply-To: (Aaron F. Brown's message of "Thu, 21 May 2020 07:56:12 +0000") X-TSB-HOP: ON Message-ID: <87367sac4m.fsf@kokedama.swc.toshiba.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Aaron, "Brown, Aaron F" writes: >> 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 workaround >> >> 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. >> >> Fix this by dropping the check for number of delay iterations. >> >> While at it, also make __ew32_prepare() static as it's not used >> anywhere else. >> >> 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, >> >> If there are no further comments please consider merging the patch. >> >> Also, should it be marked for backport to stable? >> >> Thanks, >> Punit >> >> RFC[0] -> v1: >> * Dropped return value for __ew32_prepare() as it's not used >> * Made __ew32_prepare() static >> * Added tags >> >> [0] https://lkml.org/lkml/2020/5/12/20 >> >> drivers/net/ethernet/intel/e1000e/e1000.h | 1 - >> drivers/net/ethernet/intel/e1000e/netdev.c | 12 +++++------- >> 2 files changed, 5 insertions(+), 8 deletions(-) >> > Tested-by: Aaron Brown Thanks for taking the patch for a spin. Jeff, let me know if you're okay to apply the tag or want me to send a new version. Thanks, Punit