> I still need to see is the USB debug messages that come out when
> you actually plug the device in

With ehci-hcd loaded? or no?

> No, APIC. It's a separate config option under "processor features".

Ah, thats disabled too. :)

> Another useful thing to enable is "debug memory allocations"

Gotcha, enabled.

> So build your system with modular EHCI, prevent it from loading that
> module at boot time, boot it, and tell me what messages come out on
> the non-X11 console (alt-sysrq-8) when you "modprobe ehci-hcd".

Okay. After hours of working and wrestling with obsolete hardware, I set up a serial terminal/kernel message/logging thing that allowed me to completely log a session from boot to crash.

The system is running 2.4.22-rc2, with ehci-hcd compiled as a module. No USB devices are plugged in at boot, nor during the startup process. When the system is completely booted, the sysrq things are set, and ehci-hcd is loaded. Finally, a USB device is plugged in, and the kernel is never seen, nor heard from again.

START SESSION LOG
Linux version 2.4.22-rc2 ([EMAIL PROTECTED]) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #3 Tue Aug 12 23:14:10 EDT 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000ce000 - 00000000000d6008 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffb00000 - 00000000ffc00000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: ro root=/dev/hdc6 parport=0x378,7,3 console=ttyS0,9600n8 console=tty0
Initializing CPU#0
Detected 2400.168 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 4784.12 BogoMIPS
Memory: 515448k/524224k available (1812k kernel code, 8388k reserved, 606k data, 88k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 04
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfdb81, last bus=3
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Using IRQ router PIIX [8086/24c0] at 00:1f.0
PCI: Found IRQ 5 for device 00:1f.1
PCI: Sharing IRQ 5 with 00:1d.2
PCI: Found IRQ 10 for device 00:1f.3
PCI: Sharing IRQ 10 with 00:1f.5
PCI: Sharing IRQ 10 with 03:05.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]).
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
Intel(R) PRO/100 Network Driver - version 2.3.18-k1
Copyright (c) 2003 Intel Corporation


