← Back to team overview

kernel-packages team mailing list archive

[Bug 1457852] Re: Optiplex 9020 reboots rather than shutting down if USB3 enabled


I see the same thing with Optiplex 9020 and BIOS A10.  For reference,
git commit 01414f897d20874f6f5d7ef2f756f5bf2df526fc introduced the

commit 01414f897d20874f6f5d7ef2f756f5bf2df526fc
Author: Denis Turischev <denis.turischev@xxxxxxxxxxxxxx>
Date:   Tue May 20 14:00:42 2014 +0300

    xhci: Switch only Intel Lynx Point-LP ports to EHCI on shutdown.
    BugLink: http://bugs.launchpad.net/bugs/1402853
    commit 0a939993bff117d3657108ca13b011fc0378aedb upstream.
    Patch "xhci: Switch Intel Lynx Point ports to EHCI on shutdown."
    commit c09ec25d3684cad74d851c0f028a495999591279 is not fully correct
    It switches both Lynx Point and Lynx Point-LP ports to EHCI on shutdown.
    On some Lynx Point machines it causes spurious interrupt,
    which wake the system: bugzilla.kernel.org/show_bug.cgi?id=76291
    On Lynx Point-LP on the contrary switching ports to EHCI seems to be
    necessary to fix these spurious interrupts.
    Signed-off-by: Denis Turischev <denis@xxxxxxxxxxxxxx>
    Reported-by: Wulf Richartz <wulf.richartz@xxxxxxxxx>
    Cc: Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx>
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Kamal Mostafa <kamal@xxxxxxxxxxxxx>

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 3fc8d9e..21223f8 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -138,7 +138,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
                if (pdev->subsystem_vendor == PCI_VENDOR_ID_HP)
                        xhci->quirks |= XHCI_SPURIOUS_WAKEUP;
+       }
+       if (pdev->vendor == PCI_VENDOR_ID_INTEL &&
+               pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI) {
                xhci->quirks |= XHCI_SPURIOUS_REBOOT;
        if (pdev->vendor == PCI_VENDOR_ID_ETRON &&

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  Optiplex 9020 reboots rather than shutting down if USB3 enabled

Status in linux package in Ubuntu:

Bug description:
  Description:    Ubuntu 14.04.2 LTS
  Release:        14.04

  linux-image-3.13.0-49-generic version 3.13.0-49.83

  I have a large number of Dell Optiplex 9020 machines, and when they
  are asked to shutdown with e.g. shutdown -h now, they shut down
  successfully and then approximately four seconds later they start up

  This problem only happens if the system's USB3 ports are enabled.

  If I reinstate the code removed from xhci-pci.c in the diff.gz:

          if (pdev->vendor == PCI_VENDOR_ID_INTEL &&
  -           (pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_XHCI ||
  -            pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI)) {
  -               /* Workaround for occasional spurious wakeups from S5 (or
  -                * any other sleep) on Haswell machines with LPT and LPT-LP
  -                * with the new Intel BIOS
  -                */
  -               /* Limit the quirk to only known vendors, as this triggers
  -                * yet another BIOS bug on some other machines
  -                * https://bugzilla.kernel.org/show_bug.cgi?id=66171
  -                */
  -               if (pdev->subsystem_vendor == PCI_VENDOR_ID_HP)
  -                       xhci->quirks |= XHCI_SPURIOUS_WAKEUP;
  +               pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI) {
  +               xhci->quirks |= XHCI_SPURIOUS_REBOOT;

  and add msleep(1000) to xhci.c as suggested at http://www.gossamer-

  ...shutdown shuts the machine down as expected.

  I attach the output of lspci -mnn.

  ApportVersion: 2.14.1-0ubuntu3.10
  Architecture: amd64
   /dev/snd/controlC1:  lightdm    1990 F.... pulseaudio
   /dev/snd/controlC0:  lightdm    1990 F.... pulseaudio
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=/dev/mapper/CayenneSys00-swap
   eth0      no wireless extensions.
   lo        no wireless extensions.
  MachineType: Dell Inc. OptiPlex 9020
  NonfreeKernelModules: nvidia
  Package: linux (not installed)
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-49-generic root=/dev/mapper/CayenneSys00-root ro biosdevname=0 quiet
  ProcVersionSignature: Ubuntu 3.13.0-49.83-generic 3.13.11-ckt17
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
   linux-restricted-modules-3.13.0-49-generic N/A
   linux-backports-modules-3.13.0-49-generic  N/A
   linux-firmware                             1.127.11
  Tags:  trusty
  Uname: Linux 3.13.0-49-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: wheel
  _MarkForUpload: True
  dmi.bios.date: 11/20/2014
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A09
  dmi.board.name: 06X1TJ
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 6
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: dmi:bvnDellInc.:bvrA09:bd11/20/2014:svnDellInc.:pnOptiPlex9020:pvr01:rvnDellInc.:rn06X1TJ:rvrA00:cvnDellInc.:ct6:cvr:
  dmi.product.name: OptiPlex 9020
  dmi.product.version: 01
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to: