Re: XHCI is slow during boot (bios/efi) and leaves many dmesg messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Janna Martl <janna.martl109@xxxxxxxxx> writes:
> On 2016-04-04 9:06:28, Olliver Schinagl wrote:
>> Hi list,
>> 
>> I have a Apple Inc. MacBookPro11,1 (with the most recent 'bios': BIOS
>> MBP111.88Z.0138.B16.1509081438 09/08/2015). 
>> At the beginning, USB worked normally. After a while (and after newer kernel
>> versions released by debian?) things started to act strangely. For one, the

you need to try with latest kernel from Linus. Please download v4.6-rc3
from kernel.org, compile and try with that.

>> bios/efi boot takes a very long time (probably due to the same reason I describe
>> later) just to get to the bootloader/grub. Likley resetting and probing for USB
>> ports/mass storage. When grub finally pops up, I can use the (internal USB based
>> keyboard) normally to select a grub entry etc. 
>> Booting the kernel then works reasonably fine, until it loads the xhci module.
>> It spews some messages in dmesg (taking some 15 seconds) and only then, the
>> keyboard starts to work again.

which messages ? We need these dmesg messages

> I have the same hardware and am having the same problem. For me, it
> works properly about half the time. I've discovered two things that
> might be helpful:
>
> (1) When I don't have the problem, I have an efivars entry
> /sys/firmware/efi/efivars/usb-cr-rec-7c436110-ab2a-4bbb-a880-fe41995c9f82
> and when I do have the problem, this entry is not present. (AFAICT this
> is the only thing that changes in efivars, except for something that
> looks like a boot counter.)
>
> For the record:
>
> $ hexdump usb-cr-rec-7c436110-ab2a-4bbb-a880-fe41995c9f82 
> 0000000 0006 8000 0001 0000                    
> 0000008
>
> (2) Unlike (1) this is not a 100% correlation, but usually when it works
> properly, my internal keyboard turns up as /dev/input/event5, and when there's
> a delay, it turns up as event12, event13, or event14 (and this sometimes

this is a consequence of XHCI taking too much time to register...

> changes after suspend, when there's also a delay correlated to the boot
> delay).
>
> From /proc/bus/input/devices when it works:
>
> I: Bus=0003 Vendor=05ac Product=0259 Version=0111
> N: Name="Apple Inc. Apple Internal Keyboard / Trackpad"
> P: Phys=usb-0000:00:14.0-5/input0

... note that your keyboard is just a USB device.

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux