mbox series

[0/1,SRU,oem-5.13/oem-5.14/impish/jammy] platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops

Message ID 20211213142914.3665037-1-vicamo.yang@canonical.com
Headers show
Series platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops | expand

Message

You-Sheng Yang Dec. 13, 2021, 2:29 p.m. UTC
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(-)

Comments

Tim Gardner Dec. 13, 2021, 3:12 p.m. UTC | #1
Acked-by: Tim Gardner <tim.gardner@canonical.com>

On 12/13/21 7:29 AM, You-Sheng Yang wrote:
> 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(-)
>
Timo Aaltonen Dec. 13, 2021, 5:50 p.m. UTC | #2
On 13.12.2021 16.29, You-Sheng Yang wrote:
> 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(-)
> 

applied to oem-5.14, thanks
Timo Aaltonen Dec. 13, 2021, 10:02 p.m. UTC | #3
On 13.12.2021 16.29, You-Sheng Yang wrote:
> 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(-)
> 

applied to oem-5.13, thanks
Kleber Sacilotto de Souza Dec. 14, 2021, 3:44 p.m. UTC | #4
On 13.12.21 15:29, You-Sheng Yang wrote:
> 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: Kleber Sacilotto de Souza <kleber.souza@canonical.com>

Thanks
Paolo Pisati Dec. 15, 2021, 8:46 a.m. UTC | #5
On Mon, Dec 13, 2021 at 10:29:13PM +0800, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1954633

The fix is already part of stable 5.15.8, so i'm not applying this one.
Kleber Sacilotto de Souza Dec. 15, 2021, 1:29 p.m. UTC | #6
On 13.12.21 15:29, You-Sheng Yang wrote:
> 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(-)
>

Applied to impish:linux.

Thanks,
Kleber