netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
@ 2013-10-07  6:29 Nguyen Hong Ky
  2013-10-07  6:29 ` Nguyen Hong Ky
  2013-10-08 20:04 ` David Miller
  0 siblings, 2 replies; 13+ messages in thread
From: Nguyen Hong Ky @ 2013-10-07  6:29 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Ryusuke Sakato, Sergei Shtylyov, Simon Horman

Hi David S. Miller,

This patch will fix RX packets errors when receiving big size of data.
Moreover, I set suitable parameters for get more stable when receiving
packets.

It was created on the top of mainline kernel v3.11.

I tested this patch on Armadillo800eva, it appears to be working well.

Would you please review and apply it for me.

Thank you,
Nguyen Hong Ky

Nguyen Hong Ky (1):
  net: sh_eth: Fix RX packets errors on R8A7740

 drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

-- 
1.7.5.4

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

* [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-07  6:29 [PATCH] net: sh_eth: Fix RX packets errors on R8A7740 Nguyen Hong Ky
@ 2013-10-07  6:29 ` Nguyen Hong Ky
  2013-10-09  4:28   ` Simon Horman
  2013-10-12 16:58   ` Sergei Shtylyov
  2013-10-08 20:04 ` David Miller
  1 sibling, 2 replies; 13+ messages in thread
From: Nguyen Hong Ky @ 2013-10-07  6:29 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Ryusuke Sakato, Sergei Shtylyov, Simon Horman

This patch will fix RX packets errors when receiving big size
of data by set bit RNC = 1.

RNC - Receive Enable Control

0: Upon completion of reception of one frame, the E-DMAC writes
the receive status to the descriptor and clears the RR bit in
EDRRR to 0.

1: Upon completion of reception of one frame, the E-DMAC writes
(writes back) the receive status to the descriptor. In addition,
the E-DMAC reads the next descriptor and prepares for reception
of the next frame.

In addition, for get more stable when receiving packets, I set
maximum size for the transmit/receive FIFO and inserts padding
in receive data.

Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
---
 drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index a753928..11d34f0 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -649,12 +649,16 @@ static struct sh_eth_cpu_data r8a7740_data = {
 	.eesr_err_check	= EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
 			  EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
 			  EESR_TDE | EESR_ECI,
+	.fdr_value	= 0x0000070f,
+	.rmcr_value	= 0x00000001,
 
 	.apr		= 1,
 	.mpr		= 1,
 	.tpauser	= 1,
 	.bculr		= 1,
 	.hw_swap	= 1,
+	.rpadir		= 1,
+	.rpadir_value   = 2 << 16,
 	.no_trimd	= 1,
 	.no_ade		= 1,
 	.tsu		= 1,
-- 
1.7.5.4

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-07  6:29 [PATCH] net: sh_eth: Fix RX packets errors on R8A7740 Nguyen Hong Ky
  2013-10-07  6:29 ` Nguyen Hong Ky
@ 2013-10-08 20:04 ` David Miller
  2013-10-09  4:24   ` Simon Horman
  1 sibling, 1 reply; 13+ messages in thread
From: David Miller @ 2013-10-08 20:04 UTC (permalink / raw)
  To: nh-ky; +Cc: netdev, ryusuke.sakato.bx, sergei.shtylyov, horms

From: Nguyen Hong Ky <nh-ky@jinso.co.jp>
Date: Mon,  7 Oct 2013 15:29:24 +0900

> This patch will fix RX packets errors when receiving big size of data.
> Moreover, I set suitable parameters for get more stable when receiving
> packets.
> 
> It was created on the top of mainline kernel v3.11.
> 
> I tested this patch on Armadillo800eva, it appears to be working well.
> 
> Would you please review and apply it for me.

Applied, but at some point someone has to add definitions for the
RMCR register fields so that this driver is not full of magic constants.

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-08 20:04 ` David Miller
@ 2013-10-09  4:24   ` Simon Horman
  2013-10-09 20:27     ` Sergei Shtylyov
  0 siblings, 1 reply; 13+ messages in thread
From: Simon Horman @ 2013-10-09  4:24 UTC (permalink / raw)
  To: David Miller; +Cc: nh-ky, netdev, ryusuke.sakato.bx, sergei.shtylyov

On Tue, Oct 08, 2013 at 04:04:46PM -0400, David Miller wrote:
> From: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> Date: Mon,  7 Oct 2013 15:29:24 +0900
> 
> > This patch will fix RX packets errors when receiving big size of data.
> > Moreover, I set suitable parameters for get more stable when receiving
> > packets.
> > 
> > It was created on the top of mainline kernel v3.11.
> > 
> > I tested this patch on Armadillo800eva, it appears to be working well.
> > 
> > Would you please review and apply it for me.
> 
> Applied, but at some point someone has to add definitions for the
> RMCR register fields so that this driver is not full of magic constants.

Sergei, would it be possible for you to address this?

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-07  6:29 ` Nguyen Hong Ky
@ 2013-10-09  4:28   ` Simon Horman
  2013-10-09  5:26     ` Simon Horman
  2013-10-12 16:58   ` Sergei Shtylyov
  1 sibling, 1 reply; 13+ messages in thread
From: Simon Horman @ 2013-10-09  4:28 UTC (permalink / raw)
  To: Nguyen Hong Ky; +Cc: David S. Miller, netdev, Ryusuke Sakato, Sergei Shtylyov

On Mon, Oct 07, 2013 at 03:29:25PM +0900, Nguyen Hong Ky wrote:
> This patch will fix RX packets errors when receiving big size
> of data by set bit RNC = 1.
> 
> RNC - Receive Enable Control
> 
> 0: Upon completion of reception of one frame, the E-DMAC writes
> the receive status to the descriptor and clears the RR bit in
> EDRRR to 0.
> 
> 1: Upon completion of reception of one frame, the E-DMAC writes
> (writes back) the receive status to the descriptor. In addition,
> the E-DMAC reads the next descriptor and prepares for reception
> of the next frame.
> 
> In addition, for get more stable when receiving packets, I set
> maximum size for the transmit/receive FIFO and inserts padding
> in receive data.
> 
> Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>

I realise that this patch has been applied but regardless
I would like to acknowledge that it resolve a problem that
I observed this afternoon.

Without this patch I see the following on the console, many times:

net eth0: Receive FIFO Overflow

With this patch I do not see the warning message at all.

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-09  4:28   ` Simon Horman
@ 2013-10-09  5:26     ` Simon Horman
  2013-10-09  5:38       ` Nguyen Hong Ky
  0 siblings, 1 reply; 13+ messages in thread
From: Simon Horman @ 2013-10-09  5:26 UTC (permalink / raw)
  To: Nguyen Hong Ky; +Cc: David S. Miller, netdev, Ryusuke Sakato, Sergei Shtylyov

On Wed, Oct 09, 2013 at 01:28:26PM +0900, Simon Horman wrote:
> On Mon, Oct 07, 2013 at 03:29:25PM +0900, Nguyen Hong Ky wrote:
> > This patch will fix RX packets errors when receiving big size
> > of data by set bit RNC = 1.
> > 
> > RNC - Receive Enable Control
> > 
> > 0: Upon completion of reception of one frame, the E-DMAC writes
> > the receive status to the descriptor and clears the RR bit in
> > EDRRR to 0.
> > 
> > 1: Upon completion of reception of one frame, the E-DMAC writes
> > (writes back) the receive status to the descriptor. In addition,
> > the E-DMAC reads the next descriptor and prepares for reception
> > of the next frame.
> > 
> > In addition, for get more stable when receiving packets, I set
> > maximum size for the transmit/receive FIFO and inserts padding
> > in receive data.
> > 
> > Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> 
> I realise that this patch has been applied but regardless
> I would like to acknowledge that it resolve a problem that
> I observed this afternoon.
> 
> Without this patch I see the following on the console, many times:
> 
> net eth0: Receive FIFO Overflow
> 
> With this patch I do not see the warning message at all.

Scratch that, I am still seeing the messages with this patch applied.

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-09  5:26     ` Simon Horman
@ 2013-10-09  5:38       ` Nguyen Hong Ky
  2013-10-10  5:29         ` Simon Horman
  0 siblings, 1 reply; 13+ messages in thread
From: Nguyen Hong Ky @ 2013-10-09  5:38 UTC (permalink / raw)
  To: Simon Horman; +Cc: David S. Miller, netdev, Ryusuke Sakato, Sergei Shtylyov

On Wed, Oct 9, 2013 at 2:26 PM, Simon Horman <horms@verge.net.au> wrote:
> On Wed, Oct 09, 2013 at 01:28:26PM +0900, Simon Horman wrote:
>> On Mon, Oct 07, 2013 at 03:29:25PM +0900, Nguyen Hong Ky wrote:
>> > This patch will fix RX packets errors when receiving big size
>> > of data by set bit RNC = 1.
>> >
>> > RNC - Receive Enable Control
>> >
>> > 0: Upon completion of reception of one frame, the E-DMAC writes
>> > the receive status to the descriptor and clears the RR bit in
>> > EDRRR to 0.
>> >
>> > 1: Upon completion of reception of one frame, the E-DMAC writes
>> > (writes back) the receive status to the descriptor. In addition,
>> > the E-DMAC reads the next descriptor and prepares for reception
>> > of the next frame.
>> >
>> > In addition, for get more stable when receiving packets, I set
>> > maximum size for the transmit/receive FIFO and inserts padding
>> > in receive data.
>> >
>> > Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
>>
>> I realise that this patch has been applied but regardless
>> I would like to acknowledge that it resolve a problem that
>> I observed this afternoon.
>>
>> Without this patch I see the following on the console, many times:
>>
>> net eth0: Receive FIFO Overflow
>>
>> With this patch I do not see the warning message at all.
>
> Scratch that, I am still seeing the messages with this patch applied.
>

Would you please confirm that it was patched in below function:

static struct sh_eth_cpu_data r8a7740_data = {...}

Thanks for your help,
Nguyen Hong Ky

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-09  4:24   ` Simon Horman
@ 2013-10-09 20:27     ` Sergei Shtylyov
  0 siblings, 0 replies; 13+ messages in thread
From: Sergei Shtylyov @ 2013-10-09 20:27 UTC (permalink / raw)
  To: Simon Horman; +Cc: David Miller, nh-ky, netdev, ryusuke.sakato.bx

Hello.

On 09-10-2013 6:24, Simon Horman wrote:

>>> This patch will fix RX packets errors when receiving big size of data.
>>> Moreover, I set suitable parameters for get more stable when receiving
>>> packets.

>>> It was created on the top of mainline kernel v3.11.

>>> I tested this patch on Armadillo800eva, it appears to be working well.

>>> Would you please review and apply it for me.

>> Applied, but at some point someone has to add definitions for the
>> RMCR register fields so that this driver is not full of magic constants.

> Sergei, would it be possible for you to address this?

    Yes, perhaps, if I won't forget.

WBR, Sergei

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-09  5:38       ` Nguyen Hong Ky
@ 2013-10-10  5:29         ` Simon Horman
  0 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2013-10-10  5:29 UTC (permalink / raw)
  To: Nguyen Hong Ky; +Cc: David S. Miller, netdev, Ryusuke Sakato, Sergei Shtylyov

On Wed, Oct 09, 2013 at 02:38:17PM +0900, Nguyen Hong Ky wrote:
> On Wed, Oct 9, 2013 at 2:26 PM, Simon Horman <horms@verge.net.au> wrote:
> > On Wed, Oct 09, 2013 at 01:28:26PM +0900, Simon Horman wrote:
> >> On Mon, Oct 07, 2013 at 03:29:25PM +0900, Nguyen Hong Ky wrote:
> >> > This patch will fix RX packets errors when receiving big size
> >> > of data by set bit RNC = 1.
> >> >
> >> > RNC - Receive Enable Control
> >> >
> >> > 0: Upon completion of reception of one frame, the E-DMAC writes
> >> > the receive status to the descriptor and clears the RR bit in
> >> > EDRRR to 0.
> >> >
> >> > 1: Upon completion of reception of one frame, the E-DMAC writes
> >> > (writes back) the receive status to the descriptor. In addition,
> >> > the E-DMAC reads the next descriptor and prepares for reception
> >> > of the next frame.
> >> >
> >> > In addition, for get more stable when receiving packets, I set
> >> > maximum size for the transmit/receive FIFO and inserts padding
> >> > in receive data.
> >> >
> >> > Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> >>
> >> I realise that this patch has been applied but regardless
> >> I would like to acknowledge that it resolve a problem that
> >> I observed this afternoon.
> >>
> >> Without this patch I see the following on the console, many times:
> >>
> >> net eth0: Receive FIFO Overflow
> >>
> >> With this patch I do not see the warning message at all.
> >
> > Scratch that, I am still seeing the messages with this patch applied.
> >
> 
> Would you please confirm that it was patched in below function:
> 
> static struct sh_eth_cpu_data r8a7740_data = {...}

Thanks Ky-san.

I am seeing the problem on next-next
ba53742 ("tcp: use ACCESS_ONCE() in tcp_update_pacing_rate()")
which includes this patch.

However, it seems that the patch was applied to
sh7734_data instead of r8a7740_data.

I moved the changes from sh7734_data to r8a7740_data
and the FIFO Overflow messages seem to have disappeared.

I will post a patch to move things around accordingly.

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-07  6:29 ` Nguyen Hong Ky
  2013-10-09  4:28   ` Simon Horman
@ 2013-10-12 16:58   ` Sergei Shtylyov
  2013-10-15  7:28     ` Guennadi Liakhovetski
  1 sibling, 1 reply; 13+ messages in thread
From: Sergei Shtylyov @ 2013-10-12 16:58 UTC (permalink / raw)
  To: Guennadi Liakhovetski
  Cc: Nguyen Hong Ky, David S. Miller, netdev, Ryusuke Sakato,
	Simon Horman

Hello.

On 07-10-2013 8:29, Nguyen Hong Ky wrote:

> This patch will fix RX packets errors when receiving big size
> of data by set bit RNC = 1.

> RNC - Receive Enable Control

> 0: Upon completion of reception of one frame, the E-DMAC writes
> the receive status to the descriptor and clears the RR bit in
> EDRRR to 0.

> 1: Upon completion of reception of one frame, the E-DMAC writes
> (writes back) the receive status to the descriptor. In addition,
> the E-DMAC reads the next descriptor and prepares for reception
> of the next frame.

> In addition, for get more stable when receiving packets, I set
> maximum size for the transmit/receive FIFO and inserts padding
> in receive data.

> Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> ---
>   drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
>   1 files changed, 4 insertions(+), 0 deletions(-)

> diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
> index a753928..11d34f0 100644
> --- a/drivers/net/ethernet/renesas/sh_eth.c
> +++ b/drivers/net/ethernet/renesas/sh_eth.c
> @@ -649,12 +649,16 @@ static struct sh_eth_cpu_data r8a7740_data = {
>   	.eesr_err_check	= EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
>   			  EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
>   			  EESR_TDE | EESR_ECI,
> +	.fdr_value	= 0x0000070f,
> +	.rmcr_value	= 0x00000001,
>
>   	.apr		= 1,
>   	.mpr		= 1,
>   	.tpauser	= 1,
>   	.bculr		= 1,
>   	.hw_swap	= 1,
> +	.rpadir		= 1,
> +	.rpadir_value   = 2 << 16,
>   	.no_trimd	= 1,
>   	.no_ade		= 1,
>   	.tsu		= 1,

    Guennadi, could you check if this patch fixes your issue with NFS. Make 
sure it applies to 'r8a7740_data' (it was misapplied to DaveM's tree).

WBR, Sergei

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-12 16:58   ` Sergei Shtylyov
@ 2013-10-15  7:28     ` Guennadi Liakhovetski
  2013-10-15 21:48       ` Sergei Shtylyov
  0 siblings, 1 reply; 13+ messages in thread
From: Guennadi Liakhovetski @ 2013-10-15  7:28 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Nguyen Hong Ky, David S. Miller, netdev, Ryusuke Sakato,
	Simon Horman

Hi Sergei

On Sat, 12 Oct 2013, Sergei Shtylyov wrote:

> Hello.
> 
> On 07-10-2013 8:29, Nguyen Hong Ky wrote:
> 
> > This patch will fix RX packets errors when receiving big size
> > of data by set bit RNC = 1.
> 
> > RNC - Receive Enable Control
> 
> > 0: Upon completion of reception of one frame, the E-DMAC writes
> > the receive status to the descriptor and clears the RR bit in
> > EDRRR to 0.
> 
> > 1: Upon completion of reception of one frame, the E-DMAC writes
> > (writes back) the receive status to the descriptor. In addition,
> > the E-DMAC reads the next descriptor and prepares for reception
> > of the next frame.
> 
> > In addition, for get more stable when receiving packets, I set
> > maximum size for the transmit/receive FIFO and inserts padding
> > in receive data.
> 
> > Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> > ---
> >   drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
> >   1 files changed, 4 insertions(+), 0 deletions(-)
> 
> > diff --git a/drivers/net/ethernet/renesas/sh_eth.c
> > b/drivers/net/ethernet/renesas/sh_eth.c
> > index a753928..11d34f0 100644
> > --- a/drivers/net/ethernet/renesas/sh_eth.c
> > +++ b/drivers/net/ethernet/renesas/sh_eth.c
> > @@ -649,12 +649,16 @@ static struct sh_eth_cpu_data r8a7740_data = {
> >   	.eesr_err_check	= EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
> >   			  EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
> >   			  EESR_TDE | EESR_ECI,
> > +	.fdr_value	= 0x0000070f,
> > +	.rmcr_value	= 0x00000001,
> > 
> >   	.apr		= 1,
> >   	.mpr		= 1,
> >   	.tpauser	= 1,
> >   	.bculr		= 1,
> >   	.hw_swap	= 1,
> > +	.rpadir		= 1,
> > +	.rpadir_value   = 2 << 16,
> >   	.no_trimd	= 1,
> >   	.no_ade		= 1,
> >   	.tsu		= 1,
> 
>    Guennadi, could you check if this patch fixes your issue with NFS. Make
> sure it applies to 'r8a7740_data' (it was misapplied to DaveM's tree).

Yes, the current -next, which includes this patch (in a slightly different 
form) boots fine over NFS for me.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-15  7:28     ` Guennadi Liakhovetski
@ 2013-10-15 21:48       ` Sergei Shtylyov
  2013-10-16  5:37         ` Guennadi Liakhovetski
  0 siblings, 1 reply; 13+ messages in thread
From: Sergei Shtylyov @ 2013-10-15 21:48 UTC (permalink / raw)
  To: Guennadi Liakhovetski
  Cc: Nguyen Hong Ky, David S. Miller, netdev, Ryusuke Sakato,
	Simon Horman

Hello.

On 10/15/2013 11:28 AM, Guennadi Liakhovetski wrote:

>>> This patch will fix RX packets errors when receiving big size
>>> of data by set bit RNC = 1.

>>> RNC - Receive Enable Control

>>> 0: Upon completion of reception of one frame, the E-DMAC writes
>>> the receive status to the descriptor and clears the RR bit in
>>> EDRRR to 0.

>>> 1: Upon completion of reception of one frame, the E-DMAC writes
>>> (writes back) the receive status to the descriptor. In addition,
>>> the E-DMAC reads the next descriptor and prepares for reception
>>> of the next frame.

>>> In addition, for get more stable when receiving packets, I set
>>> maximum size for the transmit/receive FIFO and inserts padding
>>> in receive data.

>>> Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
>>> ---
>>>    drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
>>>    1 files changed, 4 insertions(+), 0 deletions(-)

>>> diff --git a/drivers/net/ethernet/renesas/sh_eth.c
>>> b/drivers/net/ethernet/renesas/sh_eth.c
>>> index a753928..11d34f0 100644
>>> --- a/drivers/net/ethernet/renesas/sh_eth.c
>>> +++ b/drivers/net/ethernet/renesas/sh_eth.c
>>> @@ -649,12 +649,16 @@ static struct sh_eth_cpu_data r8a7740_data = {
>>>    	.eesr_err_check	= EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
>>>    			  EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
>>>    			  EESR_TDE | EESR_ECI,
>>> +	.fdr_value	= 0x0000070f,
>>> +	.rmcr_value	= 0x00000001,
>>>
>>>    	.apr		= 1,
>>>    	.mpr		= 1,
>>>    	.tpauser	= 1,
>>>    	.bculr		= 1,
>>>    	.hw_swap	= 1,
>>> +	.rpadir		= 1,
>>> +	.rpadir_value   = 2 << 16,
>>>    	.no_trimd	= 1,
>>>    	.no_ade		= 1,
>>>    	.tsu		= 1,

>>     Guennadi, could you check if this patch fixes your issue with NFS. Make
>> sure it applies to 'r8a7740_data' (it was misapplied to DaveM's tree).

> Yes, the current -next, which includes this patch (in a slightly different
> form) boots fine over NFS for me.

    I don't know what you mean by "slightly different form" exactly. Also, I 
was unable to locate the fresh -next tree. 'net-next.git' contains this patch 
in a mismerged form, 'net.git' has Simon's patch that corrects this mismerge.

> Thanks
> Guennadi

WBR, Sergei

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

* Re: [PATCH] net: sh_eth: Fix RX packets errors on R8A7740
  2013-10-15 21:48       ` Sergei Shtylyov
@ 2013-10-16  5:37         ` Guennadi Liakhovetski
  0 siblings, 0 replies; 13+ messages in thread
From: Guennadi Liakhovetski @ 2013-10-16  5:37 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Nguyen Hong Ky, David S. Miller, netdev, Ryusuke Sakato,
	Simon Horman

On Wed, 16 Oct 2013, Sergei Shtylyov wrote:

> Hello.
> 
> On 10/15/2013 11:28 AM, Guennadi Liakhovetski wrote:
> 
> > > > This patch will fix RX packets errors when receiving big size
> > > > of data by set bit RNC = 1.
> 
> > > > RNC - Receive Enable Control
> 
> > > > 0: Upon completion of reception of one frame, the E-DMAC writes
> > > > the receive status to the descriptor and clears the RR bit in
> > > > EDRRR to 0.
> 
> > > > 1: Upon completion of reception of one frame, the E-DMAC writes
> > > > (writes back) the receive status to the descriptor. In addition,
> > > > the E-DMAC reads the next descriptor and prepares for reception
> > > > of the next frame.
> 
> > > > In addition, for get more stable when receiving packets, I set
> > > > maximum size for the transmit/receive FIFO and inserts padding
> > > > in receive data.
> 
> > > > Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> > > > ---
> > > >    drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
> > > >    1 files changed, 4 insertions(+), 0 deletions(-)
> 
> > > > diff --git a/drivers/net/ethernet/renesas/sh_eth.c
> > > > b/drivers/net/ethernet/renesas/sh_eth.c
> > > > index a753928..11d34f0 100644
> > > > --- a/drivers/net/ethernet/renesas/sh_eth.c
> > > > +++ b/drivers/net/ethernet/renesas/sh_eth.c
> > > > @@ -649,12 +649,16 @@ static struct sh_eth_cpu_data r8a7740_data = {
> > > >    	.eesr_err_check	= EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT
> > > > |
> > > >    			  EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE
> > > > |
> > > >    			  EESR_TDE | EESR_ECI,
> > > > +	.fdr_value	= 0x0000070f,
> > > > +	.rmcr_value	= 0x00000001,
> > > > 
> > > >    	.apr		= 1,
> > > >    	.mpr		= 1,
> > > >    	.tpauser	= 1,
> > > >    	.bculr		= 1,
> > > >    	.hw_swap	= 1,
> > > > +	.rpadir		= 1,
> > > > +	.rpadir_value   = 2 << 16,
> > > >    	.no_trimd	= 1,
> > > >    	.no_ade		= 1,
> > > >    	.tsu		= 1,
> 
> > >     Guennadi, could you check if this patch fixes your issue with NFS.
> > > Make
> > > sure it applies to 'r8a7740_data' (it was misapplied to DaveM's tree).
> 
> > Yes, the current -next, which includes this patch (in a slightly different
> > form) boots fine over NFS for me.
> 
>    I don't know what you mean by "slightly different form" exactly. Also, I
> was unable to locate the fresh -next tree.

git://gitorious.org/thierryreding/linux-next.git

> 'net-next.git' contains this patch
> in a mismerged form, 'net.git' has Simon's patch that corrects this mismerge.
> 
> > Thanks
> > Guennadi
> 
> WBR, Sergei
> 

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

end of thread, other threads:[~2013-10-16  5:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-07  6:29 [PATCH] net: sh_eth: Fix RX packets errors on R8A7740 Nguyen Hong Ky
2013-10-07  6:29 ` Nguyen Hong Ky
2013-10-09  4:28   ` Simon Horman
2013-10-09  5:26     ` Simon Horman
2013-10-09  5:38       ` Nguyen Hong Ky
2013-10-10  5:29         ` Simon Horman
2013-10-12 16:58   ` Sergei Shtylyov
2013-10-15  7:28     ` Guennadi Liakhovetski
2013-10-15 21:48       ` Sergei Shtylyov
2013-10-16  5:37         ` Guennadi Liakhovetski
2013-10-08 20:04 ` David Miller
2013-10-09  4:24   ` Simon Horman
2013-10-09 20:27     ` Sergei Shtylyov

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