2002-02-07 01:47:57

by Alessandro Suardi

[permalink] [raw]
Subject: 2.5.4-pre1 (decoded) oops on boot in device_create_file

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

>>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")


2002-02-07 22:23:27

by Peter Osterlund

[permalink] [raw]
Subject: Re: 2.5.4-pre1 (decoded) oops on boot in device_create_file

Alessandro Suardi <[email protected]> writes:

> 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.

--- linux/drivers/pcmcia/cardbus.c.old Thu Feb 7 23:09:54 2002
+++ linux/drivers/pcmcia/cardbus.c Thu Feb 7 23:17:45 2002
@@ -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;

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340

2002-02-07 22:28:17

by Patrick Mochel

[permalink] [raw]
Subject: Re: 2.5.4-pre1 (decoded) oops on boot in device_create_file


On 7 Feb 2002, Peter Osterlund wrote:

> Alessandro Suardi <[email protected]> writes:
>
> > 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 ;)



2002-02-08 00:09:07

by Alessandro Suardi

[permalink] [raw]
Subject: Re: 2.5.4-pre1 (decoded) oops on boot in device_create_file

Patrick Mochel wrote:
>
> On 7 Feb 2002, Peter Osterlund wrote:
>
> > Alessandro Suardi <[email protected]> writes:
> >
> > > 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.

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

> 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")