[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
apport information ** Tags added: apport-collected yakkety ** Description changed: So we know this xhci_kcd was always shit in that it turns off the console usb keyboard for long running computers and that it on abrupt termination of Linux puts usb in a 12x slower mode. It is buggy, it was always buggy, and its getting worse. With Linux 4.8.0-37, this crappy software decides to halt the host controller on boot, ie. turn off the console keyboard preventing any boot. I cannot think of any situation where anyone would want their host controller halted. This is MacBook Pro 2015. So, it's already broken in UEFI-grub as it always was, ie. every key press takes 8 seconds, but you only need two, so you can boot in 16 s. I tried to disable the xhci_kcd crap by using kernel parameter noxhci_port_switch or modprobe.blacklist=xhci_hcd neither which works. Because it has crap in UEFI, the computer will not boot any external hard drive or usb fob. The only thing that works is Apple rescue that gets rid of the xhci garbage, and the boot os x immediately after that. So the log output xhci_hcd :00:14.0: Timeout while waiting for setup device command xhci_hcd :00:14.0: xHCI host not responding to stop endpoint command. - and a bit later: xhci_hcd :00:14.0: Assuming host is dying, halting host. xhci_hcd :00:14.0: HC died; cleaning up - This clown programming of Linux has to stop. Why would anyone ever want - their host controller halted? + This clown programming of Linux has to stop. Why would anyone ever want their host controller halted? + --- + ApportVersion: 2.20.3-0ubuntu8.2 + Architecture: amd64 + AudioDevicesInUse: + USERPID ACCESS COMMAND + /dev/snd/controlC1: foxyboy5662 F pulseaudio + /dev/snd/controlC0: foxyboy5662 F pulseaudio + CurrentDesktop: GNOME + DistroRelease: Ubuntu 16.10 + HibernationDevice: RESUME=/dev/mapper/C89-SWAP + MachineType: Apple Inc. MacBookPro12,1 + Package: linux (not installed) + ProcFB: 0 inteldrmfb + ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.8.0-39-generic root=/dev/mapper/C89-RFS ro i915.enable_rc6=0 + ProcVersionSignature: Ubuntu 4.8.0-39.42-generic 4.8.17 + RelatedPackageVersions: + linux-restricted-modules-4.8.0-39-generic N/A + linux-backports-modules-4.8.0-39-generic N/A + linux-firmware1.161.1 + Tags: yakkety + Uname: Linux 4.8.0-39-generic x86_64 + UpgradeStatus: Upgraded to yakkety on 2016-11-16 (108 days ago) + UserGroups: adm docker libvirt libvirtd sudo + _MarkForUpload: True + dmi.bios.date: 10/26/2015 + dmi.bios.vendor: Apple Inc. + dmi.bios.version: MBP121.88Z.0167.B15.1510261437 + dmi.board.name: Mac-E43C1C25D4880AD6 + dmi.board.vendor: Apple Inc. + dmi.board.version: MacBookPro12,1 + dmi.chassis.type: 9 + dmi.chassis.vendor: Apple Inc. + dmi.chassis.version: Mac-E43C1C25D4880AD6 + dmi.modalias: dmi:bvnAppleInc.:bvrMBP121.88Z.0167.B15.1510261437:bd10/26/2015:svnAppleInc.:pnMacBookPro12,1:pvr1.0:rvnAppleInc.:rnMac-E43C1C25D4880AD6:rvrMacBookPro12,1:cvnAppleInc.:ct9:cvrMac-E43C1C25D4880AD6: + dmi.product.name: MacBookPro12,1 + dmi.product.version: 1.0 + dmi.sys.vendor: Apple Inc. ** Attachment added: "AlsaInfo.txt" https://bugs.launchpad.net/bugs/1668105/+attachment/4831463/+files/AlsaInfo.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
The kernel 4.8 also prevents UEFI Startup Manager from booting external usb devices such as fobs or hard drives. Possibly booting to Startuop Manager and then from thunderbolt or pxe still works -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
Correction: Booting to Apple rescue mode is done by pressing command+R during boot -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
It has also been shown in Startup Manager and bad mode, plugging in an external keyboard and waiting a minute or so enables the external keyboard functioning normally. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
Causes: Since beginning of Apple UEFI, Linux UEFI has booted with usb3 in bad mode during the UEFI boot sequence. This was the case whenever the previous shutdown was not a graceful Linux shutdown, ie. a crash, abrupt shutdown by long press on power key or a macOS session. Because the wait between a key presses and it being effective, boot is cumbersome. Additionally, in the bad mode, timers are 12x slower so every grub second is 12 s, and the UEFI boot additionally takes 1 to 2 minutes. The bad mode entailed that mouse and keyboard only works for 2 s every 10-20 s with a type-ahead buffer of about 10 characters. The bad mode was active during the UEFI phase until the kernel loaded from the boot directory. Linux always had usb3 problems, which can be shown by any computer with usb3 hardware, and thus the xhci_hcd kernel module, over time shutting down various usb devices or the entire usb subsystem. This is what causes the console keyboard to be dead on a computer with a month or more of up-time, forcing a power off should networked ssh become unavailable. Before kernel 4.8, the usb3 troubles only affected Linux. macOS and the UEFI Startup Manager (option-boot) were not affected. With kernel 4.8, the presence of a Linux installation affects the boot manager and regular macOS boot making the only boot option Apple rescue mode (option+R.) All booting not preceded by a graceful Linux shutdown is also extremely slow, about 2 minutes. - The way to boot macOS is to boot Apple rescue mode that resets usb, then boot macOS - The way to boot Linux is the get-around above Additionally in 4.8, the xhci_kcd module, that is built-in and cannot be removed, decides to halt the usb host controller making password input impossible. This is what prevents booting without get-around tricks. usb3 has been a problem in Linux since its introduction. It's time to fix that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
A get-around has been found allowing the system to boot: 1. Boot the Apple computer to grub, takes about 2 minutes 2. Press a key, then edit your boot configuration to include the kernel command line parameter break, takes about 2 minutes 3. At the initramfs prompt usb works fine. Enter command reboot 4. This initiates a graceful shutdown of Linux, and the Apple computer can now be booted with usb3 operating normally -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.10 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1 ** Changed in: linux (Ubuntu) Importance: Undecided => High ** Tags added: kernel-da-key -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
The only thing that makes Linux UEFI run usb well is a gracefully shutdown Linux installation. Because no Linux presently can boot, that's not happening. Because the ssd is soldered, if Linux fucks up UEFI, the computer won't boot and the data is inaccessible. I there no failsafe uefi, no keyboard, and no nada. maybe I can gracefully shutdown a pxe booted Linux and all problems will be gone. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
I guess what's next is that break= kernel command line parameter but it's not going to be doable when each keypress is 8 s -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1668105] Re: xhci_kcd module turns off usb host controller on boot
No logs are available. The preboot UEFI environment is broken and was always broken, but patient people could make the mac boot. What is new is that during boot xhci_kcd halts all usb at early boot, so no console keyboard is available. That xhci thing was always a trouble maker of poor quality. I am working on making macOs run in the mean-time, its way old and never updated. It is possible that I after that can make a fresh (old-version) install of Linux to a partition I conveniently left on the ssd. Once macOS boots nicely, If there is a way to kill off everything that smells like xhci, then the existing installation may be able to boot - I may at some point be able to remove xhci from initramfs If it is possible to "repair" the broken uefi provided by Linux, that would be good to And of course Linux can't read mac encryption and mac can't read Linux encryption. Just another Linux refusing to run on fancy hardware. This is super- mainstream 18 months old, why can't Linux run it? ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1668105 Title: xhci_kcd module turns off usb host controller on boot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1668105/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs