iwlagn: disply queue read/write pointer when stuck
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Tue, 6 Sep 2011 16:31:22 +0000 (09:31 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Sep 2011 17:56:40 +0000 (13:56 -0400)
When driver detect queue stuck, display current read/write pointer before
perform frimware reload.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-trans.c

index 5bf6250612ec4394ee38806ed5a8e18788c76614..c495fc302deb414243f8bbb29ecbeba9bfcc3b73 100644 (file)
@@ -1497,6 +1497,8 @@ static int iwl_trans_pcie_check_stuck_queue(struct iwl_trans *trans, int cnt)
        if (time_after(jiffies, timeout)) {
                IWL_ERR(trans, "Queue %d stuck for %u ms.\n", q->id,
                        hw_params(trans).wd_timeout);
+               IWL_ERR(trans, "Current read_ptr %d write_ptr %d\n",
+                       q->read_ptr, q->write_ptr);
                return 1;
        }