* Re: new NAPI interface broken for POWER architecture?
[not found] ` <20070912.055004.88490155.davem@davemloft.net>
@ 2007-09-12 13:10 ` Christoph Raisch
2007-09-12 13:27 ` David Miller
2007-09-12 15:18 ` Arnd Bergmann
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Raisch @ 2007-09-12 13:10 UTC (permalink / raw)
To: David Miller
Cc: ossthema, Paul Mackerras, netdev, Jan-Bernd Themann, linuxppc-dev,
Arnd Bergmann, Michael Ellerman, shemminger
David Miller <davem@davemloft.net> wrote on 12.09.2007 14:50:04:
> From: Jan-Bernd Themann <ossthema@de.ibm.com>
> Date: Fri, 7 Sep 2007 11:37:02 +0200
>
> > 2) On SMP systems: after netif_rx_complete has been called on CPU1
> > (+interruts enabled), netif_rx_schedule could be called on CPU2
> > (irq handler) before net_rx_action on CPU1 has checked
NAPI_STATE_SCHED.
> > In that case the device would be added to poll lists of CPU1 and
CPU2
> > as net_rx_action would see NAPI_STATE_SCHED set.
> > This must not happen. It will be caught when netif_rx_complete is
> > called the second time (BUG() called)
> >
> > This would mean we have a problem on all SMP machines right now.
>
> This is not a correct statement.
>
> Only on your platform do network device interrupts get moved
> around, no other platform does this.
>
> Sparc64 doesn't, all interrupts stay in one location after
> the cpu is initially choosen.
>
> x86 and x86_64 specifically do not move around network
> device interrupts, even though other device types do
> get dynamic IRQ cpu distribution.
>
> That's why you are the only person seeing this problem.
>
> I agree that it should be fixed, but we should also fix the IRQ
> distribution scheme used on powerpc platforms which is totally
> broken in these cases.
This is definitely not something we can change in the HEA device driver
alone.
It could also affect any other networking cards on POWER (e1000,s2io...).
Paul, Michael, Arndt, what is your opinion here?
Gruss / Regards
Christoph Raisch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: new NAPI interface broken for POWER architecture?
2007-09-12 13:10 ` new NAPI interface broken for POWER architecture? Christoph Raisch
@ 2007-09-12 13:27 ` David Miller
2007-09-12 15:18 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-09-12 13:27 UTC (permalink / raw)
To: RAISCH
Cc: ossthema, pmac, netdev, THEMANN, linuxppc-dev, ARNDB, ellerman,
shemminger
From: Christoph Raisch <RAISCH@de.ibm.com>
Date: Wed, 12 Sep 2007 15:10:08 +0200
> This is definitely not something we can change in the HEA device driver
> alone.
And it shouldn't be, x86 implements the policy in irq balance
daemon, powerpc should do it wherever it would be appropriate
there.
> Paul, Michael, Arndt, what is your opinion here?
I'm all ears too :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: new NAPI interface broken for POWER architecture?
2007-09-12 13:10 ` new NAPI interface broken for POWER architecture? Christoph Raisch
2007-09-12 13:27 ` David Miller
@ 2007-09-12 15:18 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2007-09-12 15:18 UTC (permalink / raw)
To: Christoph Raisch
Cc: ossthema, Paul Mackerras, netdev, Jan-Bernd Themann, linuxppc-dev,
Michael Ellerman, shemminger, David Miller
On Wednesday 12 September 2007, Christoph Raisch wrote:
> David Miller <davem@davemloft.net> wrote on 12.09.2007 14:50:04:
>
> > I agree that it should be fixed, but we should also fix the IRQ
> > distribution scheme used on powerpc platforms which is totally
> > broken in these cases.
>
> This is definitely not something we can change in the HEA device driver
> alone.
> It could also affect any other networking cards on POWER (e1000,s2io...).
>
> Paul, Michael, Arndt, what is your opinion here?
The situation on Cell with the existing south bridge chips is that
interrupts _never_ get moved around, but are routed to specific
SMT threads by the firmware, while Linux does not interfere with
this.
We have been thinking about changing this so we can distribute
interrupts over all SMT threads in a given NUMA node, or even
over all logical CPUs in the system by reprogramming the
interrupt controller after each interrupt, but the current Axon bridge
chip will always have all devices routed to the same target CPU,
so it's unclear whether that is even an advantage.
Arnd <><
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-12 15:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200709071137.02801.ossthema@de.ibm.com>
[not found] ` <20070912.055004.88490155.davem@davemloft.net>
2007-09-12 13:10 ` new NAPI interface broken for POWER architecture? Christoph Raisch
2007-09-12 13:27 ` David Miller
2007-09-12 15:18 ` Arnd Bergmann
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).