Re: [PATCH 1/5] spidernet: add missing initialization

2008-01-11 Thread Linas Vepstas
gt; --- > > Change maintainership for spidernet. > > Signed-off-by: Jens Osterkamp <[EMAIL PROTECTED]> Fine with me ... Acked-by: Linas Vepstas <[EMAIL PROTECTED]> > Index: linux-2.6/MAINTAINERS > ===

Re: [PATCH] ehea: Add kdump support

2007-11-26 Thread Linas Vepstas
Hi, On Mon, Nov 26, 2007 at 01:41:37PM -0200, Luke Browning wrote: > On Mon, 2007-11-26 at 19:16 +1100, Michael Ellerman wrote: > > > For kdump we have to assume that the kernel is fundamentally broken, If I may so humbly suggest: since ehea is a power6 thing only, we should refocus our energie

[PATCH] netdev: create an "is_napi_enabled()" call

2007-11-13 Thread Linas Vepstas
In certain rare cases, it can be nice to be able to check if napi is enabled or not. Create an is_napi_enabled() call. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> --- Actually, I'm confused about whether I'd mailed this previously. It might be a duplicate submission.

Re: [PATCH 2/2]: e1000: avoid lockup durig error recovery

2007-11-09 Thread Linas Vepstas
On Fri, Nov 09, 2007 at 06:02:34PM +0100, Ingo Oeser wrote: > Linas Vepstas schrieb: > > + * napi_enabled_p - return non-zero if napi enabled > > + * > > + * Mnemonic: _p stands for "predicate", returning a yes/no > > + * answer to the question. > > Cal

Re: [PATCH] PCI: export pci_restore_msi_state()

2007-11-09 Thread Linas Vepstas
On Thu, Nov 08, 2007 at 07:21:01PM -0600, Wen Xiong wrote: > Hi Linas, > > I saw you have submitted several patches to support pci-express network > adapters EEH. But looks only this patch fixed something in linux kernel > code. And its an old patch, submitted long ago ... I've resubmitted, bec

Re: [PATCH 2/2]: e1000: avoid lockup durig error recovery

2007-11-07 Thread Linas Vepstas
On Wed, Nov 07, 2007 at 02:45:18PM -0800, Kok, Auke wrote: > [adding netdev, jeff G to the Cc] > > Linas Vepstas wrote: > > On Wed, Nov 07, 2007 at 01:50:17PM -0800, Kok, Auke wrote: > >> Linas Vepstas wrote: > >>> If a PCI bus error is encountered during d

Re: [PATCH] PCI: export pci_restore_msi_state()

2007-11-07 Thread Linas Vepstas
Hi, On Wed, Nov 07, 2007 at 03:43:59PM -0600, Linas Vepstas wrote: > > PCI error recovery usually involves the PCI adapter being reset. > If the device is using MSI, the reset will cause the MSI state > to be lost; the device driver needs to restore the MSI state. > > The pci

[PATCH] PCI: export pci_restore_msi_state()

2007-11-07 Thread Linas Vepstas
symbol, so that it can be used in a modle. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> I am so sorry I wasn't able to send this 3 weeks ago, when I first wrote the patch. There was simply no functional hardware available to actually run this stuff :-( Patches that use this

Re: [PATCH] Read back MSI message in rtas_setup_msi_irqs() so restore works

2007-11-07 Thread Linas Vepstas
- > > Linas, can you test this on your setup with your EEH stuff? I haven't got > any MSI supporting hardware/firmware combination. Acked-by: Linas Vepstas <[EMAIL PROTECTED]> I *finally* was able to get onto some hardware long enough to run this. And that took a lot of work

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-22 Thread Linas Vepstas
On Tue, Oct 23, 2007 at 07:24:27AM +1000, Benjamin Herrenschmidt wrote: > > On Mon, 2007-10-22 at 13:13 -0500, Linas Vepstas wrote: > > On Mon, Oct 22, 2007 at 11:49:24AM +1000, Michael Ellerman wrote: > > > > > > On pseries there's a chance it will work for

Re: [BUG] powerpc does not save msi state [was Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-22 Thread Linas Vepstas
On Fri, Oct 19, 2007 at 05:53:08PM -0700, David Miller wrote: > From: [EMAIL PROTECTED] (Linas Vepstas) > Date: Fri, 19 Oct 2007 19:46:10 -0500 > > > FWIW, it looks like not all that many arches do this; the output > > for grep -r address_hi * is pretty thin. Then, looki

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-22 Thread Linas Vepstas
On Sun, Oct 21, 2007 at 09:45:20PM -0700, David Miller wrote: > > The core issue is that the ARCH level MSI code invokes > write_msi_msg(), not the generic code, exactly because there > are platform level issues wherein the firmware is the only > legal way to write the MSI settings in PCI config s

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-22 Thread Linas Vepstas
On Mon, Oct 22, 2007 at 11:49:24AM +1000, Michael Ellerman wrote: > > On pseries there's a chance it will work for PCI error recovery, but if > so it's just lucky that firmware has left everything configured the same > way. ? The papr is quite clear that i is up to the OS to restore the msi stat

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-22 Thread Linas Vepstas
e MSI state during PCI error recovery. > > > > Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> > > Signed-off-by: Matt Carlson <[EMAIL PROTECTED]> > > Signed-off-by: Michael Chan <[EMAIL PROTECTED]> > > I'm not so sure about this. > > Perha

[BUG] powerpc does not save msi state [was Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-19 Thread Linas Vepstas
Hi, On Fri, Oct 19, 2007 at 05:27:06PM -0700, David Miller wrote: > From: [EMAIL PROTECTED] (Linas Vepstas) > Date: Fri, 19 Oct 2007 19:04:21 -0500 > > > I'm working in linux-2.6.23-rc8-mm1 at the moment, and I don't see > > that happening. viz. read_msi_msg() is

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-19 Thread Linas Vepstas
On Fri, Oct 19, 2007 at 06:12:03PM -0700, Michael Chan wrote: > On Fri, 2007-10-19 at 19:04 -0500, [EMAIL PROTECTED] wrote: > > I'm working in linux-2.6.23-rc8-mm1 at the moment, and I don't see > > that happening. viz. read_msi_msg() is not called anywhere, and I need > > to have valid msg->addres

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-19 Thread Linas Vepstas
t; is needed to restore the MSI state during PCI error recovery. > > > > > > Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> > > > Signed-off-by: Matt Carlson <[EMAIL PROTECTED]> > > > Signed-off-by: Michael Chan <[EMAIL PROTECTED]> >

Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

2007-10-19 Thread Linas Vepstas
On Fri, Oct 19, 2007 at 02:36:56PM -0700, Matt Carlson wrote: > This patch exports the pci_restore_msi_state() function. This function > is needed to restore the MSI state during PCI error recovery. > > Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> > Signed-off-by:

Re: [PATCH] tg3: add PCI error recovery support

2007-10-12 Thread Linas Vepstas
Hi, On Thu, Aug 02, 2007 at 05:13:39PM -0700, Michael Chan wrote: > On Thu, 2007-08-02 at 18:12 -0500, [EMAIL PROTECTED] wrote: > > On Thu, Jul 26, 2007 at 06:12:00PM -0700, Michael Chan wrote: > > > On Thu, 2007-07-26 at 17:57 -0500, [EMAIL PROTECTED] wrote: > > > > [... PCI error recovery patche

Re: [PATCH] spidernet: fix interrupt reason recognition

2007-09-04 Thread Linas Vepstas
river sometimes causes a BUG_ON at open. > > Linas? ACK? Alive? :) Argh. I read the code; it looked fine. I was going to compile it and forward it formally and etc. and then I got busy ... Ack'ed by: Linas Vepstas <[EMAIL PROTECTED]> --linas - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: RFC: issues concerning the next NAPI interface

2007-08-24 Thread Linas Vepstas
On Fri, Aug 24, 2007 at 02:44:36PM -0700, David Miller wrote: > From: David Stevens <[EMAIL PROTECTED]> > Date: Fri, 24 Aug 2007 09:50:58 -0700 > > > Problem is if it increases rapidly, you may drop packets > > before you notice that the ring is full in the current estimated > > interval.

Re: RFC: issues concerning the next NAPI interface

2007-08-24 Thread Linas Vepstas
On Fri, Aug 24, 2007 at 11:11:56PM +0200, Jan-Bernd Themann wrote: > (when they are available for > POWER in our case). hrtimer worked fine on the powerpc cell arch last summer. I assume they work on p5 and p6 too, no ?? > I tried to implement something with "normal" timers, but the result > was

Re: RFC: issues concerning the next NAPI interface

2007-08-24 Thread Linas Vepstas
On Fri, Aug 24, 2007 at 09:04:56PM +0200, Bodo Eggert wrote: > Linas Vepstas <[EMAIL PROTECTED]> wrote: > > On Fri, Aug 24, 2007 at 03:59:16PM +0200, Jan-Bernd Themann wrote: > >> 3) On modern systems the incoming packets are processed very fast. > >> Especiall

Re: RFC: issues concerning the next NAPI interface

2007-08-24 Thread Linas Vepstas
On Fri, Aug 24, 2007 at 08:52:03AM -0700, Stephen Hemminger wrote: > > You need hardware support for deferred interrupts. Most devices have it > (e1000, sky2, tg3) > and it interacts well with NAPI. It is not a generic thing you want done by > the stack, > you want the hardware to hold off inter

Re: RFC: issues concerning the next NAPI interface

2007-08-24 Thread Linas Vepstas
On Fri, Aug 24, 2007 at 03:59:16PM +0200, Jan-Bernd Themann wrote: > 3) On modern systems the incoming packets are processed very fast. Especially >    on SMP systems when we use multiple queues we process only a few packets >    per napi poll cycle. So NAPI does not work very well here and the >

