Skip to contentSkip to conversation

2.5.4-pre1 (decoded) oops on boot in device_create_file

DISCUSSION Alessandro Suardi 3 participants 4 messages Feb 7, 2002 – Feb 8, 2002 Pcmcia

lore
Share & tools
lore
#0 lore raw

Must be my time of the year - first the kmem_cache_create one in
2.5.3-pre[45], now this one (should happen about PCI allocation of one of the Xircom CardBus resources):

ksymoops 2.4.1 on i686 2.5.3. Options used

     -v /usr/src/linux/vmlinux (specified)
     -K (specified)
     -L (specified)
     -o /lib/modules/2.5.4-pre1 (specified)
     -m /boot/System.map-2.5.4-pre1 (specified)

No modules in ksyms, skipping objects

CPU:    0
EIP:    0010:[<c01a6418>]     Not tainted

Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010246
eax: 00000000 ebx: cfd43048 ecx: 00000074 edx: cfd483c0
esi: c028e260 edi: fffffff4 ebp: cfd43048 esp: c13cbae4
ds: 0018 es: 0018 ss: 0018
Process swapper (pid: 1, stackpage=c13cb000)

Stack: cfd43048 c13dda20 cfd48340 cfd43000 c01db079 cfd43048 c028e260 302e3030 
       cfd43000 00000001 01000007 cfd43000 00000007 cfd43000 cfd43000 c01d8b49 
       cfd43000 cfd431cc c01e3b66 cfd43000 c13ddaa0 cfd43000 37363534 0000000b 
 [<c01db079>] [<c01d8b49>] [<c01e3b66>] [<c01e0f04>] [<c01e0de9>]
 [<c01e2314>] [<c012e000>] [<c0115105>] [<c011f13b>] [<c01e164d>]
 [<c014e367>] [<c014e542>] [<c01df9e0>] [<c01ee610>] [<c0105000>]
 [<c0105030>] [<c0105000>] [<c0107186>] [<c0105020>]
Code: 0f 0b eb b5 8d 74 26 00 53 8b 5c 24 08 8b 54 24 0c 85 db 74
Quoted 1 line
Quoted 1 line

EIP; c01a6418 <device_create_file+68/70> <=====

Code; c01a6418 <device_create_file+68/70>
00000000 <_EIP>:
Code; c01a6418 <device_create_file+68/70> <=====
0: 0f 0b ud2a <=====
Code; c01a641a <device_create_file+6a/70>
2: eb b5 jmp ffffffb9 <_EIP+0xffffffb9> c01a63d1 <device_create_file+21/70>
Code; c01a641c <device_create_file+6c/70>
4: 8d 74 26 00 lea 0x0(%esi,1),%esi
Code; c01a6420 <device_remove_file+0/40>
8: 53 push %ebx
Code; c01a6421 <device_remove_file+1/40>
9: 8b 5c 24 08 mov 0x8(%esp,1),%ebx
Code; c01a6425 <device_remove_file+5/40>
d: 8b 54 24 0c mov 0xc(%esp,1),%edx
Code; c01a6429 <device_remove_file+9/40>
11: 85 db test %ebx,%ebx
Code; c01a642b <device_remove_file+b/40>
13: 74 00 je 15 <_EIP+0x15> c01a642d <device_remove_file+d/40>

--alessandro

"If your heart is a flame burning brightly
you'll have light and you'll never be cold
And soon you will know that you just grow / You're not growing old"
(Husker Du, "Flexible Flyer")

#1 lore raw
Quoted 3 lines · Alessandro Suardi

Must be my time of the year - first the kmem_cache_create one in
2.5.3-pre[45], now this one (should happen about PCI allocation of one of the Xircom CardBus resources):

I had the same problem with 2.5.4-pre2. The patch below makes my laptop able to boot again, but I don't know if the patch is correct.

drivers/pcmcia/cardbus.c renamed from drivers/pcmcia/cardbus.c.old +4 -0
@@ -281,6 +281,10 @@
 
 		pci_setup_device(dev);
 
+		strcpy(dev->dev.name, dev->name);
+		strcpy(dev->dev.bus_id, dev->slot_name);
+		device_register(&dev->dev);
+
 		/* FIXME: Do we need to enable the expansion ROM? */
 		for (r = 0; r < 7; r++) {
 			struct resource *res = dev->resource + r;
Signature · 2 lines
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340
#2 lore raw
Quoted 8 lines · Peter Osterlund
Quoted 3 lines · Alessandro Suardi

Must be my time of the year - first the kmem_cache_create one in
2.5.3-pre[45], now this one (should happen about PCI allocation of one of the Xircom CardBus resources):

I had the same problem with 2.5.4-pre2. The patch below makes my laptop able to boot again, but I don't know if the patch is correct.

That looks ok, since cardbus behaves internally much like PCI.

I'll check if there's anything else that needs to happen.

-pat

Btw, thanks - I missed the original email in the sea of all the rest ;)

#3 lore raw
Quoted 9 lines · Patrick Mochel
Quoted 6 lines · Peter Osterlund
Quoted 3 lines · Alessandro Suardi

Must be my time of the year - first the kmem_cache_create one in
2.5.3-pre[45], now this one (should happen about PCI allocation of one of the Xircom CardBus resources):

Quoted 6 lines
Quoted 2 lines

I had the same problem with 2.5.4-pre2. The patch below makes my laptop able to boot again, but I don't know if the patch is correct.

That looks ok, since cardbus behaves internally much like PCI.

I'll check if there's anything else that needs to happen.

In the meantime I can confirm Peter's fix makes my laptop boot again :)

Quoted 1 line

Btw, thanks - I missed the original email in the sea of all the rest ;)

Uhm - well I could have directly addressed you as owner of the area
changes, so my fault.

Thanks,

--alessandro

"If your heart is a flame burning brightly
you'll have light and you'll never be cold
And soon you will know that you just grow / You're not growing old"
(Husker Du, "Flexible Flyer")