From: Vassilis Virvilis <vasvir@iit.demokritos.gr>
To: linux-hotplug@vger.kernel.org
Subject: 2.6.12-rc4+ & udev kobject problem
Date: Tue, 24 May 2005 12:28:04 +0000 [thread overview]
Message-ID: <42931DD4.4040200@iit.demokritos.gr> (raw)
[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: bug-kobject.txt --]
[-- Type: text/x-diff; name="bug-kobject.txt", Size: 8749 bytes --]
Linux version 2.6.12-rc4 (bill@doddo) (Ýêäïóç gcc 3.3.5 (Debian 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=extended rw root=/dev/hda4 break
netconsole=@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, 909k
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=720896)
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=1
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
[<c0103e37>] dump_stack+0x17/0x20
[<c01a81b1>] kref_get+0x31/0x40
[<c01a77c4>] kobject_get+0x14/0x20
[<c01a74dc>] kobject_init+0x2c/0x50
[<c01a7627>] kobject_register+0x17/0x60
[<c012f3af>] mod_sysfs_setup+0x3f/0xb0
[<c0130473>] load_module+0x733/0x9c0
[<c013078f>] sys_init_module+0x5f/0x1f0
[<c0102999>] syscall_call+0x7/0xb
Unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
c01a75a9
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in:
CPU: 0
EIP: 0060:[<c01a75a9>] 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=cdf42000 task=cdfd1a40)
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:
[<c0103e05>] show_stack+0x75/0x90
[<c0103f59>] show_registers+0x119/0x180
[<c0104145>] die+0xd5/0x160
[<c0111438>] do_page_fault+0x2f8/0x682
[<c01039ff>] error_code+0x4f/0x60
[<c01a762d>] kobject_register+0x1d/0x60
[<c012f3af>] mod_sysfs_setup+0x3f/0xb0
[<c0130473>] load_module+0x733/0x9c0
[<c013078f>] sys_init_module+0x5f/0x1f0
[<c0102999>] 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 ff
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=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.
next reply other threads:[~2005-05-24 12:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 12:28 Vassilis Virvilis [this message]
2005-05-25 0:22 ` 2.6.12-rc4+ & udev kobject problem Greg KH
2005-05-25 11:55 ` Vassilis Virvilis
2005-05-25 15:55 ` Greg KH
2005-05-25 17:11 ` Vassilis Virvilis
2005-05-25 17:18 ` Kay Sievers
2005-05-26 15:10 ` Vassilis Virvilis
2005-05-26 15:41 ` Vassilis Virvilis
2005-05-26 15:53 ` Greg KH
2005-05-26 16:00 ` Prarit Bhargava
2005-05-27 12:55 ` Vassilis Virvilis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42931DD4.4040200@iit.demokritos.gr \
--to=vasvir@iit.demokritos.gr \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).