netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: macb: Add better comment for RXUBR handling
@ 2015-05-13 22:01 Nathan Sullivan
  2015-05-15  7:49 ` Nicolas Ferre
  2015-05-15 16:13 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Nathan Sullivan @ 2015-05-13 22:01 UTC (permalink / raw)
  To: nicolas.ferre; +Cc: netdev, linux-kernel, Nathan Sullivan

Describe the handler for RXUBR better with a new comment.

Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
Reviewied-by: Josh Cartwright <joshc@ni.com>
Reviewied-by: Ben Shelton <ben.shelton@ni.com>
---
 drivers/net/ethernet/cadence/macb.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 61aa570..5f10dfc 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -1037,6 +1037,12 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id)
 		 * add that if/when we get our hands on a full-blown MII PHY.
 		 */
 
+		/* There is a hardware issue under heavy load where DMA can
+		 * stop, this causes endless "used buffer descriptor read"
+		 * interrupts but it can be cleared by re-enabling RX. See
+		 * the at91 manual, section 41.3.1 or the Zynq manual
+		 * section 16.7.4 for details.
+		 */
 		if (status & MACB_BIT(RXUBR)) {
 			ctrl = macb_readl(bp, NCR);
 			macb_writel(bp, NCR, ctrl & ~MACB_BIT(RE));
-- 
1.7.10.4

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

* Re: [PATCH] net: macb: Add better comment for RXUBR handling
  2015-05-13 22:01 [PATCH] net: macb: Add better comment for RXUBR handling Nathan Sullivan
@ 2015-05-15  7:49 ` Nicolas Ferre
  2015-05-15 16:13 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2015-05-15  7:49 UTC (permalink / raw)
  To: Nathan Sullivan, David Miller; +Cc: netdev, linux-kernel

Le 14/05/2015 00:01, Nathan Sullivan a écrit :
> Describe the handler for RXUBR better with a new comment.
> 
> Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
> Reviewied-by: Josh Cartwright <joshc@ni.com>
> Reviewied-by: Ben Shelton <ben.shelton@ni.com>

Thanks Nathan: good that you've added this comment!

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

> ---
>  drivers/net/ethernet/cadence/macb.c |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
> index 61aa570..5f10dfc 100644
> --- a/drivers/net/ethernet/cadence/macb.c
> +++ b/drivers/net/ethernet/cadence/macb.c
> @@ -1037,6 +1037,12 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id)
>  		 * add that if/when we get our hands on a full-blown MII PHY.
>  		 */
>  
> +		/* There is a hardware issue under heavy load where DMA can
> +		 * stop, this causes endless "used buffer descriptor read"
> +		 * interrupts but it can be cleared by re-enabling RX. See
> +		 * the at91 manual, section 41.3.1 or the Zynq manual
> +		 * section 16.7.4 for details.
> +		 */
>  		if (status & MACB_BIT(RXUBR)) {
>  			ctrl = macb_readl(bp, NCR);
>  			macb_writel(bp, NCR, ctrl & ~MACB_BIT(RE));
> 


-- 
Nicolas Ferre

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

* Re: [PATCH] net: macb: Add better comment for RXUBR handling
  2015-05-13 22:01 [PATCH] net: macb: Add better comment for RXUBR handling Nathan Sullivan
  2015-05-15  7:49 ` Nicolas Ferre
@ 2015-05-15 16:13 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2015-05-15 16:13 UTC (permalink / raw)
  To: nathan.sullivan; +Cc: nicolas.ferre, netdev, linux-kernel

From: Nathan Sullivan <nathan.sullivan@ni.com>
Date: Wed, 13 May 2015 17:01:36 -0500

> Describe the handler for RXUBR better with a new comment.
> 
> Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
> Reviewied-by: Josh Cartwright <joshc@ni.com>
> Reviewied-by: Ben Shelton <ben.shelton@ni.com>

Applied, thanks.

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

end of thread, other threads:[~2015-05-15 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 22:01 [PATCH] net: macb: Add better comment for RXUBR handling Nathan Sullivan
2015-05-15  7:49 ` Nicolas Ferre
2015-05-15 16:13 ` David Miller

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