linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage
@ 2012-07-29 23:09 Michael Schmitz
  2012-08-08 12:10 ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Schmitz @ 2012-07-29 23:09 UTC (permalink / raw)
  To: Thorsten Glaser; +Cc: debian-68k, Linux/m68k, Geert Uytterhoeven

Thorsten, Geert:

>>> I hear you - and I am still working on sanitizing the driver's
>>> interrupt use.
>>>
>>
>>
>> Oh, sounds like fun. Good luck! (ragnar76 is the one in need of
>> such drivers, he'd probably help testing, too.)
>>
>>
>
> Looks like I may have something working that will require a minimum of
> changes to the ne.c driver -
> need to run a few last tests though.

Looks like it sort of works - but now I'm stuck at the very same point
that got me
to playing tricks with shared interrupts in the first place: the
interrupt watchdog
kicks in and disables the eip_interrupt handler.

The good news: sharing the timer interrupt with other devices (USB
function on NetUSBee) is trival.

And the EtherNEC still functions even after its interrupts have been
disabled - how that works is a
bit of a mystery to me, but who am I to argue with serendipity?
Latency mushrooms to 50ms, and
data rate drops from 70k/sec to 20k/sec but it's still alive.

Geert - can we do anything other than using noirqdebug = 1 to ensure
this doesn't impact on network
performance?

Cheers,

  Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage
  2012-07-29 23:09 Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage Michael Schmitz
@ 2012-08-08 12:10 ` Geert Uytterhoeven
  2012-08-09  0:21   ` Michael Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2012-08-08 12:10 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: Thorsten Glaser, debian-68k, Linux/m68k

Hi Michael,

On Mon, Jul 30, 2012 at 1:09 AM, Michael Schmitz <schmitzmic@gmail.com> wrote:
> Looks like it sort of works - but now I'm stuck at the very same point
> that got me
> to playing tricks with shared interrupts in the first place: the
> interrupt watchdog
> kicks in and disables the eip_interrupt handler.

Oops...

> The good news: sharing the timer interrupt with other devices (USB
> function on NetUSBee) is trival.
>
> And the EtherNEC still functions even after its interrupts have been
> disabled - how that works is a
> bit of a mystery to me, but who am I to argue with serendipity?
> Latency mushrooms to 50ms, and
> data rate drops from 70k/sec to 20k/sec but it's still alive.

My initial guess was that the transmit code also checks for received
packets somewhere, but I can't seem to find this in the code. Oh well...

> Geert - can we do anything other than using noirqdebug = 1 to ensure
> this doesn't impact on network
> performance?

Hmm, so we do need IRQF_SHARED inside an #ifdef.
If we can't convince Paul, that'll mean another 8390 driver. Sigh...

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage
  2012-08-08 12:10 ` Geert Uytterhoeven
@ 2012-08-09  0:21   ` Michael Schmitz
  2012-08-09 20:01     ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Schmitz @ 2012-08-09  0:21 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Thorsten Glaser, debian-68k, Linux/m68k

Hi Geert,

>> Looks like it sort of works - but now I'm stuck at the very same point
>> that got me
>> to playing tricks with shared interrupts in the first place: the
>> interrupt watchdog
>> kicks in and disables the eip_interrupt handler.
>
> Oops...

Indeed :-)


>> The good news: sharing the timer interrupt with other devices (USB
>> function on NetUSBee) is trival.
>>
>> And the EtherNEC still functions even after its interrupts have been
>> disabled - how that works is a
>> bit of a mystery to me, but who am I to argue with serendipity?
>> Latency mushrooms to 50ms, and
>> data rate drops from 70k/sec to 20k/sec but it's still alive.
>
> My initial guess was that the transmit code also checks for received
> packets somewhere, but I can't seem to find this in the code. Oh well...

Possible ... but I don't think it's all that important really.

>> Geert - can we do anything other than using noirqdebug = 1 to ensure
>> this doesn't impact on network
>> performance?
>
> Hmm, so we do need IRQF_SHARED inside an #ifdef.
> If we can't convince Paul, that'll mean another 8390 driver. Sigh...

No, if we cant't convince Paul we have to make sure irqdebug is not
used, disabled in the config or explicitly vetoed by the m68k arch
setup code (call the noirqdebug kernel option parser from
atari/config,c). Best would be to have a IRQF_BORKED flag to tell the
irqdebug code not to worry about unserviced interrupts.

Any chance to get this sort of stuff accepted by Linus?

(Kidding - I'd settle for a note in the docs to disable IRQ debugging.
In use for a few weeks on my Falcon, with no adverse effects).

I still need to separate the USB driver stuff out of my chained
interrupt patch, and possibly clean up checkpatch violations. Should
be done with that by this weekend. How long until the current merge
window closes?

Cheers,

  Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage
  2012-08-09  0:21   ` Michael Schmitz
@ 2012-08-09 20:01     ` Geert Uytterhoeven
  2012-08-11  0:21       ` Michael Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2012-08-09 20:01 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: Thorsten Glaser, debian-68k, Linux/m68k

On Thu, Aug 9, 2012 at 2:21 AM, Michael Schmitz <schmitzmic@gmail.com> wrote:
> I still need to separate the USB driver stuff out of my chained
> interrupt patch, and possibly clean up checkpatch violations. Should
> be done with that by this weekend. How long until the current merge
> window closes?

There's no "current" merge window, as v3.6-rc1 was released almost one week
ago...
Expect the next merge window (for 3.7) to open around September 20.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage
  2012-08-09 20:01     ` Geert Uytterhoeven
@ 2012-08-11  0:21       ` Michael Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Schmitz @ 2012-08-11  0:21 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Thorsten Glaser, debian-68k, Linux/m68k

Geert,
> On Thu, Aug 9, 2012 at 2:21 AM, Michael Schmitz <schmitzmic@gmail.com> wrote:
>> I still need to separate the USB driver stuff out of my chained
>> interrupt patch, and possibly clean up checkpatch violations. Should
>> be done with that by this weekend. How long until the current merge
>> window closes?
> There's no "current" merge window, as v3.6-rc1 was released almost one week
> ago...
> Expect the next merge window (for 3.7) to open around September 20.
Should be enough time for me to miss ... eh, meet that one.

Cheers,

   Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-11  0:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-29 23:09 Chained vs. shared EtherNEC interrupts - was: Re: [SOLVED] Re: ARAnyM VMs with Debian hanging at 100% CPU usage Michael Schmitz
2012-08-08 12:10 ` Geert Uytterhoeven
2012-08-09  0:21   ` Michael Schmitz
2012-08-09 20:01     ` Geert Uytterhoeven
2012-08-11  0:21       ` Michael Schmitz

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