Commit 6e3f03b7 authored by Divy Le Ray's avatar Divy Le Ray Committed by David S. Miller

cxgb3 - SGE doorbell overflow warning

Log doorbell Fifo overflow
Signed-off-by: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 52b810d3
...@@ -172,6 +172,14 @@ ...@@ -172,6 +172,14 @@
#define A_SG_INT_CAUSE 0x5c #define A_SG_INT_CAUSE 0x5c
#define S_HIPIODRBDROPERR 11
#define V_HIPIODRBDROPERR(x) ((x) << S_HIPIODRBDROPERR)
#define F_HIPIODRBDROPERR V_HIPIODRBDROPERR(1U)
#define S_LOPIODRBDROPERR 10
#define V_LOPIODRBDROPERR(x) ((x) << S_LOPIODRBDROPERR)
#define F_LOPIODRBDROPERR V_LOPIODRBDROPERR(1U)
#define S_RSPQDISABLED 3 #define S_RSPQDISABLED 3
#define V_RSPQDISABLED(x) ((x) << S_RSPQDISABLED) #define V_RSPQDISABLED(x) ((x) << S_RSPQDISABLED)
#define F_RSPQDISABLED V_RSPQDISABLED(1U) #define F_RSPQDISABLED V_RSPQDISABLED(1U)
......
...@@ -2458,6 +2458,10 @@ void t3_sge_err_intr_handler(struct adapter *adapter) ...@@ -2458,6 +2458,10 @@ void t3_sge_err_intr_handler(struct adapter *adapter)
"(0x%x)\n", (v >> S_RSPQ0DISABLED) & 0xff); "(0x%x)\n", (v >> S_RSPQ0DISABLED) & 0xff);
} }
if (status & (F_HIPIODRBDROPERR | F_LOPIODRBDROPERR))
CH_ALERT(adapter, "SGE dropped %s priority doorbell\n",
status & F_HIPIODRBDROPERR ? "high" : "lo");
t3_write_reg(adapter, A_SG_INT_CAUSE, status); t3_write_reg(adapter, A_SG_INT_CAUSE, status);
if (status & (F_RSPQCREDITOVERFOW | F_RSPQDISABLED)) if (status & (F_RSPQCREDITOVERFOW | F_RSPQDISABLED))
t3_fatal_err(adapter); t3_fatal_err(adapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment