From: Greg KH <gregkh@linuxfoundation.org>
To: duanchenghao <duanchenghao@kylinos.cn>
Cc: stern@rowland.harvard.edu, saranya.gopal@intel.com,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
linux-usb@vger.kernel.org, niko.mauno@vaisala.com, pavel@ucw.cz,
rafael@kernel.org, stanley_chang@realtek.com, tj@kernel.org,
xiehongyu1@kylinos.cn, xy521521@gmail.com,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH v4] USB: Fix the issue of task recovery failure caused by USB status when S4 wakes up
Date: Tue, 29 Oct 2024 04:27:31 +0100 [thread overview]
Message-ID: <2024102911-mooned-precise-f526@gregkh> (raw)
In-Reply-To: <8aff9a5acbd21d7bd08b80e02ef2b34f2028cedf.camel@kylinos.cn>
On Thu, Oct 24, 2024 at 04:46:48PM +0800, duanchenghao wrote:
> hi greg k-h,
>
> 在 2024-10-24星期四的 09:05 +0200,Greg KH写道:
> > On Thu, Oct 24, 2024 at 10:40:38AM +0800, Duan Chenghao wrote:
> > > When a device is inserted into the USB port and an S4 wakeup is
> > > initiated,
> > > after the USB-hub initialization is completed, it will
> > > automatically enter
> > > suspend mode. Upon detecting a device on the USB port, it will
> > > proceed with
> > > resume and set the hcd to the HCD_FLAG_WAKEUP_PENDING state. During
> > > the S4
> > > wakeup process, peripherals are put into suspend mode, followed by
> > > task
> > > recovery. However, upon detecting that the hcd is in the
> > > HCD_FLAG_WAKEUP_PENDING state, it will return an EBUSY status,
> > > causing the
> > > S4 suspend to fail and subsequent task recovery to not proceed.
> > > -
> > > [ 27.594598][ 1] PM: pci_pm_freeze(): hcd_pci_suspend+0x0/0x28
> > > returns -16
> > > [ 27.594601][ 1] PM: dpm_run_callback(): pci_pm_freeze+0x0/0x100
> > > returns -16
> > > [ 27.603420][ 1] ehci-pci 0000:00:04.1: pci_pm_freeze+0x0/0x100
> > > returned 0 after 3 usecs
> > > [ 27.612233][ 1] ehci-pci 0000:00:05.1: pci_pm_freeze+0x0/0x100
> > > returned -16 after 17223 usecs
> > > [ 27.810067][ 1] PM: Device 0000:00:05.1 failed to quiesce
> > > async: error -16
> > > [ 27.816988][ 1] PM: quiesce of devices aborted after 1833.282
> > > msecs
> > > [ 27.823302][ 1] PM: start quiesce of devices aborted after
> > > 1839.975 msecs
> > > ......
> > > [ 31.303172][ 1] PM: recover of devices complete after 3473.039
> > > msecs
> > > [ 31.309818][ 1] PM: Failed to load hibernation image,
> > > recovering.
> > > [ 31.348188][ 1] PM: Basic memory bitmaps freed
> > > [ 31.352686][ 1] OOM killer enabled.
> > > [ 31.356232][ 1] Restarting tasks ... done.
> > > [ 31.360609][ 1] PM: resume from hibernation failed (0)
> > > [ 31.365800][ 1] PM: Hibernation image not present or could not
> > > be loaded.
> > >
> > > The "do_wakeup" is determined based on whether the controller's
> > > power/wakeup attribute is set. The current issue necessitates
> > > considering
> > > the type of suspend that is occurring. If the suspend type is
> > > either
> > > PM_EVENT_FREEZE or PM_EVENT_QUIESCE, then "do_wakeup" should be set
> > > to
> > > false.
> > >
> > > Reported-by: kernel test robot <lkp@intel.com>
> > > Closes:
> > > https://lore.kernel.org/oe-kbuild-all/202410151722.rfjtknRz-lkp@intel.com/
> > > Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
> > > Signed-off-by: Duan Chenghao <duanchenghao@kylinos.cn>
> >
> > What commit id does this fix?
>
> The current patch is not intended to fix an issue with a specific
> commit, but rather to address a long-standing problem in the USB core.
So should it be backported to older stable kernels? If so, how far
back?
> > And I missed where Alan provided a signed-off-by, where was that?
>
> In the following email, Alan proposed using "Signed-off-by" for
> signing.
> https://lore.kernel.org/all/489805e7-c19c-4b57-9cd7-713e075261cd@rowland.harvard.edu/
Ah, missed that, sorry.
thanks,
greg k-h
next prev parent reply other threads:[~2024-10-29 3:27 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 3:05 [PATCH] USB: Fix the issue of task recovery failure caused by USB status when S4 wakes up Duan Chenghao
2024-09-06 14:05 ` Alan Stern
[not found] ` <1725931490447646.3.seg@mailgw.kylinos.cn>
2024-09-10 9:34 ` duanchenghao
2024-09-10 9:36 ` duanchenghao
2024-09-11 14:40 ` Alan Stern
2024-09-12 3:21 ` duanchenghao
2024-09-12 6:26 ` [PATCH v2] " Duan Chenghao
2024-09-12 15:00 ` [PATCH] " Alan Stern
2024-09-13 1:51 ` duanchenghao
2024-09-13 9:38 ` duanchenghao
2024-09-14 2:43 ` Hongyu Xie
2024-09-23 8:00 ` duanchenghao
2024-09-24 13:38 ` Alan Stern
2024-09-29 3:14 ` duanchenghao
2024-10-09 1:19 ` duanchenghao
2024-10-09 1:54 ` Alan Stern
2024-10-09 2:35 ` duanchenghao
2024-10-09 6:29 ` Gopal, Saranya
2024-10-09 15:50 ` Alan Stern
2024-10-10 5:53 ` duanchenghao
2024-10-10 5:59 ` duanchenghao
2024-10-10 14:21 ` Alan Stern
2024-10-11 1:42 ` duanchenghao
2024-10-11 13:53 ` Alan Stern
2024-10-12 9:46 ` [PATCH v3] " Duan Chenghao
2024-10-12 12:39 ` Greg KH
2024-10-12 12:40 ` Greg KH
2024-10-12 15:06 ` Alan Stern
2024-10-12 9:51 ` [PATCH] " duanchenghao
2024-10-12 15:01 ` Alan Stern
2024-10-14 1:32 ` duanchenghao
2024-10-14 1:41 ` duanchenghao
2024-10-14 4:10 ` Gopal, Saranya
2024-10-16 8:57 ` Gopal, Saranya
2024-10-16 9:06 ` duanchenghao
2024-10-24 2:40 ` [PATCH v4] " Duan Chenghao
2024-10-24 2:53 ` duanchenghao
2024-10-24 7:05 ` Greg KH
2024-10-24 8:46 ` duanchenghao
2024-10-29 3:27 ` Greg KH [this message]
2024-10-29 8:01 ` duanchenghao
2024-11-06 1:29 ` duanchenghao
2024-11-21 19:09 ` Greg KH
2024-11-20 2:14 ` 回复:[PATCH " Duan Chenghao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2024102911-mooned-precise-f526@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=duanchenghao@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=lkp@intel.com \
--cc=niko.mauno@vaisala.com \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
--cc=saranya.gopal@intel.com \
--cc=stanley_chang@realtek.com \
--cc=stern@rowland.harvard.edu \
--cc=tj@kernel.org \
--cc=xiehongyu1@kylinos.cn \
--cc=xy521521@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox