> I never tested removing the patch
> (https://github.com/torvalds/linux/commit/4dbd11796f3a8eb95647507befc41995458a4023).
>  Is that something I should do?  I'm happy to do additional testing for a
> permanent solution.

If the quirk patch works for you; I don't see a need to do that.

> So just curious, what are the next steps?  Is this going to be pushed to the
> mainline?

Let me re-open this so we can talk about what to do about it.

The OEM's EC is an opaque black box.
This /seems/ to be a race condition with the Linux kernel and the EC.

* Upstreaming the quirk is one possibility.
This means that every time we see this we add to the quirk list.

* Adding a delay for all hardware is another possibility.  
This seems relatively unfair to other hardware not affected by this issue.

* Look into whether there is anything different in what's sent to the EC
in the delay vs no delay case.  I thought that there shouldn't be
anything different since we're in the s2idle loop, but you can double
check this by:

1) Turning on dynamic debug messages for drivers/acpi/ec.c.
2) Run sequence to reproduce issue on unpatched kernel.
3) Run sequence to reproduce issue on patched kernel.
4) Compare the sequences and see if there are any extra events in the patched 
kernel.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2088733

Title:
  low CPU frequency after wake up AMD Ryzen

Status in Linux:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed

Bug description:
  After wake up I can see at least once a week issue with CPU frequency
  not going up. When running:

  $ watch lscpu -e=CPU,MHZ

  standard output looks like:

  CPU       MHZ
    0  400.0000
    1 1383.2480
    2  400.0000
    3  400.0000
    4  400.0000
    5 2699.7561
    6 1288.0500
    7  400.0000
    8  400.0000
    9  400.0000
   10  400.0000
   11  400.0000
   12 3244.0720
   13  400.0000
   14  400.0000
   15 1295.9050

  while when the issue occurs, I can't see 600 Mhz or higher values in
  the same graph. Which also means that response time of computer is
  much lower and everything feels lazy.

  Restart fixes the issue or plug power cable off and in again.

  My CPU is AMD Ryzen™ 7 PRO 7840HS w/ Radeon™ 780M Graphics × 16
  My kernel version: 6.8.0-48-generic #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 
14:04:52 UTC 2024
  OS version: Ubuntu 24.04.1 LTS
  My laptop: HP ZBook Firefly 14 inch G10 A Mobile Workstation PC

  I know about one more person with same machine type with the issue and
  there is also this question on askubuntu which says there is third
  person with this issue.

  https://askubuntu.com/questions/1531956/cpu-too-slow-after-waking-up-
  in-ubuntu-24-04-1

  This bug looks pretty similar however should be fixed already, so creating 
new one
  https://bugs.launchpad.net/ubuntu/+source/linux-hwe-5.19/+bug/2007718

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2088733/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to