From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vassilis Virvilis Date: Tue, 24 May 2005 12:28:04 +0000 Subject: 2.6.12-rc4+ & udev kobject problem Message-Id: <42931DD4.4040200@iit.demokritos.gr> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------060706080807000709070801" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------060706080807000709070801 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I am not sure it is really kobject related but... My setup: custom made initramfs kernel 2.6.12.rc4 git version udev git version module-init-tools-3.2-pre5 for /sbin/hotplug I use #!/bin/sh if [ ! -L /sys/$DEVPATH/driver ]; then modprobe $MODALIAS; # I want to send the event only after mounting the system # otherwise the sytem takes forever to boot [ -d /sys/class ] && /sbin/udevsend $1; fi and for /sbin/coldplug right after start_udev in my init script #!/bin/sh BUSSES="pci usb"; for bus in $BUSSES; do for DEV in /sys/bus/$bus/devices/*; do [ -L "$DEV" ] && modprobe `cat $DEV/modalias`; done; done; Now for hardware I have two setups. a) qemu: everything works. I need more testing with more modules instead of builtin but looks promising b) a VIA board with VIA processor: There I have big problems to boot. At first I thought it was the IDE stuff so I remove it (no good), and since this is not an option make it builtin. backtraces with modules were giving errors in ide_setup_pci_device. The atttached backtrace is with builtin IDE, USB and SCSI. c) I also tried this to one normal PC with also erratic behavior (but I can't tell if it is the same) I am not even sure it's kobject related but I thought I should mention it because it is hard to take this backtraces if you don't have a machine to spare for netconsole logging... .bill --------------060706080807000709070801 Content-Type: text/x-diff; name="bug-kobject.txt" Content-Disposition: inline; filename="bug-kobject.txt" Content-Transfer-Encoding: quoted-printable Linux version 2.6.12-rc4 (bill@doddo) (=DD=EA=E4=EF=F3=E7 gcc 3.3.5 (Debi= an 1:3.3.5-12)) #1 Tue May 24 12:22:55 EEST 2005 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000e000000 (usable) BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 224MB LOWMEM available. On node 0 totalpages: 57344 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 53248 pages, LIFO batch:31 HighMem zone: 0 pages, LIFO batch:1 DMI not present. ACPI: Unable to locate RSDP Allocating PCI resources starting at 0e000000 (gap: 0e000000:f1ff0000) Built 1 zonelists Kernel command line: vga=3Dextended rw root=3D/dev/hda4 break netconsole=3D@192.168.15.7/,@192.168.15.1/ netconsole: local port 6665 netconsole: local IP 192.168.15.7 netconsole: interface eth0 netconsole: remote port 6666 netconsole: remote IP 192.168.15.1 netconsole: remote ethernet address ff:ff:ff:ff:ff:ff No local APIC present or hardware disabled mapped APIC to ffffd000 (011c1000) Initializing CPU#0 PID hash table entries: 1024 (order: 10, 16384 bytes) Detected 733.674 MHz processor. Using tsc for high-res timesource Console: colour VGA+ 80x50 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 199000k/229376k available (1841k kernel code, 29808k reserved, 90= 9k data, 180k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... = Ok. Calibrating delay loop... 1441.79 BogoMIPS (lpj=3D720896) Mount-cache hash table entries: 512 CPU: After generic identify, caps: 0381b83f 00000000 00000000 00000000 00000000 00000000 00000000 CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line) CPU: L2 Cache: 64K (32 bytes/line) CPU: After all inits, caps: 0381b93f 00000000 00000000 00000000 00000000 000000dd 00000000 CPU: Centaur VIA Nehemiah stepping 08 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. checking if image is initramfs... it is Freeing initrd memory: 24700k freed NET: Registered protocol family 16 PCI: PCI BIOS revision 2.10 entry at 0xfb0c0, last bus=3D1 PCI: Using configuration type 1 mtrr: v2.0 (20020519) ACPI: Subsystem revision 20050309 ACPI: Interpreter disabled. SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Via IRQ fixup Boot video device is 0000:01:00.0 Badness in kref_get at lib/kref.c:32 [] dump_stack+0x17/0x20 [] kref_get+0x31/0x40 [] kobject_get+0x14/0x20 [] kobject_init+0x2c/0x50 [] kobject_register+0x17/0x60 [] mod_sysfs_setup+0x3f/0xb0 [] load_module+0x733/0x9c0 [] sys_init_module+0x5f/0x1f0 [] syscall_call+0x7/0xb Unable to handle kernel NULL pointer dereference at virtual address 00000= 000 printing eip: c01a75a9 *pde =3D 00000000 Oops: 0002 [#1] PREEMPT Modules linked in: CPU: 0 EIP: 0060:[] Not tainted VLI EFLAGS: 00010282 (2.6.12-rc4) EIP is at kobject_add+0x59/0xc0 eax: c032cb08 ebx: ce893ac8 ecx: 00000000 edx: ce893ae4 esi: cdf42000 edi: c032cb10 ebp: cdf43ed8 esp: cdf43ecc ds: 007b es: 007b ss: 0068 Process modprobe (pid: 22, threadinfo=3Dcdf42000 task=3Dcdfd1a40) Stack: ce893ac8 ffffffea 00000000 cdf43ef0 c01a762d ce893ac8 ce893ac8 ce893ac8 ce893a80 cdf43f08 c012f3af ce893ac8 ce800000 00000000 ce893a80 cdf43f94 c0130473 ce893a80 00000000 00000000 00000030 00000780 00000780 00000758 Call Trace: [] show_stack+0x75/0x90 [] show_registers+0x119/0x180 [] die+0xd5/0x160 [] do_page_fault+0x2f8/0x682 [] error_code+0x4f/0x60 [] kobject_register+0x1d/0x60 [] mod_sysfs_setup+0x3f/0xb0 [] load_module+0x733/0x9c0 [] sys_init_module+0x5f/0x1f0 [] syscall_call+0x7/0xb Code: 00 89 c7 58 8b 43 28 85 c0 74 2f be 00 e0 ff ff 21 e6 ff 46 14 85 f= f 74 64 8b 43 28 83 c0 08 8d 53 1c 8b 48 04 89 43 1c 89 50 04 <89> 11 89 4a= 04 8b 46 08 ff 4e 14 a8 08 75 3c 89 7b 24 53 e8 af <6>note: modprobe[22] exited with preempt_count 1 PCI: Using IRQ router VIA [1106/0686] at 0000:00:07.0 Initializing Cryptographic API PCI: Disabling Via external APIC routing serio: i8042 AUX port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize e100: Intel(R) PRO/100 Network Driver, 3.3.6-k2-NAPI e100: Copyright(c) 1999-2004 Intel Corporation 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004) 8139cp: pci dev 0000:00:0f.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip 8139cp: Try the "8139too" driver instead. 8139too Fast Ethernet driver 0.9.27 PCI: Found IRQ 11 for device 0000:00:0f.0 PCI: Sharing IRQ 11 with 0000:00:07.5 eth0: RealTek RTL8139 at 0xce898000, 00:05:8a:00:82:4b, IRQ 11 eth0: Identified 8139 chip type 'RTL-8139C' netconsole: device eth0 not up yet, forcing it eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 netconsole: carrier detect appears untrustworthy, waiting 4 seconds netconsole: network logging started Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=3D= xx VP_IDE: IDE controller at PCI slot 0000:00:07.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1 ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:pio, hdd:pio Probing IDE interface ide0... Probing IDE interface ide1... Probing IDE interface ide0... Probing IDE interface ide1... Probing IDE interface ide2... Probing IDE interface ide3... Probing IDE interface ide4... Probing IDE interface ide5... libata version 1.10 loaded. usbmon: debugs is not available ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) USB Universal Host Controller Interface driver v2.2 PCI: Found IRQ 11 for device 0000:00:07.2 PCI: Sharing IRQ 11 with 0000:00:07.3 uhci_hcd 0000:00:07.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:07.2: irq 11, io base 0x0000e100 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected PCI: Found IRQ 11 for device 0000:00:07.3 PCI: Sharing IRQ 11 with 0000:00:07.2 uhci_hcd 0000:00:07.3: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2) uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:07.3: irq 11, io base 0x0000e200 hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usb 1-1: new full speed USB device using uhci_hcd and address 2 scsi0 : SCSI emulation for USB Mass Storage devices usbcore: registered new driver usb-storage USB Mass Storage support registered. mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning IP: routing cache hash table of 2048 buckets, 16Kbytes TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) NET: Registered protocol family 1 Freeing unused kernel memory: 180k freed input: AT Translated Set 2 keyboard on isa0060/serio0 Vendor: Generic Model: Rev: Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 125952 512-byte hdwr sectors (64 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through SCSI device sda: 125952 512-byte hdwr sectors (64 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through sda: sda4 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 usb-storage: device scan complete usb 1-1: USB disconnect, address 2 modprobe: FATAL: Module usb:v08ECp0834d0100dc00dsc00dp00ic08isc06ip50 not= found. --------------060706080807000709070801-- ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel