* [PATCH] net: macb: Do not enable RX buffer used interrupt
@ 2015-05-04 17:43 Nathan Sullivan
2015-05-04 22:18 ` Nathan Sullivan
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Sullivan @ 2015-05-04 17:43 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel, Nathan Sullivan
This driver does not handle the RX buffer used interrupt, nor does
it need to due to handling the RX overflow interrupt already. Enabling
the interrupt would lead to an infinite loop in the ISR.
Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
---
drivers/net/ethernet/cadence/macb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 4104d49..b466697 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -44,8 +44,7 @@
/* level of occupied TX descriptors under which we wake up TX process */
#define MACB_TX_WAKEUP_THRESH (3 * TX_RING_SIZE / 4)
-#define MACB_RX_INT_FLAGS (MACB_BIT(RCOMP) | MACB_BIT(RXUBR) \
- | MACB_BIT(ISR_ROVR))
+#define MACB_RX_INT_FLAGS (MACB_BIT(RCOMP) | MACB_BIT(ISR_ROVR))
#define MACB_TX_ERR_FLAGS (MACB_BIT(ISR_TUND) \
| MACB_BIT(ISR_RLE) \
| MACB_BIT(TXERR))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: macb: Do not enable RX buffer used interrupt
2015-05-04 17:43 [PATCH] net: macb: Do not enable RX buffer used interrupt Nathan Sullivan
@ 2015-05-04 22:18 ` Nathan Sullivan
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Sullivan @ 2015-05-04 22:18 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel
On Mon, May 04, 2015 at 12:43:15PM -0500, Nathan Sullivan wrote:
> This driver does not handle the RX buffer used interrupt, nor does
> it need to due to handling the RX overflow interrupt already. Enabling
> the interrupt would lead to an infinite loop in the ISR.
>
Well, that may have been premature. We are seeing the RXUBR interrupt get
stuck asserted on Zynq hardware, and I failed to realize the driver clears
RXUBR already in macb_interrupt... Not enabling that interrupt keeps my
system responsive, but it's not the correct solution to this issue.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-04 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04 17:43 [PATCH] net: macb: Do not enable RX buffer used interrupt Nathan Sullivan
2015-05-04 22:18 ` Nathan Sullivan
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).