From patchwork Wed Aug 21 06:41:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Ma X-Patchwork-Id: 1150590 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Cyk46Gjkz9sNC; Wed, 21 Aug 2019 16:41:31 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1i0KJA-0001ax-42; Wed, 21 Aug 2019 06:41:24 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1i0KJ8-0001aq-UV for kernel-team@lists.ubuntu.com; Wed, 21 Aug 2019 06:41:22 +0000 Received: from [114.250.140.47] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1i0KJ7-0004Yq-QZ for kernel-team@lists.ubuntu.com; Wed, 21 Aug 2019 06:41:22 +0000 From: Aaron Ma To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/3][SRU][B-OEM-OSP1/D/E] reduce s2idle power consumption Date: Wed, 21 Aug 2019 14:41:02 +0800 Message-Id: <20190821064105.3264-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1840882 [Impact] When system goes to suspend-to idle, it's power consumption is around 4+ w. [Fix] Some TBT and other ACPI devices share the same power resource, when system goes to s2idle. PME polling thread continue bringing up devices to D0 mode. Use cached ACPI device power state will avoid this issue. [Test] Verified on 2 hardware. Power consumption of s2idle is reduced to 1w. [Regression Potential] Medium, upstream patches cherry-picked. Since these hareware is only supported by 5.0+ kernel, I set B-OEM-OSP1 and disco+ kernel tag. Mika Westerberg (3): PCI / ACPI: Use cached ACPI device state to get PCI device power state ACPI / PM: Introduce concept of a _PR0 dependent device PCI / ACPI: Add _PR0 dependent devices drivers/acpi/power.c | 135 ++++++++++++++++++++++++++++++++++++++++ drivers/pci/pci-acpi.c | 5 +- include/acpi/acpi_bus.h | 4 ++ 3 files changed, 143 insertions(+), 1 deletion(-) Acked-by: Seth Forshee Acked-by: Kleber Sacilotto de Souza