Skip to contentSkip to conversation

acpi kills boot from usb flash media - 2.6.7 kernel

DISCUSSION Barry Dunn 1 participant 2 messages Jul 12, 2004 – Jul 15, 2004 1 message not in the archive ACPI

lore
Share & tools
lore

Barry Dunn

author
#0 lore raw

I'm trying to boot from a usb flash memory stick on my laptop (so I can encrypt the whole drive), it works fine in all the usb ports with acpi=off in the boot parameters, but with acpi enabled it usually hangs at the line "ACPI: Subsystem revision 20040326". I say usually because that's the case in 4 of the 5 usb ports, but curiously it tends to stutter on a bit further in the remaining port, and twice (out of dozens of attempts with different parameters etc) it has successfully booted from that port with acpi enabled. It's random however, and I couldn't reproduce either success.

With acpi debug enabled, in the 'good' port it hangs either at "Executing all Device _STA and_INI methods:" or "Completing Region/Field/Buffer/Package initialization:", in the other ports it hangs at "ACPI Namespace successfully loaded at root c0495a3c".

The second time it worked, I'd noticed a small pause not normally there (less than 5 seconds) after the line "Uncompressing Linux... Ok, booting the kernel", which makes me suspect the speed of the flash drive (from which an initrd is loaded) is the problem, and that perhaps that early delay was what enabled it to boot. Doubly so because booting from a (obviously faster) usb hard drive enclosure works fine with acpi in all usb ports.

(Speed doesn't explain why one usb port does better though, hdparm -t shows no difference between them.)

Could anyone give me pointers on how to introduce a delay in acpi initialization, or suitably early in the boot process, to see if that'll do the trick? If anyone's come across a similar problem and has other suggestions, all the better. The laptop is a rebadge of a Uniwill system, called an "EI System 4405". The dsdt does have some compile errors which I managed to get rid of, but there's no difference between using the modified or original dsdt. (From looking into the errors, the dsdt seems similar to some Fujitsu-Siemens and Asus models). I've tried all acpi related options listed in kernel-parameters.txt, removing io-apic and local apic from the kernel, and combinations thereof, but no joy. Basically I'm a bit stuck. :)

I've attached the dmesg, output of lspci -vv and cat /proc/interrupts are below, any suggestions are appreciated.

Cheers,

Barry

cat /proc/interrupts

CPU0

  0:     115836    IO-APIC-edge  timer
  1:        309    IO-APIC-edge  i8042
  8:          2    IO-APIC-edge  rtc
  9:          0   IO-APIC-level  acpi
 12:       1955    IO-APIC-edge  i8042
 14:       5608    IO-APIC-edge  ide0
 15:         19    IO-APIC-edge  ide1
 16:          0   IO-APIC-level  uhci_hcd
 17:          8   IO-APIC-level  Intel 82801DB-ICH4, eth0
 18:          0   IO-APIC-level  uhci_hcd
 19:          0   IO-APIC-level  uhci_hcd
 23:        123   IO-APIC-level  ehci_hcd
NMI:          0 
LOC:     115786 
ERR:          0
MIS:          0

lspci -vv

0000:00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM
Controller/Host-Hub Interface (rev 03) Subsystem: Uniwill Computer
Corp: Unknown device 9000 Control: I/O- Mem+ BusMaster+ SpecCycle-
MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF-
FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- Latency:
0 Region 0: Memory at c0000000 (32-bit, prefetchable)

	Capabilities: [e4] #09 [1105]

0000:00:02.0 VGA compatible controller: Intel Corp. 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
(prog-if 00 [VGA]) Subsystem: Uniwill Computer Corp: Unknown device 9000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0
Interrupt: pin A routed to IRQ 16
Region 0: Memory at d0000000 (32-bit, prefetchable) Region 1: Memory at dff80000 (32-bit, non-prefetchable) [size=512K]
Capabilities: [d0] Power Management version 1
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0
PME-

0000:00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev
02) (prog-if 00 [UHCI]) Subsystem: Uniwill Computer Corp: Unknown device
9011 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0

	Interrupt: pin A routed to IRQ 16
	Region 4: I/O ports at df20 [size=32]

0000:00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev
02) (prog-if 00 [UHCI]) Subsystem: Uniwill Computer Corp: Unknown device
9011 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0

	Interrupt: pin B routed to IRQ 19
	Region 4: I/O ports at df40 [size=32]

0000:00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev
02) (prog-if 00 [UHCI]) Subsystem: Uniwill Computer Corp: Unknown device
9011 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0

	Interrupt: pin C routed to IRQ 18
	Region 4: I/O ports at df80 [size=32]

0000:00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI
Controller (rev 02) (prog-if 20 [EHCI]) Subsystem: Uniwill Computer
Corp: Unknown device 9110 Control: I/O- Mem+ BusMaster+ SpecCycle-
MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF-
FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0 Interrupt: pin D routed to IRQ 23
Region 0: Memory at dff7bc00 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA
PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0
PME- Capabilities: [58] #0a [2080]

