Received: by 10.213.65.68 with SMTP id h4csp2113095imn; Sun, 8 Apr 2018 20:03:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+IwxR4kEGCA9/OLzYiVy5Bc8zYlrctVxla6zAthpqcuSKOYtwRMIbeX0x/Jva64BJZke85 X-Received: by 10.99.142.201 with SMTP id k192mr23794030pge.278.1523242981413; Sun, 08 Apr 2018 20:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523242981; cv=none; d=google.com; s=arc-20160816; b=mIwKE8NAMNsRlFiQhH1No7BErtQiUEV89OStB6RoyQpdzPysZfCWkcV/4tw/qI67WC DAn4B7my0bo78xwNpExfA7vwldofk9M9L3UOaw1LT91jh37mIHQAQtQDlgT1hSowqOEF /rbD3NIjWUE/oZUbqE1UrCsnZuyoZ4VM0JbEhR8kl8WGleCjgahW4TKl7CSRgDVoEOb9 zq61Y6a5qBvmPeFgKsfyhmXk7UWDC8JYgsKKwb4OUgJWcxhEGIRWwg+j8Xvuq/x92zmZ L4rg0Wl4TMKoLQEvQrLly5Ysh6jFBRYLHpmlGqsww4pjhndC7puEKZdGCwZOslkC8k/P uoGw== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=aR+G+frGj6aNQdhg+b76Yh0FoWMHfVxqU84YRcSOqEA=; b=JVhMFdZXU7DSa3fNW0IgnRkk8afuXygUT/4hw5gUz0HN/YJmabonW6r2tErzbZu8Gt I5vRMt55LGWXNNBF7smk3/Kwd7I0/V4in8bkNo8rzjADQ/vAR7JKVgvXyZkmsn+IF8wg ZPlFbzmPLxPtRdL/7OlMkQp3uKo/h5BphjyWFGy18WjAPGYtNvfoJmOy7BOJarHhiQmy Mj1AqXCtfpDyphQxyfI400xtqzwyxMMTQT49CYiKi3nRQ3yQnwcZeAJfD8S/cc/hs8ng nZJlTjNQ58lZjQizEHKdpeupbwtwYJs5x9E3jRQAzbwKiO2ECBNxkin4fDUVQ9e9Lr6k p4sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Gb0U8NJY; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44-v6si15804817plb.635.2018.04.08.20.02.24; Sun, 08 Apr 2018 20:03:01 -0700 (PDT) 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=@microsoft.com header.s=selector1 header.b=Gb0U8NJY; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755424AbeDIA0n (ORCPT + 99 others); Sun, 8 Apr 2018 20:26:43 -0400 Received: from mail-cys01nam02on0098.outbound.protection.outlook.com ([104.47.37.98]:9607 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755332AbeDIA0j (ORCPT ); Sun, 8 Apr 2018 20:26:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aR+G+frGj6aNQdhg+b76Yh0FoWMHfVxqU84YRcSOqEA=; b=Gb0U8NJYFJiCq4FZD/cB+uVIXd/6MFoaQWdBWy1yXTfC+2oyRuWQxZSvLgBEVmTMCgIrkL8YFihwZh0XT6YEzzl579uRIRXysgCxb925DLfswxAqgTrKTh3NfGBebtSM+ObaZ4QIxb44wakuJuRpxjKTP2kOcsgPqYqWSmuCNdg= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1015.namprd21.prod.outlook.com (52.132.133.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:26:31 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:26:31 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Chris Wilson , Jani Nikula , Jeff Kirsher , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 005/293] e1000e: Undo e1000e_pm_freeze if __e1000_shutdown fails Thread-Topic: [PATCH AUTOSEL for 4.9 005/293] e1000e: Undo e1000e_pm_freeze if __e1000_shutdown fails Thread-Index: AQHTz5jkYyzN19hwp0yuM28imT4pCg== Date: Mon, 9 Apr 2018 00:22:50 +0000 Message-ID: <20180409002239.163177-5-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1015;7:oQIsGttmP7agkCMK4AAkrt7bjlyjR/Agdx0Scs927444wGlsStxzDBTwxZr8NK+PgZ/tU5Hlduij5NR4XOc1p46kcoWzvhOtwKbM2DPozvI+rvsEerCE7StOIfld5dOnGJl55/8VAGCPZwq8xWtBxIXc8v38z5+73xjJU+/kHj/OQO9phQjp1V0gWxjxQqyUyX6MOVIdNqxAxvU1qe6GvXocKjsBgnsrxYFqd5dpn78Ko0KWH4nMLh/Lgr69QQuu;20:LdixC1TCxw4feh4CC27XBNIAqFQd9nUbNNqbnbr/HrRfTrlxAls7EOTD40yKG1vR11uwG/V7BlPbrb3RcjncPIGiw89vycwxabUoAvJHhmjzVCzXMTbcOZV529GvRvCLCGOXYL+iVJjm5EwnfZPk4GnT8ffUnhMh3gPO1vLB4d4= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: e748760f-7b9e-48f5-c313-08d59db08b4d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1015; x-ms-traffictypediagnostic: DM5PR2101MB1015: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1015;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1015; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(39380400002)(376002)(346002)(366004)(51234002)(189003)(199004)(53936002)(4326008)(478600001)(72206003)(3280700002)(2616005)(14454004)(305945005)(5250100002)(3660700001)(2501003)(2900100001)(54906003)(110136005)(86362001)(1076002)(966005)(107886003)(6506007)(36756003)(446003)(68736007)(6512007)(7736002)(486006)(2906002)(6306002)(5660300001)(6436002)(3846002)(86612001)(6486002)(66066001)(11346002)(575784001)(476003)(6666003)(59450400001)(26005)(10090500001)(316002)(22452003)(8676002)(81156014)(81166006)(6116002)(105586002)(99286004)(186003)(106356001)(76176011)(15760500003)(25786009)(97736004)(10290500003)(102836004)(8936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1015;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: zNfaziHyMFdnMhsFpa31sFMSO63ltIxbGvnErjaej312a/sHSddQIl83HdLm3I3mb+6V4PkSVNGG+FGlNOC9E9eCgIvxJV8haV+skjRNqQyGxXUoe/brgr4mseGw+VKDwcZ4OfwGwCyP/4u4Xiq3UhUyowppmOOFnnbteKH8YjhWdBoNM+ybqzMfWJdb/olSavLZKORkBtWCakkvIoduESSWV9VYEyMfKbFO6ZQZvQHFfOO+jOc0Zy5Y6Y2q1Rf6m0ehLswOmg3KXTaC4O1S6xIuPDKl2XDdv7pgOLOQI3LNuDJAgCL7B+RnVsmZbHCqPWYK3hdAO4QW4pPDfTIILTmdXWC4MBFargWrNMxEjnp9IWL9xHW325Gozs3N6lttouWCSeTlcicDvttvFNymgEbHjWdx2eoOlX5HDCLmCKs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: e748760f-7b9e-48f5-c313-08d59db08b4d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:22:50.0810 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Wilson [ Upstream commit 833521ebc65b1c3092e5c0d8a97092f98eec595d ] An error during suspend (e100e_pm_suspend), [ 429.994338] ACPI : EC: event blocked [ 429.994633] e1000e: EEE TX LPI TIMER: 00000011 [ 430.955451] pci_pm_suspend(): e1000e_pm_suspend+0x0/0x30 [e1000e] return= s -2 [ 430.955454] dpm_run_callback(): pci_pm_suspend+0x0/0x140 returns -2 [ 430.955458] PM: Device 0000:00:19.0 failed to suspend async: error -2 [ 430.955581] PM: Some devices failed to suspend, or early wake event dete= cted [ 430.957709] ACPI : EC: event unblocked lead to complete failure: [ 432.585002] ------------[ cut here ]------------ [ 432.585013] WARNING: CPU: 3 PID: 8372 at kernel/irq/manage.c:1478 __free= _irq+0x9f/0x280 [ 432.585015] Trying to free already-free IRQ 20 [ 432.585016] Modules linked in: cdc_ncm usbnet x86_pkg_temp_thermal intel= _powerclamp coretemp mii crct10dif_pclmul crc32_pclmul ghash_clmulni_intel = snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_inte= l snd_hda_codec snd_hwdep lpc_ich snd_hda_core snd_pcm mei_me mei sdhci_pci= sdhci i915 mmc_core e1000e ptp pps_core prime_numbers [ 432.585042] CPU: 3 PID: 8372 Comm: kworker/u16:40 Tainted: G U = 4.10.0-rc8-CI-Patchwork_3870+ #1 [ 432.585044] Hardware name: LENOVO 2356GCG/2356GCG, BIOS G7ET31WW (1.13 )= 07/02/2012 [ 432.585050] Workqueue: events_unbound async_run_entry_fn [ 432.585051] Call Trace: [ 432.585058] dump_stack+0x67/0x92 [ 432.585062] __warn+0xc6/0xe0 [ 432.585065] warn_slowpath_fmt+0x4a/0x50 [ 432.585070] ? _raw_spin_lock_irqsave+0x49/0x60 [ 432.585072] __free_irq+0x9f/0x280 [ 432.585075] free_irq+0x34/0x80 [ 432.585089] e1000_free_irq+0x65/0x70 [e1000e] [ 432.585098] e1000e_pm_freeze+0x7a/0xb0 [e1000e] [ 432.585106] e1000e_pm_suspend+0x21/0x30 [e1000e] [ 432.585113] pci_pm_suspend+0x71/0x140 [ 432.585118] dpm_run_callback+0x6f/0x330 [ 432.585122] ? pci_pm_freeze+0xe0/0xe0 [ 432.585125] __device_suspend+0xea/0x330 [ 432.585128] async_suspend+0x1a/0x90 [ 432.585132] async_run_entry_fn+0x34/0x160 [ 432.585137] process_one_work+0x1f4/0x6d0 [ 432.585140] ? process_one_work+0x16e/0x6d0 [ 432.585143] worker_thread+0x49/0x4a0 [ 432.585145] kthread+0x107/0x140 [ 432.585148] ? process_one_work+0x6d0/0x6d0 [ 432.585150] ? kthread_create_on_node+0x40/0x40 [ 432.585154] ret_from_fork+0x2e/0x40 [ 432.585156] ---[ end trace 6712df7f8c4b9124 ]--- The unwind failures stems from commit 2800209994f8 ("e1000e: Refactor PM flows"), but it may be a later patch that introduced the non-recoverable behaviour. Fixes: 2800209994f8 ("e1000e: Refactor PM flows") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D99847 Signed-off-by: Chris Wilson Signed-off-by: Jani Nikula Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/e1000e/netdev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ether= net/intel/e1000e/netdev.c index 528a926dd979..87cbefb16050 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -6645,12 +6645,17 @@ static int e1000e_pm_thaw(struct device *dev) static int e1000e_pm_suspend(struct device *dev) { struct pci_dev *pdev =3D to_pci_dev(dev); + int rc; =20 e1000e_flush_lpic(pdev); =20 e1000e_pm_freeze(dev); =20 - return __e1000_shutdown(pdev, false); + rc =3D __e1000_shutdown(pdev, false); + if (rc) + e1000e_pm_thaw(dev); + + return rc; } =20 static int e1000e_pm_resume(struct device *dev) --=20 2.15.1