From patchwork Mon May 24 06:33:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1482639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) 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 4FpS8k2R5Zz9sW7; Mon, 24 May 2021 16:33:38 +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 1ll49Z-0006CL-7S; Mon, 24 May 2021 06:33:29 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ll49U-0006C9-9O for kernel-team@lists.ubuntu.com; Mon, 24 May 2021 06:33:24 +0000 Received: from 1-171-216-162.dynamic-ip.hinet.net ([1.171.216.162] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1ll49T-0002Ek-D2 for kernel-team@lists.ubuntu.com; Mon, 24 May 2021 06:33:24 +0000 From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [SRU] [OEM-5.10] [PATCH 0/2] Replace AMD C-state quirk with upstream version Date: Mon, 24 May 2021 14:33:16 +0800 Message-Id: <20210524063318.1060189-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 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: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1928694 [Impact] Current AMD C-state quirk is hardcoded, replace it with a better upstream version. [Fix] Sort the C-state latency value to ensure deeper C-state always has larger value. [Test] Suspend the laptop. S2idle still works with the new patch. [Where problems could occur] This is specific to AMD s0ix platforms. The new fix is effectively the same as the old one, so there's no actual behavioral change. Kai-Heng Feng (1): Revert "UBUNTU: SAUCE: ACPI / idle: override and update c-state latency when not conformance with s0ix" Mario Limonciello (1): ACPI: processor idle: Fix up C-state latency if not ordered drivers/acpi/processor_idle.c | 47 ++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 12 deletions(-) Acked-by: Tim Gardner