Skip to contentSkip to conversation

quirk_usb_disable_ehci takes 2x 1.5s on boot

DISCUSSION Jiri Slaby 3 participants 4 messages Jan 5, 2009 – Feb 24, 2009

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

Hi,

I don't know since which moment (maybe I changed something in bios, but usb legacy kbd was ever enabled), but quirk_usb_disable_ehci takes for both of my ehci controllers 1.5 s.

More precisely, the time is spent in
pci_write_config_byte(pdev, offset + 3, 1);
by
outb((u8)value, 0xCFC + (reg & 3));
from pci_conf1_write deep in the callstack.

Is there any workaround known or something. Turning legacy usb off is not an option, I want to control grub.

Thanks.

#1 lore raw
Quoted 6 lines · Jiri Slaby

Hi,

I don't know since which moment (maybe I changed something in bios, but usb legacy kbd was ever enabled), but quirk_usb_disable_ehci takes for both of my ehci controllers 1.5 s.

Quoted 7 lines

More precisely, the time is spent in
pci_write_config_byte(pdev, offset + 3, 1);
by
outb((u8)value, 0xCFC + (reg & 3));
from pci_conf1_write deep in the callstack.

Is there any workaround known or something.

I've never heard of pci_write_config_byte() taking enough time to be visible without a PCI bus analyser... sorry, no clue.

- Dave

Quoted 6 lines

Turning legacy usb off is not an
option, I want to control grub.

Thanks.

#2 lore raw
In reply to Jiri Slaby
Quoted 6 lines · Jiri Slaby

Hi,

I don't know since which moment (maybe I changed something in bios, but usb legacy kbd was ever enabled), but quirk_usb_disable_ehci takes for both of my ehci controllers 1.5 s.

Quoted 8 lines

More precisely, the time is spent in
pci_write_config_byte(pdev, offset + 3, 1);
by
outb((u8)value, 0xCFC + (reg & 3));
from pci_conf1_write deep in the callstack.

Is there any workaround known or something. Turning legacy usb off is not an option, I want to control grub.

Most likely the PCI config space write is causing some SMM trap and the BIOS is taking forever to do whatever it's doing. It doesn't report that the handoff failed, though?

I'd look for a BIOS update..

author
#3 lore raw
Quoted 13 lines · Robert Hancock
Quoted 12 lines · Jiri Slaby

I don't know since which moment (maybe I changed something in bios, but usb
legacy kbd was ever enabled), but quirk_usb_disable_ehci takes for both of my
ehci controllers 1.5 s.

More precisely, the time is spent in
pci_write_config_byte(pdev, offset + 3, 1);
by
outb((u8)value, 0xCFC + (reg & 3));
from pci_conf1_write deep in the callstack.

Quoted 7 lines
Quoted 3 lines

Is there any workaround known or something. Turning legacy usb off is not an
option, I want to control grub.

Most likely the PCI config space write is causing some SMM trap and the BIOS is taking forever to do whatever it's doing. It doesn't report that the handoff failed, though?

Some time ago there was something like that:
http://kerneltrap.org/mailarchive/linux-kernel/2007/9/24/273262
I haven't seen it since that time.

Quoted 1 line

I'd look for a BIOS update..

I can't find any, bad luck. It's some kind of testing machine sample...

Nevermind, it obviously doesn't occur during kexeced kernel bootup, I can live with that :).