All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 216171] Hibernation not working because of xhci_hcd
Date: Mon, 27 Jun 2022 11:18:41 +0000	[thread overview]
Message-ID: <bug-216171-208809-cb4ih45e2f@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-216171-208809@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=216171

--- Comment #1 from Mathias Nyman (mathias.nyman@linux.intel.com) ---
On 25.6.2022 20.19, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=216171
> 
>              Bug ID: 216171
>             Summary: Hibernation not working because of xhci_hcd
>             Product: Drivers
>             Version: 2.5
>      Kernel Version: 5.18.6-arch1-1
>            Hardware: All
>                  OS: Linux
>                Tree: Mainline
>              Status: NEW
>            Severity: normal
>            Priority: P1
>           Component: USB
>            Assignee: drivers_usb@kernel-bugs.kernel.org
>            Reporter: prz.kopa@gmail.com
>          Regression: No
> 
> Created attachment 301268
>    --> https://bugzilla.kernel.org/attachment.cgi?id=301268&action=edit
> Dmesg log with failed hibernation attempt
> 
> Starting from 5.18.4 my notebook (Dell Latitude 3340) won't hibernate -
> hibernation fails with dmesg errors related to xhci_hcd. I'm attaching dmesg
> log with failed hibernation attempt. Problem goes away after reverting commit
> 63acaa8e9c65dc34dc249440216f8e977f5d2748 (USB: hcd-pci: Fully suspend across
> freeze/thaw cycle). After reverting this commit on linux 5.18.6 my system can
> again successfully hibernate.
> 

Looks like there is a pending wakeup:

[   30.475168] xhci_hcd 0000:00:14.0: PM: pci_pm_freeze():
hcd_pci_suspend+0x0/0x30 returns -16

Guessing suspend_common() in hcd-pci.c retruns -EBUSY because
HCD_WAKEUP_PENDING(hcd) flag is set.

Does xhci dynamic debug show some port event before this?

mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control

Thanks
-Mathias

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

  reply	other threads:[~2022-06-27 11:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-25 17:19 [Bug 216171] New: Hibernation not working because of xhci_hcd bugzilla-daemon
2022-06-27 11:18 ` bugzilla-daemon [this message]
2022-06-27 11:20 ` Mathias Nyman
2022-06-27 12:56 ` [Bug 216171] " bugzilla-daemon
2022-06-27 12:57 ` bugzilla-daemon

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=bug-216171-208809-cb4ih45e2f@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.