Re: [PATCH] spidernet: fix interrupt reason recognition

2007-08-20 Thread Linas Vepstas
On Mon, Aug 20, 2007 at 10:13:27PM +0900, Ishizaki Kou wrote: > Please apply this to 2.6.23. I'll review and forward shortly. Kick me if you don't see a formal reply in a few days. > And also, please apply the following Arnd-san's patch to fix a problem > that spidernet driver sometimes causes a

Re: [PATCH] spidernet: enable poll() before registering interrupts

2007-08-20 Thread Linas Vepstas
On Thu, Jul 12, 2007 at 01:19:11AM +0200, Arnd Bergmann wrote: > We must not call netif_poll_enable after enabling interrupts, > because an interrupt might come in and set the __LINK_STATE_RX_SCHED > bit before we get to clear that bit again. If that happens, > the next call to the ->poll() functio

Re: [PATCH] spidernet: enable poll() before registering interrupts

2007-08-20 Thread Linas Vepstas
On Thu, Jul 12, 2007 at 01:19:11AM +0200, Arnd Bergmann wrote: > Index: linux-2.6/drivers/net/spider_net.c Sorry, this one got lost in my mailbox. Will attend to it shortly. --linas - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED]

Re: [PATCH] [459/2many] MAINTAINERS - SPIDERNET NETWORK DRIVER for CELL

2007-08-14 Thread Linas Vepstas
On Mon, Aug 13, 2007 at 10:07:25AM -0700, Joe Perches wrote: > On Mon, 2007-08-13 at 10:45 -0500, Linas Vepstas wrote: > > Note quite right. spider-pic is not part of spider_net. > > SPIDERNET NETWORK DRIVER for CELL > P:Linas Vepstas > M:[EMAIL PROTECTED] > L:

Re: [PATCH] [459/2many] MAINTAINERS - SPIDERNET NETWORK DRIVER for CELL

2007-08-13 Thread Linas Vepstas
INTAINERS > @@ -4377,6 +4377,9 @@ P: Linas Vepstas > M: [EMAIL PROTECTED] > L: netdev@vger.kernel.org > S: Supported > +F: Documentation/networking/spider_net.txt > +F: arch/powerpc/platforms/cell/spider-pic.c > +F: drivers/net/spider_net* Note quite right.

Re: [PATCH 0/4][RFC] lro: Generic Large Receive Offload for TCP traffic

2007-07-30 Thread Linas Vepstas
On Mon, Jul 30, 2007 at 05:24:33PM +0200, Jan-Bernd Themann wrote: > > Changes to http://www.spinics.net/lists/netdev/msg36912.html > > 1) A new field called "features" has been added to the net_lro_mgr struct. >It is set by the driver to indicate: >- LRO_F_NAPI:Use NAPI / net

[PATCH] tg3: add PCI error recovery support

