[PATCH] drivers/net: spidernet driver on Celleb

2006-12-11 Thread Ishizaki Kou
Following are the changes. -This patch enables auto-negotiation. -Loading firmware is done when spidernet_open() is called. -And this patch adds other several small changes for Celleb. -This patch is not tested on CellBlade. Signed-off-by: Kou Ishizaki --- Dear everyone, This is the patch (be

Re: [PATCH] drivers/net: spidernet driver on Celleb

2006-12-14 Thread Ishizaki Kou
Christoph-san, Thanks for your comments. >On Tue, Dec 12, 2006 at 02:25:50PM +0900, Ishizaki Kou wrote: >> >> Following are the changes. >> -This patch enables auto-negotiation. >> -Loading firmware is done when spidernet_open() is called. >> -And this patch add

[PATCH 0/4] spidernet: add support for Celleb

2007-01-17 Thread Ishizaki Kou
Dear everyone, This is a revised version of the patch set for spider_net driver that works on Toshiba Cell Refererence Set (aka Celleb). This patch set is based on netdev-2.6.git#upstream. Best regards, Kou Ishizaki Toshiba - To unsubscribe from this list: send the line "unsubscribe netdev" in t

[PATCH 1/4] spidernet: add auto negotiation on Celleb

2007-01-17 Thread Ishizaki Kou
This patch enables spider_net driver to use auto negotiation on Celleb. This driver also tries traditional link methods(setup_force() and enable_fibre()). This driver is designed so as to work a PHY that is not able to negotiate automatically, but we didn't test on it. Signed-off-by: Kou Ishizaki

[PATCH 2/4] spidernet: call init_firmware at open

2007-01-17 Thread Ishizaki Kou
This patch moves calling init_firmware() from spider_net_probe() to spider_net_open() so as to use the driver by built-in. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.c 2007-01-15 10:57:23.0 +0900 +++ linux-powerpc-git/drivers

[PATCH 3/4] spidernet: add support for Celleb

2007-01-17 Thread Ishizaki Kou
This patch adds or changes some HW specific settings for spider_net on Celleb. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/Kconfig 2007-01-15 10:37:30.0 +0900 +++ linux-powerpc-git/drivers/net/Kconfig 2007-01-15 11:06:57.0 +0

[PATCH 4/4] spidernet: remove txram full logging

2007-01-17 Thread Ishizaki Kou
This patches removes logging for SPIDER_NET_GTMFLLINT interrupts. Since the interrupts are not irregular, and they happen frequently when using 100Mbps network switches. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.c 2007-01-15 11:16:1

[PATCH] spidernet: improve interrupt handling

2007-07-09 Thread Ishizaki Kou
We intend this patch to improve spidernet interrupt handling to be more strict. We had following problem and this patch solves it. -when CONFIG_DEBUG_SHIRQ=y, request_irq() calls handler(). -when spider_net_open() is called, it calls request_irq() which calls spider_net_interrupt(). -if some

[PATCH] spidernet: don't use debug flag

2007-07-09 Thread Ishizaki Kou
GDTDCEIDIS flag is defined that it is for debug and should not be used. We met some troubles on Celleb platform by setting this flag. -network does not recover after ifconfig down, then up operations. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Index: linux-powerpc-git/drivers/net/spider

Re: [Cbe-oss-dev] [PATCH] spidernet: improve interrupt handling

2007-07-10 Thread Ishizaki Kou
Linas-san, > 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.

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

2007-07-11 Thread Ishizaki Kou
Linas-san, > > GDTDCEIDIS flag is defined that it is for debug and should not be used. > > !? Certainly, my spec doesn't say anything like this; First, I'm sorry to say that GDTDCEDIS is for debug. It's my misunderstanding. My HW manual of SCC simply said that GDTDCEDIS must not be set(Is it s

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

2007-07-13 Thread Ishizaki Kou
Linas-san, > 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? Thanks for your testing. It happens immediately in our environment. It may be celleb specific. Best regards, Kou Ishizaki - To unsubscribe fro

[PATCH] spidernet: remove unnecessary accesses to phy

2007-05-09 Thread Ishizaki Kou
This patch removes unnecessary accesses to phy registers. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Index: linux-powerpc-git/drivers/net/spider_net.c diff -u linux-powerpc-git/drivers/net/spider_net.c:1.1.1.9 linux-powerpc-git/drivers/net/spider_net.c:1.14 --- linux-powerpc-git/drivers

[PATCH] spidernet: fix interrupt reason recognition

2007-08-20 Thread Ishizaki Kou
This patch solves a problem that the spidernet driver sometimes fails to handle IRQ. The problem happens because, - In Cell architecture, interrupts may arrive at an interrupt controller, even if they are masked by the setting on registers of devices. It happens when interrupt packets are sent

Re: [Cbe-oss-dev] [PATCH] spidernet: fix interrupt reason recognition

2007-08-21 Thread Ishizaki Kou
Linas Vepstas wrote: > 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 follow

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

2007-08-21 Thread Ishizaki Kou
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() function will oops. Signed-off-by: Arnd Bergmann <[EMAIL PROTECTED]> Signed-o

Re: [Cbe-oss-dev] [PATCH] spidernet: fix interrupt reason recognition

2007-08-29 Thread Ishizaki Kou
Linas-san, Ishizaki Kou wrote: > Linas Vepstas wrote: > > 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 f

Re: [PATCH 0/4] spidernet: add support for Celleb

2007-01-24 Thread Ishizaki Kou
Jens-san, > > > This is a revised version of the patch set for spider_net driver > > > that works on Toshiba Cell Refererence Set (aka Celleb). > > > > > > This patch set is based on netdev-2.6.git#upstream. > > > > Jens, can you give that a go on our blades see if it doesn't break > > anything ?

Re: [Cbe-oss-dev] spidernet: dynamic phy setup code

2007-02-01 Thread Ishizaki Kou
I apologize if you received this mail many times. Jens-san > This patch modifies the patch submitted by Kou Ishizaki to make it work on the > blade (http://marc.theaimsgroup.com/?l=linux-netdev&m=116593424505539&w=2). > Unfortunately I dont have access to a Celleb so I cannot test it there. Tha

Re: spidernet: dynamic phy setup code

2007-02-02 Thread Ishizaki Kou
Jens-san, Thanks for your comments. >Ishizaki-san, > >> This patch partially works on celleb but remains >> following several problems. >> 1. It doesn't recover once an ethernet cable which is >>connected to a spider_net card is unpluged. > >My understanding is that you are using the LINK i

[RFC/PATCH 2.6.20-rc6 1/4] spidernet: autoneg support for Celleb

2007-02-02 Thread Ishizaki Kou
Add auto negotiation support for Celleb. This patch is just for a test. Please try this, if you can. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.h 2007-02-02 14:24:26.0 +0900 +++ linux-powerpc-git/drivers/net/spider_net.h 2

[RFC/PATCH 2.6.20-rc6 2/4] spidernet: load firmaware when open

2007-02-02 Thread Ishizaki Kou
This patch moves calling init_firmware() from spider_net_probe() to spider_net_open() so as to use the driver by built-in. This patch is just for a test. Please try this, if you can. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.c 2007-

[RFC/PATCH 2.6.20-rc6 3/4] spidernet: add support for Celleb

2007-02-02 Thread Ishizaki Kou
This patch adds or changes some HW specific settings for spider_net on Celleb. This patch is just for a test. Please try this, if you can. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/Kconfig 2007-02-02 14:34:19.0 +0900 +++ linux-powerpc-gi

[RFC/PATCH 2.6.20-rc6 4/4] spidernet: remove txram full logging

2007-02-02 Thread Ishizaki Kou
This patches removes logging for SPIDER_NET_GTMFLLINT interrupts. Since the interrupts are not irregular, and they happen frequently when using 100Mbps network switches. This patch is just for a test. Please try this if you can. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-p

Re: spidernet: dynamic phy setup code

2007-02-06 Thread Ishizaki Kou
Ben-san, Jens-san Thanks for your comments and advices. First, we should apologize to you that some troubles which we informed about spidernet auto-negotiation are caused by our mistake. We used wrong MACRO for "advertise" variable to phy->def->ops->setup_aneg(). We will post the revised patch f

[PATCH 0/4] spidernet: support for Celleb

2007-02-07 Thread Ishizaki Kou
This is a revised spidernet patch set based on netdev-2.6.git#upstream. This patch set is merged Jens-san's spidernet patch and works on Toshiba Cell reference set (aka Celleb). It requires Jens-san's phy patch (http://ozlabs.org/pipermail/linuxppc-dev/2007-February/030987.html). Ignore our prev

[PATCH 1/4] spidernet: autoneg support for Celleb

2007-02-07 Thread Ishizaki Kou
Add auto negotiation support for Celleb. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.h 2007-02-06 20:24:35.0 +0900 +++ linux-powerpc-git/drivers/net/spider_net.h 2007-02-06 20:30:35.0 +0900 @@ -50,6 +50,8 @@ #defi

[PATCH 2/4] spidernet: load firmware when open

2007-02-07 Thread Ishizaki Kou
This patch moves calling init_firmware() from spider_net_probe() to spider_net_open() so as to use the driver by built-in. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.c 2007-02-06 20:35:55.0 +0900 +++ linux-powerpc-git/drivers

[PATCH 3/4] spidernet: spidernet: add support for Celleb

2007-02-07 Thread Ishizaki Kou
This patch adds or changes some HW specific settings for spider_net on Celleb. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/Kconfig 2007-02-06 20:41:01.0 +0900 +++ linux-powerpc-git/drivers/net/Kconfig 2007-02-06 20:41:44.0 +0

[PATCH 4/4] spidernet: remove txram full logging

2007-02-07 Thread Ishizaki Kou
This patches removes logging for SPIDER_NET_GTMFLLINT interrupts. Since the interrupts are not irregular, and they happen frequently when using 100Mbps network switches. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.c 2007-02-06 20:44:4

Re: [PATCH] spidernet : fix memory leak in spider_net_stop

2007-02-07 Thread Ishizaki Kou
Jeff-san, > Jens Osterkamp wrote: > > We forget to call spider_net_free_rx_chain_contents which does the > > actual dev_kfree_skb. New skbs are allocated from skbuff_head_cache > > on each "ifconfig up" letting the cache grow infinitely. > > > > This patch fixes it. > > > > Signed-off-by: Jens O

Re: [PATCH 0/4] spidernet: support for Celleb

2007-02-13 Thread Ishizaki Kou
Linas-san, Jens-san, > Tested this series of patches together with Jen's "version 3" patch, > it worked for me. Code looks reasonable. Thus We tried Jens-san's v3 patch on Celleb, and it works for us. We also need Linas-san's patch set which includes bug-fix and makes the code compilable etc. B

[PATCH 2/4] spidernet: load firmware when open

2007-02-14 Thread Ishizaki Kou
This moves calling init_firmware() from spider_net_probe() to spider_net_open() so as to use the driver by built-in. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> Acked-by: Linas Vepstas <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drive

[PATCH 3/4] spidernet: spidernet: add support for Celleb

2007-02-14 Thread Ishizaki Kou
This adds or changes some HW specific settings for spider_net on Celleb. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> Acked-by: Linas Vepstas <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/Kconfig 2007-02-14 13:33:09.000

[PATCH 4/4] spidernet: remove txram full logging

2007-02-14 Thread Ishizaki Kou
This removes logging for SPIDER_NET_GTMFLLINT interrupts. Since the interrupts are not irregular, and they happen frequently when using 100Mbps network switches. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> Acked-by: Linas Vepstas <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PRO

[PATCH 0/4] spidernet: support for Celleb

2007-02-14 Thread Ishizaki Kou
Jeff-san, This is a revised patch set for spider_net to work on Celleb. This patch set is based on Jens-san's v3 phy patch and Linas-san's spider_net patch. Please apply our patch set with them. Note: You need not apply Jens-san's spidernet patch because our patch set includes it. Best regard

[PATCH 1/4] spidernet: autoneg support for Celleb

2007-02-14 Thread Ishizaki Kou
Add auto negotiation support for Celleb. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> Acked-by: Linas Vepstas <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- --- org-linux-powerpc-git/drivers/net/spider_net.h 2007-02-14 11:56:03.0 +0900 +++ linux-pow

[PATCH 2/5] spidernet: increase auto-negotiation timeout to 5 seconds

2008-01-10 Thread Ishizaki Kou
This patch extends the timeout for spidernet auto-negotiation. Auto-negotiation often fails to finish in 2 seconds. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Index: linux-powerpc-git/drivers/net/spider_net.h === --- linux-p

[PATCH 5/5] spidernet: revise link status logging

2008-01-10 Thread Ishizaki Kou
This patch revises the logging for link informations of spidernet. - The link down message is too verbose because auto-negotiation timeout occurs periodically while an ethernet cable is not connected. - We want to see the link result, and we think it should be displayed. Signed-off-by:

[PATCH 1/5] spidernet: add missing initialization

2008-01-10 Thread Ishizaki Kou
This patch fixes initialization of "aneg_count" and "medium" fields in spider_net_card to make spidernet driver correctly sets "link status". Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Index: linux-powerpc-git/drivers/net/spider_net.c =

[PATCH 3/5] spidernet: change interrupt masks

2008-01-10 Thread Ishizaki Kou
This patch changes spidernet interrupt masks. - unmask GDAINVAINT. There is an operation to do by spidernet interrupt handler. - mask some interrupts. There are no operations in the interrupt handler. Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Index: linux-powerpc-git/drivers/net/s

[PATCH 4/5] spidernet: fix error interrupt handling

2008-01-10 Thread Ishizaki Kou
In addition to the value of GHIINT0STS, spidernet interrupt handler should check the values of GHIINT1STS/GHIINT2STS registers at the beginning of spider_net_interrupt() so as not to drop error interrupts. GHIINT1STS/GHIINT2STS registers indicates some of erroneous conditions in spidernet, and a f

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

2008-01-17 Thread Ishizaki Kou
Jens-san, > Hi Ishizaki, > > Linas has left the company and is no longer doing kernel related stuff, > so I suggest, given Jeff is ok with that, that the two of us take over > spidernet maintainership. (snip) > Change maintainership for spidernet. > > Signed-off-by: Jens Osterkamp <[EMAIL PROTECT