All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Andreas Noever <andreas.noever@gmail.com>,
	Michael Jamet <michael.jamet@intel.com>,
	Yehezkel Bernat <YehezkelShB@gmail.com>,
	Christian Kellner <ck@xatom.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Mario Limonciello <mario.limonciello@dell.com>
Subject: Re: USB devices on Dell TB16 dock stop working after resuming
Date: Mon, 4 Nov 2019 16:24:59 +0200	[thread overview]
Message-ID: <20191104142459.GC2552@lahna.fi.intel.com> (raw)
In-Reply-To: <5d2b39bc-5952-c2b6-63b3-bce28122ffd5@molgen.mpg.de>

Hi,

On Mon, Nov 04, 2019 at 02:13:13PM +0100, Paul Menzel wrote:
> Dear Linux folks,
> 
> On the Dell XPS 13 9380 with Debian Sid/unstable with Linux 5.3.7
> suspending the system, and resuming with Dell’s Thunderbolt TB16
> dock connected, the USB input devices, keyboard and mouse,
> connected to the TB16 stop working. They work for a few seconds
> (mouse cursor can be moved), but then stop working. The laptop
> keyboard and touchpad still works fine. All firmware is up-to-date
> according to `fwupdmgr`.

What are the exact steps to reproduce? Just "echo mem >
/sys/power/state" and then resume by pressing power button?

> [  139.752819] PM: suspend entry (s2idle)
> [  139.753919] Filesystems sync: 0.001 seconds
> [  139.754235] (NULL device *): firmware: direct-loading firmware qca/nvm_usb_00000302.bin
> [  139.754251] (NULL device *): firmware: direct-loading firmware qca/rampatch_usb_00000302.bin
> [  139.754879] (NULL device *): firmware: direct-loading firmware i915/kbl_dmc_ver1_04.bin
> [  139.754921] Freezing user space processes ... (elapsed 0.001 seconds) done.
> [  139.756608] OOM killer disabled.
> [  139.756609] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
> [  139.757586] printk: Suspending console(s) (use no_console_suspend to debug)
> [  139.965726] psmouse serio1: Failed to disable mouse on isa0060/serio1
> [  150.530364] usb usb5: root hub lost power or was reset
> [  150.530365] usb usb6: root hub lost power or was reset
> [  150.723502] ath10k_pci 0000:02:00.0: UART prints enabled
> [  150.788182] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
> [  150.955648] usb 6-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
> [  151.172726] usb 5-1: reset high-speed USB device number 2 using xhci_hcd
> [  151.509514] usb 6-1.2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
> [  151.980691] usb 5-1.3: reset low-speed USB device number 3 using xhci_hcd
> [  152.588838] usb 5-1.6: reset low-speed USB device number 5 using xhci_hcd
> [  153.026451] usb 5-1.5: reset high-speed USB device number 4 using xhci_hcd
> [  154.578785] OOM killer enabled.
> [  154.578788] Restarting tasks ... done.
> [  154.671809] PM: suspend exit

The first suspend/resume cycle seems to be fine with the exception of
the HDA issue below.

> [  155.362025] IPv6: ADDRCONF(NETDEV_CHANGE): enx98e743a83cdb: link becomes ready
> [  155.363594] r8152 6-1.2:1.0 enx98e743a83cdb: carrier on
> [  156.614284] snd_hda_intel 0000:00:1f.3: No response from codec, disabling MSI: last cmd=0x20270503
> [  157.622232] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  158.626371] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  159.634102] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  161.678121] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  162.682272] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  163.694234] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  165.730142] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  166.734062] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  167.737908] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  169.782041] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  170.785827] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  171.790000] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  173.829896] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  174.833893] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  175.837849] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  177.873704] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  178.881771] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  179.885738] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  181.921643] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  182.925675] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503

The second suspend/resume cycle seems to have more issues:

> [  183.132176] PM: suspend entry (s2idle)
> [  183.133798] Filesystems sync: 0.001 seconds
> [  183.133968] (NULL device *): firmware: direct-loading firmware i915/kbl_dmc_ver1_04.bin
> [  183.134108] (NULL device *): firmware: direct-loading firmware qca/nvm_usb_00000302.bin
> [  183.134111] (NULL device *): firmware: direct-loading firmware qca/rampatch_usb_00000302.bin
> [  183.134236] Freezing user space processes ... (elapsed 0.001 seconds) done.
> [  183.136034] OOM killer disabled.
> [  183.136034] Freezing remaining freezable tasks ... 
> [  183.937677] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  185.973399] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  186.977389] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  187.981569] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  190.017506] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  190.731632] pcieport 0000:04:04.0: pciehp: Slot(4): Link Down
> [  190.731640] pcieport 0000:04:04.0: pciehp: Slot(4): Card not present

The PCIe link towards the dock goes down.

