Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4673657ybl; Mon, 9 Dec 2019 15:04:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxMHSzRXF4wJtSukWhbxN4Imm2UTSjgVs50gCwsoVxalsmlMCS2wTAjkRneWnNheiem2f18 X-Received: by 2002:a9d:3f06:: with SMTP id m6mr19896931otc.268.1575932681175; Mon, 09 Dec 2019 15:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575932681; cv=none; d=google.com; s=arc-20160816; b=SiIo1nmzDZUb0fwue3lcTDj7TefcIKEasyqlqVxFkafjMSmP68LOX2yE8iOAIkAM4X rC5MWwy1q7bI0pI2MLkbjrEYucLi8fbAJS+W7obIn0++DGTdwy550KQ1WVWplakC9EIT iUWgHCojXXS/pV4sJDQguIz0qaz3RtQuIfhBS+EraFy+JCAiGyCQRf+1JleDZvex4YXC F2goJJQoicJYzQoypAx/iv/cOPKFxSJVwMn92o/8bmZKeeAPkhpZkd8v+3Xx58vwJe+8 nowqg2gbCaUF6UeaOuN5O9B8Db/6HA9ojSipjoU8rc+RqEMb8expfPYzJUH676BVODI6 HTZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mIeK58ZyBw/P30tMn5CgGP7nw/fqYsNmtUWT8mBCQPM=; b=Inl7EFNC1x1coTfcm6qoh10b6lgyHvrtE2WT2IfrT8h+U446g2DQJFqSOEwuKG+9tS ApRo64fQ599nzZUkv8/RF8SCDp56C7DsxzjWrGgTVJEJ7Iz2TD2/rdX+0G2rh2GOSiKI Bw9yk+q51rVs3saHh22WWIuun/yLyA7o9bG+e/UhcVhi1+OpVvN/u1mXpwbmj7sIO6h1 D/JMCf/UdEqGt57OO/uaApoZf4bWZ2nMX6SrbhBaDGVLATg4bIUv6PQOvoWt2kajqAf9 AJxtTXwRRZPYfYinGmohxMWSS/Yl+b08+Say/bJiqM9X0AAY9rL1QnGW5b74m9s5LtiA nDMw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si864649oic.225.2019.12.09.15.04.28; Mon, 09 Dec 2019 15:04:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727190AbfLIXDb (ORCPT + 99 others); Mon, 9 Dec 2019 18:03:31 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46912 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfLIXDa (ORCPT ); Mon, 9 Dec 2019 18:03:30 -0500 Received: by mail-ot1-f65.google.com with SMTP id g18so13748729otj.13; Mon, 09 Dec 2019 15:03:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mIeK58ZyBw/P30tMn5CgGP7nw/fqYsNmtUWT8mBCQPM=; b=IjzyqIMAbJiOI7ASpW60l27nnPDRCGUWwkZOTlL0WN7HSoB2jUkeexGQ1OyTuT6Ave Q9YtBWC6NN0h9q+Ng3TyjFN2dJZKV5I5n4sKH4l3WJlk9bFDqol3anmvdqw5oO1JDVvl eSR0NK70xQNg2iNoM4QpEgbvtP7aZ42/qKQaZ/9HoL/OVX2oceWDLbBRGl2B17votDhV aw/cVTcQT9xSX98GopB4Wd53Sz3F9uiUGAidh1e1XPc2edw8199yJL5Ee84t/xIpYXnY 4NJ/H625SjT3zu4PPDc9BYYzVG/I0d4ZrFx55WeR1kXMyA0A4pzNq75wFYC/kFHPe6HR Z88g== X-Gm-Message-State: APjAAAUo4ZxqSp6D7Sexn7zjH0RywoM++o/p7vBK0b2UA/pp2XEIkGDh 2akUcI910MGujbqH9qI68vCQI+KuDDgT1IhX9mw= X-Received: by 2002:a05:6830:95:: with SMTP id a21mr22577442oto.167.1575932609343; Mon, 09 Dec 2019 15:03:29 -0800 (PST) MIME-Version: 1.0 References: <1773028.iBGNyVBcMc@kreacher> <2991d01601fdbcf25d745a387eda74926f1192b2.camel@intel.com> <56a33219fc336c26b8ef9d8de1a3d50893a7b7d1.camel@linux.intel.com> <7cc9a74a0e16b8e3583401f6be43820377a8f875.camel@linux.intel.com> In-Reply-To: <7cc9a74a0e16b8e3583401f6be43820377a8f875.camel@linux.intel.com> From: "Rafael J. Wysocki" Date: Tue, 10 Dec 2019 00:03:18 +0100 Message-ID: Subject: Re: [PATCH] ACPI: PM: Avoid attaching ACPI PM domain to certain devices To: Todd Brandt Cc: Zhang Rui , "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , "Brandt, Todd E" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 9, 2019 at 11:49 PM Todd Brandt wrote: > > On Thu, 2019-12-05 at 09:32 -0800, Todd Brandt wrote: > > On Wed, 2019-12-04 at 22:04 +0800, Zhang Rui wrote: > > > On Wed, 2019-12-04 at 02:54 +0100, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > > > > Certain ACPI-enumerated devices represented as platform devices > > > > in > > > > Linux, like fans, require special low-level power management > > > > handling > > > > implemented by their drivers that is not in agreement with the > > > > ACPI > > > > PM domain behavior. That leads to problems with managing ACPI > > > > fans > > > > during system-wide suspend and resume. > > > > > > > > For this reason, make acpi_dev_pm_attach() skip the affected > > > > devices > > > > by adding a list of device IDs to avoid to it and putting the IDs > > > > of > > > > the affected devices into that list. > > > > > > > > Fixes: e5cc8ef31267 (ACPI / PM: Provide ACPI PM callback routines > > > > for > > > > subsystems) > > > > Reported-by: Zhang Rui > > > > Cc: 3.10+ # 3.10+ > > > > Signed-off-by: Rafael J. Wysocki > > > > --- > > > > > > > > Rui, > > > > > > > > Please test this on the machine(s) affected by the fan > > > > suspend/resume > > > > issues. > > > > > > Sure, Todd and I will re-run stress test with this patch applied > > > when > > > 5.5-rc1 released. > > > > I've applied it 5.4.0 and will do a full stress test run this weekend > > in the lab (where 7 out of 20 machines have this issue). The kernel > > will be called "5.4.0-acpifanfix", and the data should be ready > > Sunday > > Dec 8. > > > > This is the issue I'll test for: > > https://bugzilla.kernel.org/show_bug.cgi?id=204321 > > > > The test data is in and I'm very happy to report that the patch works > extremely well. Here's the data gathered on the bugzilla issue 204321: > ACPI fan resume is too long. > > [With the patch] > > Kernel Host Test Run Count Rate > 5.4.0-acpifanfix otcpl-whl-u-clear mem-x2351 1 0.04% > 5.4.0-acpifanfix otcpl-z170x-ud5 mem-x2369 0 0% > 5.4.0-acpifanfix otcpl-z170x-ud5 freeze-x2492 0 0% > 5.4.0-acpifanfix otcpl-whl-u-clear freeze-x2411 0 0% > 5.4.0-acpifanfix otcpl-whl-u mem-x2289 0 0% > 5.4.0-acpifanfix otcpl-whl-u freeze-x2389 0 0% > 5.4.0-acpifanfix otcpl-icl-u-2 mem-x2273 0 0% > 5.4.0-acpifanfix otcpl-icl-u-2 freeze-x817 0 0% > 5.4.0-acpifanfix otcpl-glk-rvp-1 freeze-x122 0 0% > 5.4.0-acpifanfix otcpl-dell-p5510-xeon-1 mem-x1851 0 0% > 5.4.0-acpifanfix otcpl-dell-p5510-xeon-1 freeze-x1994 0 0% > 5.4.0-acpifanfix otcpl-dell-inspiron-3493 mem-x1722 0 0% > 5.4.0-acpifanfix otcpl-dell-inspiron-3493 freeze-x2102 0 0% > 5.4.0-acpifanfix otcpl-cfl-u-01 mem-x39 0 0% > 5.4.0-acpifanfix otcpl-cfl-u-01 freeze-x2091 0 0% > 5.4.0-acpifanfix otcpl-cfl-h mem-x415 0 0% > 5.4.0-acpifanfix otcpl-cfl-h freeze-x2265 0 0% > 5.4.0-acpifanfix otcpl-aml-y mem-x3126 0 0% > 5.4.0-acpifanfix otcpl-aml-y freeze-x2288 0 0% > > [Without the patch] > > Kernel Host Test Run Count Rate > 5.3.0+ otcpl-icl-u-2 mem-x2571 2571 100.00% > 5.3.0+ otcpl-whl-u mem-x2497 2497 100.00% > 5.3.0+ otcpl-cfl-h mem-x2068 2068 100.00% > 5.3.0+ otcpl-glk-rvp-1 mem-x75 74 98.67% > 5.3.0+ otcpl-cfl-u-01 mem-x1074 1050 97.77% > 5.3.0+ otcpl-glk-rvp-1 freeze-x45 12 26.67% > 5.3.0+ otcpl-whl-u freeze-x2649 428 16.16% > 5.3.0+ otcpl-aml-y freeze-x2434 373 15.32% > 5.3.0+ otcpl-cfl-u-01 freeze-x2419 123 5.08% > 5.3.0+ otcpl-latexo-ivb-cpt freeze-x1914 97 5.07% > 5.3.0+ otcpl-whl-u-clear mem-x2640 69 2.61% > 5.3.0+ otcpl-icl-u-2 freeze-x2757 59 2.14% > 5.3.0+ otcpl-whl-u-clear freeze-x2830 53 1.87% > 5.3.0+ otcpl-tgl-rvp freeze-x2086 20 0.96% > 5.3.0+ otcpl-cfl-h freeze-x2457 8 0.33% > 5.3.0+ otcpl-latexo-ivb-cpt mem-x2000 4 0.20% > 5.3.0+ otcpl-aml-y mem-x2727 2 0.07% > 5.3.0+ otcpl-z170x-ud5 mem-x2669 0 0% > 5.3.0+ otcpl-z170x-ud5 freeze-x2881 0 0% > 5.3.0+ otcpl-lenovo-ideapad-130 mem-x2000 0 0% > 5.3.0+ otcpl-lenovo-ideapad-130 freeze-x2000 0 0% > 5.3.0+ otcpl-dell-p5510-xeon-2 mem-x570 0 0% > 5.3.0+ otcpl-dell-p5510-xeon-2 freeze-x1093 0 0% > 5.3.0+ otcpl-dell-p5510-xeon-1 mem-x2209 0 0% > 5.3.0+ otcpl-dell-p5510-xeon-1 freeze-x2431 0 0% > 5.3.0+ otcpl-dell-inspiron-3493 freeze-x1170 0 0% > 5.3.0+ otcpl-chromebook-hsw freeze-x1305 0 0% > 5.3.0+ otcpl-chromebook-hsw freeze-x368 0 0% Great, thanks for the verification! I will queue up the patch for the next ACPI pull request, then. Thanks!