Skip to contentSkip to conversation

Atari TT

DISCUSSION Michael Schmitz 3 participants 7 messages Jan 24, 2013 – Jan 25, 2013 10 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw

Thorsten,

Quoted 4 lines
Quoted 2 lines

Does the other kernel show any boot progress on the screen at all, after the bootstrap has finished loading and passed control to the kernel?

Coloured pixels.

If the other kernel (nonet) shows a proper boot screen, that's a kernel size issue.

On the other hand:

Quoted 6 lines
Quoted 4 lines

Can you send me the contents of arch/m68k/atari/config.c and arch/m68k/atari/atariints.c from the patched source tree you used for these kernels?

Sure:

That does not include my more recent patches to the interrupt code. I suspect you may be using the atari_ethernec driver instead of the generic ne one as well. I'll check your kernel image to see what it does use.

The ne.c network driver does not appear to tolerate interrupts arriving before the device has been configured, at least in the early boot phases. I'm uncertain whether it would work even with my latest patches applied - maybe I can find some time on the weekend to test that.

Geert: is there some way for kernel network drivers to figure out whether the network subsystem has been initialized, and hold off interrupt processing before that time? I'm using 'if (netif_running(dev))' in atari_ethernec but that does not appear to prevent the lockup.

Cheers,

Michael

#11 lore raw
Quoted 4 lines · Michael Schmitz

The ne.c network driver does not appear to tolerate interrupts arriving before the device has been configured, at least in the early boot phases. I'm uncertain whether it would work even with my latest patches applied - maybe I can find some time on the weekend to test that.

Stupid ISA-only driver without IRQ sharing support...

The hydra and zorro8390 driver should handle that case fine, as interrupts are shared on Amiga.

Quoted 4 lines

Geert: is there some way for kernel network drivers to figure out whether the network subsystem has been initialized, and hold off interrupt processing before that time? I'm using 'if (netif_running(dev))' in atari_ethernec but that does not appear to prevent the lockup.

Doesn't the driver know when it's configured?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#12 lore raw

Geert,

Quoted 6 lines
Quoted 4 lines

The ne.c network driver does not appear to tolerate interrupts arriving before the device has been configured, at least in the early boot phases. I'm uncertain whether it would work even with my latest patches applied - maybe I can find some time on the weekend to test that.

Stupid ISA-only driver without IRQ sharing support...

Indeed - but that may be my old hacked driver which does have IRQ sharing.

Quoted 2 lines

The hydra and zorro8390 driver should handle that case fine, as interrupts are shared on Amiga.

But these will only generate interrupts if the card has something to send, or receive has been enabled. The timer polling seems to be the problem here.

Quoted 6 lines
Quoted 4 lines

Geert: is there some way for kernel network drivers to figure out whether the network subsystem has been initialized, and hold off interrupt processing before that time? I'm using 'if (netif_running(dev))' in atari_ethernec but that does not appear to prevent the lockup.

Doesn't the driver know when it's configured?

It does - it will spit out 'interrupt from stopped card' in that case. That's the last message I see from the kernel before it locks up (haven't tried in a while, at least that's what happened a year or two ago). The same still happens when loading the driver as a module - a single message of the kind, nothing more (but the kernel keeps running).

I would have thought netif_running(dev) returns false before the device has been started, but that's wrong, apparently.

Cheers,

Michael

#13 lore raw
Quoted 7 lines · Michael Schmitz
Quoted 6 lines
Quoted 4 lines

The ne.c network driver does not appear to tolerate interrupts arriving before the device has been configured, at least in the early boot phases. I'm uncertain whether it would work even with my latest patches applied - maybe I can find some time on the weekend to test that.

Stupid ISA-only driver without IRQ sharing support...

Quoted 7 lines

Indeed - but that may be my old hacked driver which does have IRQ sharing.

Quoted 2 lines

The hydra and zorro8390 driver should handle that case fine, as interrupts are shared on Amiga.

But these will only generate interrupts if the card has something to send, or receive has been enabled. The timer polling seems to be the problem here.

The point of IRQ sharing is that multiple devices use the same interrupt line. So it's about _another_ device generating the interrupt.
Both zorro8390 and hydra use IRQ_AMIGA_PORTS. As does Gayle IDE. Hence if the IDE hardware on A4000 triggers and interrupt, the interrupt handler of
zorro8390 and hydra will be called as well. Since I'm not aware of any issues with zorro8390 and hydra in A4000, I assume zorro8390 and hydra handle this, while ne doesn't.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