0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface
to PCI Bridge (rev 82) (prog-if 00 [Normal decode]) Control: I/O+ Mem+
BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+
FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR+ Latency: 0

	Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
	I/O behind bridge: 0000c000-0000cfff
	Memory behind bridge: dfd00000-dfdfffff
	BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-

0000:00:1f.0 ISA bridge: Intel Corp. 82801DB (ICH4) LPC Bridge (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0

0000:00:1f.1 IDE interface: Intel Corp. 82801DB (ICH4) Ultra ATA 100
Storage Controller (rev 02) (prog-if 8a [Master SecP PriP]) Subsystem:
Uniwill Computer Corp: Unknown device 9011 Control: I/O+ Mem+ BusMaster+
SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap-
66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort-

Quoted 1 line

SERR- <PERR-

Latency: 0
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at <unassigned>
Region 1: I/O ports at <unassigned>
Region 2: I/O ports at <unassigned>
Region 3: I/O ports at <unassigned>
Region 4: I/O ports at ffa0 [size=16]
Region 5: Memory at 10000000 (32-bit, non-prefetchable) [size=1K]

0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev
02) Subsystem: Uniwill Computer Corp: Unknown device 9011
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Interrupt: pin B
routed to IRQ 17 Region 4: I/O ports at 0540 [size=32]

0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4)
AC'97 Audio Controller (rev 02) Subsystem: Uniwill Computer Corp:
Unknown device 9011 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV-
VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF-
FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0 Interrupt: pin B routed to IRQ 17

	Region 0: I/O ports at e000
	Region 1: I/O ports at e100 [size=64]
	Region 2: Memory at 10000400 (32-bit, non-prefetchable) [size=512]
	Region 3: Memory at 10000600 (32-bit, non-prefetchable) [size=256]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA

PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0
PME-

0000:00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller
(rev 02) (prog-if 00 [Generic]) Subsystem: Uniwill Computer Corp: Unknown device
4007 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 0
Interrupt: pin B routed to IRQ 17
Region 0: I/O ports at e200
Region 1: I/O ports at e300 [size=128]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA
PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0
PME-

0000:01:0c.0 Ethernet controller: National Semiconductor Corporation
DP83815 (MacPhyter) Ethernet Controller Subsystem: Uniwill Computer Corp:
Unknown device 9011 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV-
VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF-
FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (2750ns min, 13000ns max) Interrupt: pin A routed to IRQ
17 Region 0: I/O ports at c800 [size=dfde0000]
Region 1: Memory at dfdff000 (32-bit, non-prefetchable) [size=4K] Expansion ROM at 00010000 [disabled]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=320mA
PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0
PME+

author
#2 lore raw
In reply to a message not in the archive
Quoted 15 lines · On Mon, 12 Jul 2004 22:49:31 +0100 Barry Dunn…

I'm trying to boot from a usb flash memory stick on my laptop (so I can encrypt the whole drive), it works fine in all the usb ports with acpi=off in the boot parameters, but with acpi enabled it usually hangs at the line "ACPI: Subsystem revision 20040326". I say usually because that's the case in 4 of the 5 usb ports, but curiously it tends to stutter on a bit further in the remaining port, and twice (out of dozens of attempts with different parameters etc) it has successfully booted from that port with acpi enabled. It's random however, and I couldn't reproduce either success.

With acpi debug enabled, in the 'good' port it hangs either at "Executing all Device _STA and_INI methods:" or "Completing Region/Field/Buffer/Package initialization:", in the other ports it hangs at "ACPI Namespace successfully loaded at root c0495a3c".

Quoted 8 lines

The second time it worked, I'd noticed a small pause not normally there (less than 5 seconds) after the line "Uncompressing Linux... Ok, booting the kernel", which makes me suspect the speed of the flash drive (from which an initrd is loaded) is the problem, and that perhaps that early delay was what enabled it to boot. Doubly so because booting from a (obviously faster) usb hard drive enclosure works fine with acpi in all usb ports.

<snip>

Seems obvious now I suppose, but I can confirm the speed of the boot media was causing the hang with acpi enabled. The usb stick I was using is a PQI Traveling Disk, and I recently got a newer one of the same model. On checking with hdparm -t it turns out the new one is a bit faster, averaging 7.6 mb/sec while the one I was using averages 4.8 mb/sec. Well, that bit extra makes all the difference, the faster one boots no problem with acpi enabled, every time, while the slower one almost always hangs on acpi, regardless of options like nolapic noapic pci=noacpi acpi=noirq etc (but boots ok with acpi off). In all cases a 4mb initrd is being used, I guess getting that loaded fast enough is where the problem lies?

Anyway, if anyone's having a similar problem, just buy a new stick with "Plus" wrote on it.. well, worked for me. :)

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click