2007-07-18 Thread Linas Vepstas
Add support for PCI Error Recovery for the tg3 ethernet device driver. The general principles of operation are described in Documentation/pci-error-recovery.txt Other drivers having similar structure include e100, e1000, ixgb, s2io, ipr, sym53c8xx_2, and lpfc Signed-off-by: Linas Vepstas <[EM

Re: [PATCH] crash in 2.6.22-git2 sysctl_set_parent()

2007-07-16 Thread Linas Vepstas
On Fri, Jul 13, 2007 at 03:47:02PM -0700, David Miller wrote: > From: [EMAIL PROTECTED] (Linas Vepstas) > Date: Fri, 13 Jul 2007 15:05:15 -0500 > > > > > This is a patch (& bug report) for a crash in sysctl_set_parent() > > in 2.6.22-git2. > > > >

Re: [PATCH] crash in 2.6.22-git2 sysctl_set_parent()

2007-07-16 Thread Linas Vepstas
On Fri, Jul 13, 2007 at 07:06:56PM -0600, Eric W. Biederman wrote: > > .data = &ipv4_devconf.loop, > > .maxlen = sizeof(int), > > .mode = 0644, > > + .child = 0x0, > > .pro

[PATCH] crash in 2.6.22-git2 sysctl_set_parent()

2007-07-13 Thread Linas Vepstas
e line: + ctl_table devinet_root_dir[3]; Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> I tried to audit some of the code to see where else there might be similar badly-formed static declarations. This is hard, as there's a lot of code. Most seems fine. net/core/neighbour.c |4 ++

Re: [Cbe-oss-dev] [PATCH] spidernet: don't use debug flag

2007-07-11 Thread Linas Vepstas
On Wed, Jul 11, 2007 at 04:57:38PM +0900, Ishizaki Kou wrote: [...] > I need more investigation. Please drop the patch. OK. --linas p.s. I tested ifdown/ifup, and didn't see any problems. Does your bug happen immediately, or does it take many attempts to trigger it? - To unsubscribe from this

[PATCH] spidernet: improve interrupt handling

2007-07-09 Thread Linas Vepstas
calls netif_rx_complete() which causes BUG_ON() because __LINK_STATE_RX_SCHED is not set. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Jeff, please apply for 2.6.23 Linas. drivers/net/s

Re: [PATCH] spidernet: improve interrupt handling

2007-07-09 Thread Linas Vepstas
On Mon, Jul 09, 2007 at 05:48:08PM +0900, Ishizaki Kou wrote: > We intend this patch to improve spidernet interrupt handling to be > more strict. We had following problem and this patch solves it. Looks reasonable to me. I'll forward it upstream. In the future, could you use "diff -Nupr"? it adds

Re: [PATCH] spidernet: don't use debug flag

2007-07-09 Thread Linas Vepstas
On Mon, Jul 09, 2007 at 05:45:21PM +0900, Ishizaki Kou wrote: > GDTDCEIDIS flag is defined that it is for debug and should not be used. !? Certainly, my spec doesn't say anything like this; I don't know of any other way of turning off the descriptor chain end interrupt; leaving it on hurts perfor

Re: [Cbe-oss-dev] [PATCH] ps3: gigabit ethernet driver for PS3, take3

2007-07-09 Thread Linas Vepstas
On Mon, Jul 09, 2007 at 10:50:19AM +0900, Akira Tsukamoto wrote: > Hi, > > On Fri, 6 Jul 2007 13:02:41 -0500, [EMAIL PROTECTED] (Linas Vepstas) > mentioned: > > of the spidernet device driver. Please note that the old > > spidernet had absolutely disasterous performa

Re: [Cbe-oss-dev] [PATCH] ps3: gigabit ethernet driver for PS3, take3

2007-07-06 Thread Linas Vepstas
On Thu, Jul 05, 2007 at 11:47:20AM -0500, jschopp wrote: > > This is the third submission of the network driver for PS3. > The differences from the previous one are: I notice that this mostly a cut-n-paste of a very old version of the spidernet device driver. Please note that the old spidernet h

[PATCH] spidernet: Replace literal with const

2007-06-14 Thread Linas Vepstas
Replace literal with const; add bit definitions. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> On Wed, Jun 13, 2007 at 04:12:00PM -0400, Jeff Garzik wrote: > A follow-up patch needs to remove the above magic numbers (==numeric > constants), replacing them with named consta

Re: [PATCH 4/15] spidernet: silence the ramfull messages

2007-06-14 Thread Linas Vepstas
On Wed, Jun 13, 2007 at 04:12:00PM -0400, Jeff Garzik wrote: > Linas Vepstas wrote: > >--- linux-2.6.22-rc1.orig/drivers/net/spider_net.c 2007-06-11 > >10:02:34.0 -0500 > >+++ linux-2.6.22-rc1/drivers/net/spider_net.c2007-06-11 > >11:45:25.0

Re: [Cbe-oss-dev] [PATCH 12/15] spidernet: increase the NAPI weight

2007-06-14 Thread Linas Vepstas
On Wed, Jun 13, 2007 at 10:49:51PM +0200, Arnd Bergmann wrote: > On Wednesday 13 June 2007, Jeff Garzik wrote: > > > +/* We really really want to empty the ring buffer every time, > > > + * so as to avoid the RX ram full bug. So set te napi wieght > > > + * to the ring size. > > > + */ > > > +#defi

Re: [PATCH 1/15] spidernet: null out skb pointer after its been used.

2007-06-14 Thread Linas Vepstas
On Wed, Jun 13, 2007 at 04:10:17PM -0400, Jeff Garzik wrote: > Linas Vepstas wrote: > >Avoid kernel crash in mm/slab.c due to double-free of pointer. > > > >If the ethernet interface is brought down while there is still > >RX traffic in flight, the device shutdown rout

Re: [PATCH 0/15] spidernet driver bug fixes

2007-06-13 Thread Linas Vepstas
d be. > > > > As I just stated, many of the patches in the "current" patch series have > > Linas Vepstas (11): > s2io: add PCI error recovery support > s2io: add PCI error recovery support > spidernet: beautify error messages > spide

Re: [PATCH 0/15] spidernet driver bug fixes

2007-06-12 Thread Linas Vepstas
On Tue, Jun 12, 2007 at 07:00:17PM -0400, Jeff Garzik wrote: > Linas Vepstas wrote: > >On Fri, Jun 08, 2007 at 01:20:20PM -0400, Jeff Garzik wrote: > >>On Fri, Jun 08, 2007 at 12:06:08PM -0500, Linas Vepstas wrote: > >>>On Fri, Jun 08, 2007 at 11:12:31AM +1000, Michae

[PATCH 15/15] spidernet: driver docmentation

2007-06-11 Thread Linas Vepstas
Documentation for the spidernet driver. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Documentation/networking/spider_net.txt | 204 1 file changed, 204 insertions(+) Index: linux-2.6.22-rc1/Documentation/networking/spider_n

[PATCH 14/15] spidernet: fix misnamed flag

2007-06-11 Thread Linas Vepstas
The transmit frame tail bit is stranglely misnamed as "no checksum". Fix the name to what it should be: "transmit frame tail". No functional change, just a name change. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |2 +- drive

[PATCH 13/15] spidernet: move a block of code around

2007-06-11 Thread Linas Vepstas
Put the enable and disable routines next to one-another, as this makes verifying thier symmetry that much easier. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-)

[PATCH 12/15] spidernet: increase the NAPI weight

2007-06-11 Thread Linas Vepstas
Another way of minimizing the likelyhood of RX ram from overflowing is to empty out the entire rx ring every chance we get. Change the crazy watchdog timeout from 50 seconds to 3 seconds, while we're here. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_n

[PATCH 11/15] spidernet: service TX later.

2007-06-11 Thread Linas Vepstas
When entering the netdev poll routine, empty out the RX chain first, before cleaning up the TX chain. This should help avoid RX buffer overflows. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 10/15] spidernet: invalidate unused pointer.

2007-06-11 Thread Linas Vepstas
Invalidate a pointer as its pci_unmap'ed; this is a bit of paranoia to make sure hardware doesn't continue trying to DMA to it. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) Ind

[PATCH 9/15] spidernet: enhance the dump routine

2007-06-11 Thread Linas Vepstas
Crazy device problems are hard to debug, when one does not have good trace info. This patch makes a major enhancement to the device dump routine. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 78 ++-

[PATCH 8/15] spidernet: beautify error messages

2007-06-11 Thread Linas Vepstas
Use dev_err() to print device error messages. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 64 --- 1 file changed, 34 insertions(+), 30 deletions(-) Index: linux-2.6.22-rc1/drivers/net/spider

[PATCH 7/15] spidernet: checksum and ethtool

2007-06-11 Thread Linas Vepstas
htool tx csum, and it should use the standard ethtool_op_get_link. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> - drivers/net/spider_net.c |4 ++-- drivers/net/spider_net_ethtool.c | 21 +++-- 2 f

[PATCH 6/15] spidernet: skb used after netif_receive_skb

2007-06-11 Thread Linas Vepstas
From: Florin Malita <[EMAIL PROTECTED]> The stats update code in spider_net_pass_skb_up() is touching the skb after it's been passed up to the stack. To avoid that, just update the stats first. Signed-off-by: Florin Malita <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas

[PATCH 2/15] spidernet: Cure RX ram full bug

2007-06-11 Thread Linas Vepstas
sync_head_ptr() subroutine will search the ring for the next full descr, and the driver will resume operations there. Since this will leave "holes" in the ring, there is also a spider_net_resync_tail_ptr() that will skip over such holes. Signed-off-by: Li

[PATCH 5/15] spidernet: turn off descriptor chain end interrupt.

2007-06-11 Thread Linas Vepstas
At some point, the transmit descriptor chain end interrupt (TXDCEINT) was turned on. This is a mistake; and it damages small packet transmit performance, as it results in a huge storm of interrupts. Turn it off. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider

[PATCH 4/15] spidernet: silence the ramfull messages

2007-06-11 Thread Linas Vepstas
Although the previous patch resolved issues with hangs when the RX ram full interrupt is encountered, there are still situations where lots of RX ramfull interrupts arrive, resulting in a noisy log in syslog. There is no need for this. Signed-off-by: Linas Vepstas <[EMAIL PROTEC

[PATCH 3/15] spidernet: Don't terminate the RX ring

2007-06-11 Thread Linas Vepstas
on't do it. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Index: linux-2.6.22-rc1/drivers/net/spider_net.c === ---

[PATCH 1/15] spidernet: null out skb pointer after its been used.

2007-06-11 Thread Linas Vepstas
pointer. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |1 + 1 file changed, 1 insertion(+) Index: linux-2.6.22-rc1/drivers/net/spider_net.c === --- linux-2.6.22-rc1.orig/drivers/net/spider

[PATCH 0/15] spidernet driver bug fixes

2007-06-11 Thread Linas Vepstas
On Fri, Jun 08, 2007 at 01:20:20PM -0400, Jeff Garzik wrote: > On Fri, Jun 08, 2007 at 12:06:08PM -0500, Linas Vepstas wrote: > > On Fri, Jun 08, 2007 at 11:12:31AM +1000, Michael Ellerman wrote: > > > On Thu, 2007-06-07 at 14:17 -0500, Linas Vepstas wrote: > > > > &

Re: [Cbe-oss-dev] [PATCH 0/18] spidernet driver bug fixes

2007-06-08 Thread Linas Vepstas
On Fri, Jun 08, 2007 at 11:12:31AM +1000, Michael Ellerman wrote: > On Thu, 2007-06-07 at 14:17 -0500, Linas Vepstas wrote: > > Jeff, please apply for the 2.6.23 kernel tree. The pach series > > consists of two major bugfixes, and several bits of cleanup. > > > &

[PATCH 18/18] spidernet: driver docmentation

2007-06-07 Thread Linas Vepstas
Documentation for the spidernet driver. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Documentation/networking/spider_net.txt | 204 1 file changed, 204 insertions(+) Index: linux-2.6.22-rc1/Documentation/networking/spider_n

[PATCH 17/18] spidernet: turn off descriptor chain end interrupt.

2007-06-07 Thread Linas Vepstas
At some point, the transmit descriptor chain end interrupt (TXDCEINT) was turned on. This is a mistake; and it damages small packet transmit performance, as it results in a huge storm of interrupts. Turn it off. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider

[PATCH 16/18] spidernet: fix misnamed flag

2007-06-07 Thread Linas Vepstas
The transmit frame tail bit is stranglely misnamed as "no checksum". Fix the name to what it should be: "transmit frame tail". No functional change, just a name change. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |2 +- drive

[PATCH 15/18] spidernet: minor RX optimization

2007-06-07 Thread Linas Vepstas
A minor optimization on the RX side is that the hardware does not need to be kicked if space did not open up in the RX ring. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Index: linux-

[PATCH 14/18] spidernet: silence the ramfull messages

2007-06-07 Thread Linas Vepstas
Altough the previous patch resolved issues with hangs when the RX ram full interrupt is encountered, there are still situations where lots of RX ramfull interrupts arrive, rsulting in a noisy log in syslog. There is no need for this. Signed-off-by: Linas Vepstas <[EMAIL PROTEC

[PATCH 13/18] spidernet: Cure RX ram full bug

2007-06-07 Thread Linas Vepstas
sync_head_ptr() subroutine will search the ring for the next full descr, and the driver will resume operations there. Since this will leave "holes" in the ring, there is also a spider_net_resync_tail_ptr() that will skip over such holes. Signed-off-by: Li

[PATCH 12/18] spidernet: don't flag rare packets as bad packets

2007-06-07 Thread Linas Vepstas
The current error checking is flagging some perfectly normal, but usually rare packets as being bad. Do not flag these packets. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) Index: linux-

[PATCH 11/18] spidernet: increase the NAPI weight

2007-06-07 Thread Linas Vepstas
Another way of minimizing the likelyhood of RX ram from overflowing is to empty out the entire rx ring every chance we get. Change the crazy watchdog timeout from 50 seconds to 3 seconds, while we're here. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_n

[PATCH 10/18] spidernet: service TX later.

2007-06-07 Thread Linas Vepstas
When entering the netdev poll routine, empty out the RX chain first, before cleaning up the TX chain. This should help avoid RX buffer overflows. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 9/18] spidernet: reset the card when an rxramfull is seen

2007-06-07 Thread Linas Vepstas
Some versions of the spider have a firmware bug, where the RX ring sequencer goes crazy when the RX RAM on the device fills up. Appearently the only viable wrkaround is a soft reset of the card. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c

[PATCH 8/18] spidernet: enhance the dump routine

2007-06-07 Thread Linas Vepstas
Crazy device problems are hard to debug, when one does not have good trace info. This patch makes a major enhancement to the device dump routine. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 78 ++-

[PATCH 7/18] spidernet: Don't terminate the RX ring

2007-06-07 Thread Linas Vepstas
Subject: [PATCH 7/18] spidernet: Don't terminate the RX ring There is no real reason to terminate the RX ring; it doesn't make the operation any smooother, and it does require an extra sync. So don't do it. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/ne

[PATCH 6/18] spidernet: null out skb pointer after its been used.

2007-06-07 Thread Linas Vepstas
If the ethernet interface is brought down while there is still RX traffic in flight, the device shutdown routine can end up trying to double-free an skb, leading to a crash in mm/slab.c Avoid the double-free by nulling out the skb pointer. Signed-off-by: Linas Vepstas <[EMAIL PROTEC

[PATCH 5/18] spidernet: zero out a pointer.

2007-06-07 Thread Linas Vepstas
Invalidate a pointer as its pci_unmap'ed; this is a bit of paranoia to make sure hardware doesn't continue trying to DMA to it. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) Ind

[PATCH 4/18] spidernet: move a block of code around

2007-06-07 Thread Linas Vepstas
Put the enable and disable routines next to one-another, as this makes verifying thier symmetry that much easier. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-)

[PATCH 2/18] spidernet: checksum and ethtool

2007-06-07 Thread Linas Vepstas
htool tx csum, and it should use the standard ethtool_op_get_link. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> - drivers/net/spider_net.c |4 ++-- drivers/net/spider_net_ethtool.c | 21 +++-- 2 f

[PATCH 3/18] spidernet: beautify error messages

2007-06-07 Thread Linas Vepstas
Use dev_err() to print device error messages. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 67 --- drivers/net/spider_net.h |2 - 2 files changed, 36 insertions(+), 33 deletions(-) Index: linux-2.6.

[PATCH 1/18] spidernet: skb used after netif_receive_skb

2007-06-07 Thread Linas Vepstas
From: Florin Malita <[EMAIL PROTECTED]> The stats update code in spider_net_pass_skb_up() is touching the skb after it's been passed up to the stack. To avoid that, just update the stats first. Signed-off-by: Florin Malita <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas

[PATCH 0/18] spidernet driver bug fixes

2007-06-07 Thread Linas Vepstas
Jeff, please apply for the 2.6.23 kernel tree. The pach series consists of two major bugfixes, and several bits of cleanup. The major bug fixes are: 1) a rare but fatal bug involving "RX ram full" messages, which results in a driver deadlock. 2) misconfigured TX interrupts, causing a seve

Re: [PATCH] spidernet: checksum and ethtool

2007-06-07 Thread Linas Vepstas
On Tue, May 29, 2007 at 05:24:36PM -0700, Stephen Hemminger wrote: > It doesn't look like spidernet hardware can really checksum all protocols, > the code looks like it does IPV4 only. If so, it should use NETIF_F_IP_CSUM > instead of NETIF_F_HW_CSUM. > > The driver doesn't need it's own get/set

Re: [PATCH] spidernet: checksum and ethtool

2007-06-01 Thread Linas Vepstas
On Tue, May 29, 2007 at 05:24:36PM -0700, Stephen Hemminger wrote: > It doesn't look like spidernet hardware can really checksum all protocols, > the code looks like it does IPV4 only. If so, it should use NETIF_F_IP_CSUM > instead of NETIF_F_HW_CSUM. > > The driver doesn't need it's own get/set

Re: [PATCH] s2io: don't run MSI handlers if device is offline.

2007-05-25 Thread Linas Vepstas
On Thu, May 24, 2007 at 05:20:24PM -0400, Jeff Garzik wrote: > Linas Vepstas wrote: > >Don't run any of the MSI handlers if the channel is off; > >also don't gather device statatistics. Also, netif_wake > >not needed, per suggestions from > >Sivakumar Subrama

[PATCH 10/10] spidernet: increase the NAPI weight

2007-05-22 Thread Linas Vepstas
Another way of minimizing the likelyhood of RX ram from overflowing is to empty out the entire rx ring every chance we get. Change the crazy watchdog timeout from 50 seconds to 3 seconds, while we're here. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_n

[PATCH 9/10] spidernet: service TX later.

2007-05-22 Thread Linas Vepstas
When entering the netdev poll routine, empty out the RX chain first, before cleaning up the TX chain. This should help avoid RX buffer overflows. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 8/10] spidernet: reset the card when an rxramfull is seen

2007-05-22 Thread Linas Vepstas
Some versions of the spider have a firmware bug, where the RX ring sequencer goes crazy when the RX RAM on the device fills up. Appearently the only viable wrkaround is a soft reset of the card. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c

[PATCH 7/10] spidernet: enhance the dump routine

2007-05-22 Thread Linas Vepstas
Crazy device problems are hard to debug, when one does not have good trace info. This patch makes a major enhancement to the device dump routine. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 62 ---

[PATCH 6/10] spidernet: Don't terminate the RX ring

2007-05-22 Thread Linas Vepstas
There is no real reason to terminate the RX ring; it doesn't make the operation any smooother, and it does require an extra sync. So don't do it. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 18 +- 1 file changed, 9

[PATCH 5/10] spidernet: null out skb pointer after its been used.

2007-05-22 Thread Linas Vepstas
If the ethernet interface is brought down while there is still RX traffic in flight, the device shutdown routine can end up trying to double-free an skb, leading to a crash in mm/slab.c Avoid the double-free by nulling out the skb pointer. Signed-off-by: Linas Vepstas <[EMAIL PROTEC

[PATCH 4/10] spidernet: zero out a pointer.

2007-05-22 Thread Linas Vepstas
Invalidate a pointer as its pci_unmap'ed; this is a bit of paranoia to make sure hardware doesn't continue trying to DMA to it. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) I

Re: [Cbe-oss-dev] [PATCH 4/10] spidernet: zero out a pointer.

2007-05-22 Thread Linas Vepstas
On Thu, May 17, 2007 at 09:32:56AM +1000, Michael Ellerman wrote: > > + hwdescr->buf_addr = 0x0; > > If you're going to be paranoid, shouldn't you do something here to make > sure the value's hit the device? I thought the whole point of paranoia is that its inexplicable. Here's a delusional re

[PATCH 3/10] spidernet: move a block of code around

2007-05-22 Thread Linas Vepstas
Put the enable and disable routines next to one-another, as this makes verifying thier symmetry that much easier. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-)

[PATCH 2/10] spidernet: beautify error messages

2007-05-22 Thread Linas Vepstas
Make error messages print which interface they apply to. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> drivers/net/spider_net.c | 10 ++ drivers/net/spider_net.h |2 +- 2 files changed, 7 insertions(+), 5 deletions(-) Index: netdev-2.6/drivers/net/spider

[PATCH 1/10] spidernet: skb used after netif_receive_skb

2007-05-22 Thread Linas Vepstas
From: Florin Malita <[EMAIL PROTECTED]> The stats update code in spider_net_pass_skb_up() is touching the skb after it's been passed up to the stack. To avoid that, just update the stats first. Signed-off-by: Florin Malita <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas

[PATCH] s2io: don't run MSI handlers if device is offline.

2007-05-22 Thread Linas Vepstas
Don't run any of the MSI handlers if the channel is off; also don't gather device statatistics. Also, netif_wake not needed, per suggestions from Sivakumar Subramani <[EMAIL PROTECTED]>. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Cc: Ramkrishna Vepa <[EMAIL

Re: [PATCH 1/2 v4] s2io: add PCI error recovery support

2007-05-22 Thread Linas Vepstas
On Mon, May 21, 2007 at 06:51:45PM -0400, Jeff Garzik wrote: > > >The part that confuses me is that I'd gotten a message from Jeff > >back in March (well before 2.6.21 came out), saying it was in his > >development tree; yet, the patch its not in 2.6.22-rc; Torvalds > >hasn't yet pulled from it? >

Re: [PATCH 1/2 v4] s2io: add PCI error recovery support

2007-05-21 Thread Linas Vepstas
On Mon, May 21, 2007 at 02:48:47PM -0700, Andrew Morton wrote: > On Mon, 21 May 2007 13:58:53 -0500 > [EMAIL PROTECTED] (Linas Vepstas) wrote: > > This patch adds PCI error recovery support to the > > This is already in Jeff's development tree. Your new patch neither >

  1   2   3   4   >