Geert: is there some way for kernel network drivers to figure out whether the network subsystem has been initialized, and hold off interrupt processing before that time? I'm using 'if (netif_running(dev))' in atari_ethernec but that does not appear to prevent the lockup.

Doesn't the driver know when it's configured?

Quoted 8 lines

It does - it will spit out 'interrupt from stopped card' in that case. That's the last message I see from the kernel before it locks up (haven't tried in a while, at least that's what happened a year or two ago). The same still happens when loading the driver as a module - a single message of the kind, nothing more (but the kernel keeps running).

I would have thought netif_running(dev) returns false before the device has been started, but that's wrong, apparently.

How does zorro8390 and hydra handle it? They use __ei_interrupt, while ne uses eip_interrupt, but the latter just calls the former?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#14 lore raw

Geert,

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

The hydra and zorro8390 driver should handle that case fine, as interrupts are shared on Amiga.

But these will only generate interrupts if the card has something to send, or receive has been enabled. The timer polling seems to be the problem here.

The point of IRQ sharing is that multiple devices use the same interrupt line. So it's about _another_ device generating the interrupt.

You're right of course.

Quoted 6 lines

Both zorro8390 and hydra use IRQ_AMIGA_PORTS. As does Gayle IDE. Hence if the IDE hardware on A4000 triggers and interrupt, the interrupt handler of
zorro8390 and hydra will be called as well. Since I'm not aware of any issues with zorro8390 and hydra in A4000, I assume zorro8390 and hydra handle this, while ne doesn't.

Turns out ne does - atari_ethernec did't. I could boot a kernel with ne builtin, got the same message as always but this time it didn't hang:

NE*000 ethercard probe at 0x300:
ne ne (unregistered net_device): interrupt from stopped card 00:00:e8:5d:58:cd
eth0: RTL8019 found at 0x300, using IRQ 64.
sda: AHDI sda1 sda2 sda3 XGM< sda4 sda5 >

That's good enough for me.

Quoted 14 lines
Quoted 14 lines
Quoted 7 lines
Quoted 5 lines

Geert: is there some way for kernel network drivers to figure out whether the network subsystem has been initialized, and hold off interrupt processing before that time? I'm using 'if (netif_running(dev))' in atari_ethernec but that does not appear to prevent the lockup.

Doesn't the driver know when it's configured?

It does - it will spit out 'interrupt from stopped card' in that case. That's the last message I see from the kernel before it locks up (haven't tried in a while, at least that's what happened a year or two ago). The same still happens when loading the driver as a module - a single message of the kind, nothing more (but the kernel keeps running).

Quoted 5 lines
Quoted 2 lines

I would have thought netif_running(dev) returns false before the device has been started, but that's wrong, apparently.

How does zorro8390 and hydra handle it? They use __ei_interrupt, while ne uses eip_interrupt, but the latter just calls the former?

I'll have to check that - as I said, it seems to have gone away with the current ne driver.

Baffled,

Michael

#15 lore raw
In reply to Michael Schmitz

Michael Schmitz dixit:

Quoted 2 lines

If the other kernel (nonet) shows a proper boot screen, that's a kernel size issue.

They have very few difference, though.

Quoted 3 lines

That does not include my more recent patches to the interrupt code. I suspect you may be using the atari_ethernec driver instead of the generic ne one as well. I'll check your kernel image to see what it does use.

I’m using Geert’s m68k-queue branch plus Alan’s patch. Is that not correct?

And yes, of course I selected the EtherNAT and EtherNEC drivers.

bye,
//mirabilos

Signature · 4 lines
„nein: BerliOS und Sourceforge sind Plattformen für Projekte, github ist
eine Plattform für Einzelkämpfer“
	-- dieses Zitat ist ein Beweis dafür, daß auch ein blindes Huhn
	   mal ein Korn findet, bzw. – in diesem Fall – Recht haben kann
#16 lore raw
Quoted 1 line · Thorsten Glaser

I’m using Geert’s m68k-queue branch plus Alan’s patch.

JFYI that one is rebased on every rc. It's actual source tree is always identical to master, but it has "clean" commits against Linus' tree, unlike master.

If you don't want to run rc kernels, you want to use m68k-v3.x (with x = 7 currently) instead.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds