cxgb3 - SGE doorbell overflow warning
authorDivy Le Ray <divy@chelsio.com>
Wed, 22 Aug 2007 03:49:10 +0000 (20:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:47 +0000 (16:50 -0700)
Log doorbell Fifo overflow

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/cxgb3/regs.h
drivers/net/cxgb3/sge.c

index aa80313c922ef3913e5f85796c51921111505a45..282427877ea921953eb6a1351958bf7eaa73dd5e 100644 (file)
 
 #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 V_RSPQDISABLED(x) ((x) << S_RSPQDISABLED)
 #define F_RSPQDISABLED    V_RSPQDISABLED(1U)
index 069c1aca8a6bf299185be8da3570c88cd1cb1fd9..9233bbba9e91767186adf329f569d2c92dca181d 100644 (file)
@@ -2458,6 +2458,10 @@ void t3_sge_err_intr_handler(struct adapter *adapter)
                         "(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);
        if (status & (F_RSPQCREDITOVERFOW | F_RSPQDISABLED))
                t3_fatal_err(adapter);