PCI: Found IRQ 10 for device 03:05.0
PCI: Sharing IRQ 10 with 00:1f.3
PCI: Sharing IRQ 10 with 00:1f.5
e100: eth0: Intel(R) PRO/100 Network Connection

Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Intel i845 chipset
agpgart: AGP aperture is 64M @ 0xe0000000
[drm] Initialized tdfx 1.0.0 20010216 on minor 0
[drm] AGP 0.99 on Intel i845 @ 0xe0000000 64MB
[drm] Initialized radeon 1.1.1 20010405 on minor 1
[drm] AGP 0.99 on Intel i845 @ 0xe0000000 64MB
[drm] Initialized i810 1.2.0 20010920 on minor 2
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH4: IDE controller at PCI slot 00:1f.1
PCI: Found IRQ 5 for device 00:1f.1
PCI: Sharing IRQ 5 with 00:1d.2
ICH4: chipset revision 1
ICH4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 33073H3, ATA DISK drive
hdb: TOSHIBA CD-ROM XM-6202B, ATAPI CD/DVD-ROM drive
blk: queue c039d500, I/O limit 4095Mb (mask 0xffffffff)
hdc: WDC WD1600JB-00DUA1, ATA DISK drive
hdd: RAITE RDR-108H DVDROM V1.7, ATAPI CD/DVD-ROM drive
blk: queue c039d954, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 60032448 sectors (30737 MB) w/2048KiB Cache, CHS=3736/255/63, UDMA(33)
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63, UDMA(100)
hdb: attached ide-cdrom driver.
hdb: ATAPI 32X CD-ROM drive, 256kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
hdd: attached ide-cdrom driver.
hdd: ATAPI 40X DVD-ROM drive, 256kB Cache, UDMA(33)
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 >
hdc: hdc1 < hdc5 hdc6 hdc7 hdc8 hdc9 >
Intel 810 + AC97 Audio, version 0.24, 22:26:06 Aug 12 2003
PCI: Found IRQ 10 for device 00:1f.5
PCI: Sharing IRQ 10 with 00:1f.3
PCI: Sharing IRQ 10 with 03:05.0
i810: Intel ICH4 found at IO 0xcc00 and 0xd000, MEM 0xdffffa00 and 0xdffff900, IRQ 10
i810: Intel ICH4 mmio at 0xe0825a00 and 0xe0827900
i810_audio: Primary codec has ID 0
i810_audio: Audio Controller supports 6 channels.
i810_audio: Defaulting to base 2 channel mode.
i810_audio: Resetting connection 0
i810_audio: Connection 0 with codec id 0
ac97_codec: AC97 Audio codec, id: ALG64 (Unknown)
i810_audio: AC'97 codec 0 supports AMAP, total channels = 2
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/usb-uhci.c: $Revision: 1.275 $ time 23:14:18 Aug 12 2003
host/usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:1d.0
host/usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 11
host/usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
Product: USB UHCI Root Hub
SerialNumber: d400
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 3 for device 00:1d.1
host/usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 3
host/usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
Product: USB UHCI Root Hub
SerialNumber: d800
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 5 for device 00:1d.2
PCI: Sharing IRQ 5 with 00:1f.1
host/usb-uhci.c: USB UHCI at I/O 0xdc00, IRQ 5
host/usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
Product: USB UHCI Root Hub
SerialNumber: dc00
hub.c: USB hub found
hub.c: 2 ports detected
host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <[EMAIL PROTECTED]>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 88k freed
login: alex
Password:
Last login: Tue Aug 12 06:33:36 on :0
[EMAIL PROTECTED] alex]$ su
Password:
[EMAIL PROTECTED] alex]# echo "1" > /proc/sys/kernel/sysrq
[EMAIL PROTECTED] alex]# echo "8" > /proc/sysrq-trigger
SysRq : Changing Loglevel
Loglevel set to 8
[EMAIL PROTECTED] alex]# echo "Loading ehci-hcd"
Loading ehci-hcd
[EMAIL PROTECTED] alex]# /sbin/modprobe ehci-hcd
PCI: Found IRQ 10 for device 00:1d.7
PCI: Setting latency timer of device 00:1d.7 to 64
ehci_hcd 00:1d.7: Intel Corp. 82801DB USB2
ehci_hcd 00:1d.7: irq 10, pci mem e095cc00
usb.c: new USB bus registered, assigned bus number 4
ehci_hcd 00:1d.7: ehci_start hcs_params 0x103206 dbg=1 cc=3 pcc=2 ordered !ppc ports=6
ehci_hcd 00:1d.7: ehci_start hcc_params 6871 thresh 7 uframes 1024 64 bit addr
ehci_hcd 00:1d.7: capability 0001 at 68
ehci_hcd 00:1d.7: reset command 080002 (park)=0 ithresh=8 period=1024 Reset HALT
ehci_hcd 00:1d.7: enabled 64bit PCI DMA
PCI: 00:1d.7 PCI cache line size set incorrectly (0 bytes) by BIOS/FW.
PCI: 00:1d.7 PCI cache line size corrected to 128.
ehci_hcd 00:1d.7: init command 010001 (park)=0 ithresh=1 period=1024 RUN
ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4
hcd.c: 00:1d.7 root hub device address 1
usb.c: kmalloc IF dbaa724c, numif 1
usb.c: new device strings: Mfr=3, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Manufacturer: Linux 2.4.22-rc2 ehci_hcd
Product: Intel Corp. 82801DB USB2
SerialNumber: 00:1d.7
hub.c: USB hub found
hub.c: 6 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: individual port over-current protection
hub.c: Single TT
hub.c: TT requires at most 8 FS bit times
hub.c: Port indicators are not supported
hub.c: power on to power good time: 0ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RRRRRR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface dbaa724c
usb.c: kusbd: /sbin/hotplug add 1
[EMAIL PROTECTED] alex]# echo "Plugging silitek keyboard (usb)"
Plugging silitek keyboard (usb)
[EMAIL PROTECTED] alex]#
END SESSION LOG


From that point forward, the system would respond to nothing, including 'magic' sysrq keys.

I hope this sheds a bit more light on the situation.

If you need debugging messages about a device that loads (without ehci-hcd, of course), then just say so.

TIA
--Alex



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to