From: Barry Dunn Subject: acpi kills boot from usb flash media - 2.6.7 kernel Date: Mon, 12 Jul 2004 22:49:31 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040712224931.7196f3dd@gen.aqui> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Mon__12_Jul_2004_22_49_31_+0100_m9JmNVWU3ORHU.od" Return-path: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org This is a multi-part message in MIME format. --Multipart=_Mon__12_Jul_2004_22_49_31_+0100_m9JmNVWU3ORHU.od Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- 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- SERR- TAbort- SERR- Region 1: I/O ports at Region 2: I/O ports at Region 3: I/O ports at 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- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-