> [  190.731664] pcieport 0000:3e:04.0: Refused to change power state, currently in D3
> [  190.732691] xhci_hcd 0000:3f:00.0: remove, state 1
> [  190.732712] usb usb6: USB disconnect, device number 1
> [  190.732718] usb 6-1: USB disconnect, device number 2
> [  190.732724] usb 6-1.2: USB disconnect, device number 3
> [  190.732953] xhci_hcd 0000:3f:00.0: xHCI host controller not responding, assume dead
> [  190.763874] xhci_hcd 0000:3f:00.0: USB bus 6 deregistered
> [  190.763902] xhci_hcd 0000:3f:00.0: remove, state 1
> [  190.763918] usb usb5: USB disconnect, device number 1
> [  190.763926] usb 5-1: USB disconnect, device number 2
> [  190.763933] usb 5-1.3: USB disconnect, device number 3
> [  190.765347] usb 5-1.5: USB disconnect, device number 4
> [  190.767022] usb 5-1.6: USB disconnect, device number 5
> [  190.771437] xhci_hcd 0000:3f:00.0: Host halt failed, -19
> [  190.771445] xhci_hcd 0000:3f:00.0: Host not accessible, reset failed.
> [  190.772400] xhci_hcd 0000:3f:00.0: USB bus 5 deregistered
> [  190.773654] pcieport 0000:3b:01.0: Refused to change power state, currently in D3
> [  190.774231] pci_bus 0000:3c: busn_res: [bus 3c] is released
> [  190.774473] pci 0000:3b:01.0: Removing from iommu group 19
> [  190.774712] pci 0000:3f:00.0: Removing from iommu group 19
> [  190.774784] pci_bus 0000:3f: busn_res: [bus 3f] is released
> [  190.774990] pci 0000:3e:01.0: Removing from iommu group 19
> [  190.775345] pci_bus 0000:40: busn_res: [bus 40-6d] is released
> [  190.775566] pci 0000:3e:04.0: Removing from iommu group 19
> [  190.775624] pci_bus 0000:3e: busn_res: [bus 3e-6d] is released
> [  190.775817] pci 0000:3d:00.0: Removing from iommu group 19
> [  190.776158] pci_bus 0000:3d: busn_res: [bus 3d-6d] is released
> [  190.776360] pci 0000:3b:04.0: Removing from iommu group 19
> [  190.776692] pci_bus 0000:3b: busn_res: [bus 3b-6d] is released
> [  190.776890] pci 0000:3a:00.0: Removing from iommu group 19
> [  191.029202] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  192.041443] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  194.077394] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20270503
> [  195.081341] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x20370503
> [  196.085350] snd_hda_intel 0000:00:1f.3: No response from codec, resetting bus: last cmd=0x201f0500
> [  196.121810] (elapsed 12.986 seconds) done.
> [  196.121823] printk: Suspending console(s) (use no_console_suspend to debug)
> [  196.781066] thunderbolt 0-303: device disconnected
> [  196.781161] thunderbolt 0-3: device disconnected

And seems the whole TBT link goes down as well.

What does /sys/bus/thunderbolt/devices/0-0/nvm_version contain?

Also can you add CONFIG_PCI_DEBUG=y in your .config and reproduce so we
can maybe see what is happening in the PCIe side.

  reply	other threads:[~2019-11-04 14:25 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 13:13 USB devices on Dell TB16 dock stop working after resuming Paul Menzel
2019-11-04 14:24 ` Mika Westerberg [this message]
2019-11-04 14:44   ` Mika Westerberg
2019-11-04 15:44     ` Mika Westerberg
2019-11-04 15:49       ` Mario.Limonciello
2019-11-04 16:11         ` Paul Menzel
2019-11-04 16:17           ` Mario.Limonciello
2019-11-04 16:22             ` Paul Menzel
2019-11-04 16:21           ` Mika Westerberg
2019-11-19 16:55             ` Paul Menzel
2019-11-19 17:20               ` Paul Menzel
2019-11-20 10:50               ` Mika Westerberg
2019-11-20 14:15                 ` Mario.Limonciello
2019-11-20 15:23                   ` Mika Westerberg
2019-11-20 17:06                     ` Mario.Limonciello
2019-11-20 17:16                       ` Yehezkel Bernat
2019-11-20 17:41                         ` Mario.Limonciello
2019-11-20 17:43                         ` Mika Westerberg
2019-11-20 17:39                       ` Mika Westerberg
2019-11-22 10:50                 ` Mika Westerberg
2019-11-22 11:05                   ` Paul Menzel
2019-11-22 11:29                     ` Mika Westerberg
2019-11-22 11:33                       ` Paul Menzel
2019-11-22 11:41                         ` Mika Westerberg
2019-11-25  9:20                           ` Mathias Nyman
2019-11-26 11:33                             ` Paul Menzel
2019-11-26 12:44                               ` Mathias Nyman
2019-12-20 14:25                                 ` Paul Menzel
2019-12-23  9:39                                   ` Mathias Nyman
2020-01-17  9:56                                     ` Paul Menzel
2020-01-17 18:33                                       ` Mario.Limonciello
2020-01-18  9:15                                         ` Paul Menzel
2020-01-27 22:16                                           ` Paul Menzel
2020-02-05 13:10                                             ` Paul Menzel

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=20191104142459.GC2552@lahna.fi.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=YehezkelShB@gmail.com \
    --cc=andreas.noever@gmail.com \
    --cc=ck@xatom.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@dell.com \
    --cc=michael.jamet@intel.com \
    --cc=pmenzel@molgen.mpg.de \
    /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.