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]

 



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
> 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.

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
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
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:05AC:0259.0001/input/input5
U: Uniq=
H: Handlers=sysrq kbd event5 
B: PROP=0
B: EV=120013
B: KEY=10000 0 0 0 1007b00011007 ff9f217ac14057ff ffbeffdfffefffff 7ffffffffffffffe
B: MSC=10
B: LED=1f

and when there is a delay, it looks the same, except with input13 /
event13 instead of input5 / event5.

Thanks,

-- J.M.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux