From patchwork Mon Dec 13 14:29:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1567347 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4JCP5y3mxbz9s3q for ; Tue, 14 Dec 2021 01:29:26 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mwmKO-00013Y-DN; Mon, 13 Dec 2021 14:29:20 +0000 Received: from mail-pj1-f42.google.com ([209.85.216.42]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mwmKM-00013N-Mq for kernel-team@lists.ubuntu.com; Mon, 13 Dec 2021 14:29:18 +0000 Received: by mail-pj1-f42.google.com with SMTP id k6-20020a17090a7f0600b001ad9d73b20bso13470990pjl.3 for ; Mon, 13 Dec 2021 06:29:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=/a4hG87BTiQmi6jVPu6GBdM4I8YYi7TafyIXhWuk0ag=; b=YNpamuMKzrK4hgSZbLh2t8bkFs0SCQBKqAOp3bbOpId3UkvIAEqO7x6VipRkqquD3T 4h4CbwldYVjBWGML3eW5IWY4tWR1P7HwshW59PuBzYhXNoHzD57Sev5/FTPQlCVi/UFv 0yxaNo+o8JFTKnlsk1cMdj2MdnZmTzQxI8/PHOUB40eVyqMkdF0/DPpyZFd7DqIlvlvf ssupnFpJqlTEYRivyXuTHgyKkmPcEqSl/6gqXT8189QPczCsQd9JJTZDCSX09rkLPjZW EbQ+mcndLEXIa+MVqgzvaoelTXoZrnhQ9ryqnzsH+El5Ph3AEuIG70sm8Eam+5SF8HJS MqSQ== X-Gm-Message-State: AOAM532u5Df67yuF+FgKlwaMnMKz64XEEFwCuMCWUBJrd+oPCIJWRMrE MiSShWIXF4b4J+LnokZkx3vrN20XT/96kg== X-Google-Smtp-Source: ABdhPJyXazYjQpU2p+x+FEzrmHtQ5ntW03WrWvW7cpoK1i3jHFwPaFdvU10Nu7haY+7CwN+mdgoNWQ== X-Received: by 2002:a17:90a:ca81:: with SMTP id y1mr44392490pjt.231.1639405756737; Mon, 13 Dec 2021 06:29:16 -0800 (PST) Received: from localhost (218-173-164-169.dynamic-ip.hinet.net. [218.173.164.169]) by smtp.gmail.com with ESMTPSA id z22sm13738480pfe.93.2021.12.13.06.29.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 06:29:16 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1][SRU][oem-5.13/oem-5.14/impish/jammy] platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops Date: Mon, 13 Dec 2021 22:29:13 +0800 Message-Id: <20211213142914.3665037-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.42; envelope-from=vicamo@gmail.com; helo=mail-pj1-f42.google.com 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/1954633 [Impact] AMD Ryzen 7 platforms fail to s2idle when powered by bettery. [Fix] Upstream fix commit 49201b90af81 ("platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops") from v5.16-rc5. [Test Case] Run checkbox suspend/resume tests on battey: $ checkbox-cli run \ com.canonical.certification::stress-suspend-30-cycles-with-reboots-automated [Where problems could occur] This shortens AMD PMC communication poll delay to a half of the original value. While we don't have much information about the exact value range allowed, the side effect couldn't be evaluated practically. This change was ACKed by AMD developers and has been marked cc stable, we'll probably bump into it anyway. [Other Info] This may affect kernel >= 5.11. While Hirsute is near its EOL, it was skipped here. Fabrizio Bertocci (1): platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops drivers/platform/x86/amd-pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Tim Gardner Acked-by: Kleber Sacilotto de Souza