Public bug reported:

[ Impact ]

On a certain Dell all-in-one (AIO) platform, we observed a system-hang
issue when the system resumed from suspend. This is introduced by the
fix [1] from #2115478 -- a delayed_work is introduced in the
drivers/usb/core/hub.c. But in this patch, the driver doesn't flush the
delayed_work when the system is going to suspend, causing it to be
called right after the system resume, which is an uncertain behavior.

[ Fix ]

The author had launched two fixes [2][3], which fixes the problem
introduced by the original fix [1].

These two fixes have already landed on mainline:

1. a49e1e2e785fb362 usb: hub: Fix flushing and scheduling of delayed work that 
tunes runtime pm
2. 9bd9c8026341f75f usb: hub: Fix flushing of delayed work used for post resume 
purposes


[ Test ]
1. Boot into the Ubuntu OEM-6.14 kernel
2. Suspend the system by running $ sudo systemctl suspend
3. Wake the system up by pressing any key on a keyboard
4. Check whether the system hangs after resuming from suspend

[ Where problems could occurs ]
These two fixes [2][3] resolve the issue caused by the original fix [1]. It is 
unlikely to cause regression since these two fixes are quite small.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: linux-oem-6.14 (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: linux (Ubuntu Noble)
     Importance: Undecided
         Status: Invalid

** Affects: linux-oem-6.14 (Ubuntu Noble)
     Importance: Undecided
     Assignee: En-Wei Wu (rickywu)
         Status: New

** Also affects: linux-oem-6.14 (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-6.14 (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: linux-oem-6.14 (Ubuntu Noble)
     Assignee: (unassigned) => En-Wei Wu (rickywu)

** Changed in: linux (Ubuntu)
       Status: New => Invalid

** Changed in: linux (Ubuntu Noble)
       Status: New => Invalid

** Changed in: linux-oem-6.14 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2117224

Title:
  [USB Hub] Fix hanging issue when resume from suspend on a Dell AIO
  platform

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to