Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp108386pxb; Tue, 10 Nov 2020 21:52:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwViTg5z4i6fMUIlZ2FAETb+lSpnmR+n4bYtuJICd5LZ0CJd3d6dzmTEq0bEW5oKturwg+D X-Received: by 2002:aa7:d407:: with SMTP id z7mr3268808edq.234.1605073925432; Tue, 10 Nov 2020 21:52:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605073925; cv=none; d=google.com; s=arc-20160816; b=bMOVC6gHVzyiFbYEonnPkyKKjGIH54UlHu6A7uX+C7pdlkkL2EhbQNAzA/Cb2RcFhc 5iG4R+lFUhmVV0NtsD9Z3ZIxj9kUrU9Zk59uNdDBPN/4Y3fBQO2Gee31H1c3+EEC8LPh DGKdX/dRfA/SWHqSCkW99eTbJ+WAhh74lHpkDOdmBnvnSzigpAzxBissKD+DhqUDu9IF LagkVkwVTItRypkl/dL2fMKhtcA9r1A68/hiGgseVMYaEAZGc6XF1gpS4kg7L2nAwJY+ aX7ibYnQ+PGwpLbIIUmZKqgvp+K9wP9VQh0KMQfgNRrZ5mx/aoz0tTbcu3fBsq0KX7Xx WMrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=2eQ7TbuPQ58f7YkLi+RpbmLXXkX+cRbYwbkEZCQ0qew=; b=QKDGIJPjs14mt3YKMpDxbj8Sw15sY0+OLwEXbXuffLYAKaGWIfwiPaPBsZN9fXC450 FIyas6fvoW1LVCulk812+T4J6LA0fk1oqOxbZoJ+dPdy7QnaqLFdS10AHsOjgX3jM2pX ntX0s3sTa+5Gnqn2jJuJjf1jGYd5WYlzKRyK/2g6DyyegY1zrmgzdbWZ9/JzeXQnRmU8 y5tdrnzsxRKKHiqPCB2B/478NUXaHE8/iDzcIKUDVlJGm4P4Ry01FD3TvcQTwUpq1v+t 0RsrVy7J/fKmuSCr6xa8VpIrkvu8LCGjIlwvRi4PUD5kSc9+1+kBkbup3srkUKNLNkK1 PRBg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si721263edj.441.2020.11.10.21.51.42; Tue, 10 Nov 2020 21:52:05 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725995AbgKKFto (ORCPT + 99 others); Wed, 11 Nov 2020 00:49:44 -0500 Received: from mga14.intel.com ([192.55.52.115]:60892 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbgKKFtn (ORCPT ); Wed, 11 Nov 2020 00:49:43 -0500 IronPort-SDR: wxDOy10vg5XKZsj3fvB0KHbfJEhF5S3PKzIL3AYbUwEO9636maCJ4eG2z9bFtzPywiv4XTLgpK 4eMcX5NVAb0g== X-IronPort-AV: E=McAfee;i="6000,8403,9801"; a="169314878" X-IronPort-AV: E=Sophos;i="5.77,468,1596524400"; d="scan'208";a="169314878" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2020 21:49:42 -0800 IronPort-SDR: EFXgvL/vAHXVTKliiw1HruU9JpJ8S27UtCWTJV+oO6JxtDhNUxMZD+lgUSNc3L01R8rUrqUtvT dyKj0eSi6S+A== X-IronPort-AV: E=Sophos;i="5.77,468,1596524400"; d="scan'208";a="308336506" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2020 21:49:39 -0800 From: Chen Yu To: intel-wired-lan@lists.osuosl.org Cc: "Neftin, Sasha" , Len Brown , "Rafael J. Wysocki" , "Brandt, Todd E" , Zhang Rui , Tony Nguyen , Jesse Brandeburg , linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 4/4][RFC] e1000e: Disable the power management if hardware error detected during resume Date: Wed, 11 Nov 2020 13:52:07 +0800 Message-Id: <7eb46aa2f49f6c7a2ff0d6cc65ad4195781ae960.1605073208.git.yu.c.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the hardware error is detected during resume, the NIC might be in a unstable status and blocks the subsequent suspend afterwards. A broken device is not expected to impact the system wide suspend, and this patch disable the power management support of this NIC. So that the borken NIC will not be considered during suspend/resume, thus not to prevent the system from suspend/resume. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=205015 Reported-by: "Brandt, Todd E" Reported-by: Len Brown Signed-off-by: Chen Yu --- drivers/net/ethernet/intel/e1000e/netdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index 45e0b1901440..08bc544e879a 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -6959,7 +6959,8 @@ static int __e1000_resume(struct pci_dev *pdev) ew32(WUS, ~0); } - e1000e_reset(adapter); + if (_e1000e_reset(adapter)) + schedule_work(&adapter->pm_remove_task); e1000_init_manageability_pt(adapter); -- 2.17.1