Re: 2.6.24 panics initializing ne2k in mips.

Samuel Masham
2008-02-22T14:17:58Z

Hi all,

On Tue, Jan 29, 2008 at 8:16 PM, Ralf Baechle <ralf@linux-mips.org> wrote:
> On Mon, Jan 28, 2008 at 02:17:37AM -0600, Rob Landley wrote:
>
> > The 2.6.23 kernel built for mips with the attached .config works fine for me
> > under qemu (both big endian and little endian), but a 2.6.24 mips kernel
> > segfaults initializing the ne2k driver (again when run under qemu).
> >
> > I've traced it to this commit:
>
> Known problem. The issue only hits when probing IRQs as the NE2000 driver
> does. This got dropped on the floor in December.

In 2.6.24.2 under qemu (default config as well as my one) its still
dies at this point.

Unfortunately just reversing this patch dosen't help for me.

It seems that handle_IRQ_event is passed a null pointer for the action.

[17179569.896000] [<80067544>] handle_IRQ_event+0x148/0x154
[17179569.896000] [<800692dc>] handle_percpu_irq+0x4c/0xbc
[17179569.896000] [<80010d88>] plat_irq_dispatch+0xe8/0x110
[17179569.896000] [<80011424>] ret_from_irq+0x0/0x4
[17179569.896000] [<80069680>] probe_irq_on+0xe0/0x304
[17179569.896000] [<80384148>] ne_probe1+0x5c0/0x798
[17179569.896000] [<80384434>] do_ne_probe+0x114/0x1f8
[17179569.896000] [<80384568>] ne_probe+0x50/0x94
[17179569.896000] [<803839b8>] probe_list2+0x70/0x9c
[17179569.896000] [<80383a98>] net_olddevs_init+0xb4/0xf0
[17179569.896000] [<80367b44>] kernel_init+0x14c/0x3b0
[17179569.896000] [<80013350>] kernel_thread_helper+0x10/0x18

....

If i just avoid the probing by giving the correct irq (23?) to the ne
driver things still look very odd...

eg:-

[17179569.908000] eth0: interrupt from stopped card

and when trying to mount the root fs

[17179574.636000] eth0: Interrupted while interrupts are masked!
isr=0x40 imr=0x0.
[17179574.640000] eth0: Interrupted while interrupts are masked!
isr=0x0 imr=0x0.
[17179574.644000] eth0: Interrupted while interrupts are masked!
isr=0x2 imr=0x0.
[17179574.648000] eth0: Interrupted while interrupts are masked!
isr=0x0 imr=0x0.
[17179574.652000] eth0: Interrupted while interrupts are masked!
isr=0x40 imr=0x0.

though it has mounted the root fs a few times with all that going on....

Is this all known issues or should I dig further?

Samuel

>
> Ralf
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>