Skip to contentSkip to conversation

iwlwifi: Silence tfds_in_queue message

PATCH In review Adel Gadllah 5 participants 11 messages Mar 14, 2010 – Mar 19, 2010 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwlwifi: Silence tfds_in_queue message

Quoted 1 line

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001

From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Cc Reinette Chatre <[email protected]>
Cc John W. Linville <[email protected]>
---
 drivers/net/wireless/iwlwifi/iwl-tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/drivers/net/wireless/iwlwifi/iwl-tx.c
index 045e4a6..d6222aa 100644

drivers/net/wireless/iwlwifi/iwl-tx.c +1 -1
@@ -161,7 +161,7 @@ void iwl_free_tfds_in_queue(struct iwl_priv *priv,
 	if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed)
 		priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
 	else {
-		IWL_ERR(priv, "free more than tfds_in_queue (%u:%d)\n",
+		IWL_DEBUG_TX(priv, "free more than tfds_in_queue (%u:%d)\n",
 			priv->stations[sta_id].tid[tid].tfds_in_queue,
 			freed);
 		priv->stations[sta_id].tid[tid].tfds_in_queue = 0;
Signature · 1 line
1.6.6.1
#1 lore raw

Hi Adel

Quoted 10 lines · Adel Gadllah

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001
From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Did you fill a bug report on http://bugzilla.intellinuxwireless.org/
to allow Intel fix the real root of the issue. If not please do. You may CC me to bug report.

In general patch looks good for me.

Cheers
Stanislaw

#2 lore raw

2010/3/16 Stanislaw Gruszka <[email protected]>:

Quoted 1 line

Hi Adel

Hi,

Quoted 9 lines · Adel Gadllah
Quoted 8 lines

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001
From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

Quoted 6 lines
Quoted 2 lines

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Did you fill a bug report on http://bugzilla.intellinuxwireless.org/
to allow Intel fix the real root of the issue. If not please do. You may CC me to bug report.

Done

Quoted 5 lines

In general patch looks good for me.

Cheers
Stanislaw

Thanks,
Adel

Acked-by on v1 1/1
#3 lore raw
In reply to Adel Gadllah
Quoted 8 lines · Adel Gadllah

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001
From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

Quoted 8 lines

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Cc Reinette Chatre <[email protected]>
Cc John W. Linville <[email protected]>

Reinette

#4 lore raw
Quoted 12 lines · reinette chatre
Quoted 11 lines · Adel Gadllah

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001
From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Quoted 7 lines
Quoted 5 lines
Cc Reinette Chatre <[email protected]>
Cc John W. Linville <[email protected]>

Actually I would like to NACK the patch.

We did mistake during backporting to 2.6.32 . In iwl_tx_queue_reclaim() we make make double nfreed--. I don't know how we miss that :(

Greg please take patch from the next email if Adel conform that it fix the issue.

Thanks
Stanislaw

#5 lore raw

PATCH 1/1 iwlwifi: fix nfreed--

During backporting of a120e912eb51e347f36c71b60a1d13af74d30e83 ("iwlwifi: sanity check before counting number of tfds can be free") we forget one hunk, what make lot of messages "free more than tfds_in_queue" show up in dmesg.

---
 drivers/net/wireless/iwlwifi/iwl-tx.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl-tx.c +0 -1
index f449f06..cf5ac00 100644
@@ -1096,7 +1096,6 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
 			priv->cfg->ops->lib->txq_inval_byte_cnt_tbl(priv, txq);
 
 		priv->cfg->ops->lib->txq_free_tfd(priv, txq);
-		nfreed++;
 	}
 	return nfreed;
 }
Signature · 1 line
1.6.2.5
#6 lore raw

Re: [PATCH 2.6.32] iwlwifi: fix nfreed--

Hi Gruszka,

Quoted 15 lines · Stanislaw Gruszka

During backporting of a120e912eb51e347f36c71b60a1d13af74d30e83 ("iwlwifi: sanity check before counting number of tfds can be free") we forget one hunk, what make lot of messages "free more than tfds_in_queue" show up in dmesg.

---
 drivers/net/wireless/iwlwifi/iwl-tx.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl-tx.c +0 -0
index f449f06..cf5ac00 100644

drivers/net/wireless/iwlwifi/iwl-tx.c int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) · line 1101

Quoted 7 lines
drivers/net/wireless/iwlwifi/iwl-tx.c +0 -1
@@ -1096,7 +1096,6 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
 			priv->cfg->ops->lib->txq_inval_byte_cnt_tbl(priv, txq);
 
 		priv->cfg->ops->lib->txq_free_tfd(priv, txq);
-		nfreed++;
 	}
 	return nfreed;
 }

Thanks for catch this one, it puzzle me a lot because I am using the latest code and did not realize the "nfreed++" still there in the backport version.

Wey

author Tested-by on v1 1/1
#7 lore raw

Re: [PATCH 2.6.32] iwlwifi: fix nfreed--

In reply to Stanislaw Gruszka

2010/3/18 Stanislaw Gruszka <[email protected]>:

Quoted 6 lines

During backporting of a120e912eb51e347f36c71b60a1d13af74d30e83 ("iwlwifi: sanity check before counting number of tfds can be free") we forget one hunk, what make lot of messages "free more than tfds_in_queue" show up in dmesg.

Good catch, that does indeed fix it.

#8 lore raw
In reply to Stanislaw Gruszka

2010/3/18 Stanislaw Gruszka <[email protected]>:

Quoted 21 lines · reinette chatre
Quoted 12 lines · Adel Gadllah
Quoted 11 lines

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001
From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Quoted 7 lines
Quoted 5 lines
Cc Reinette Chatre <[email protected]>
Cc John W. Linville <[email protected]>
Quoted 7 lines

Actually I would like to NACK the patch.

We did mistake during backporting to 2.6.32 . In iwl_tx_queue_reclaim() we make make double nfreed--. I don't know how we miss that :(

Greg please take patch from the next email if Adel conform that it fix the issue.

Yeah not sure that making it a debug message is a bad idea though (but even if we want that it doesn't matter much for stable).

#9 lore raw

Hi Stanislaw,

only to clarify:
There is no need for "iwlwifi: Silence tfds_in_queue message" patch from wireless-2.6 GIT?
I mean "[2.6.32] iwlwifi: fix nfreed--" is enough for solving the mentionned problem?

Kind Regards,
- Sedat -

Quoted 37 lines · Adel Gadllah

2010/3/18 Stanislaw Gruszka <[email protected]>:

Quoted 21 lines · reinette chatre
Quoted 12 lines · Adel Gadllah
Quoted 11 lines

From 83bf3f1dba41e3dccdef4fecfccb094559568342 Mon Sep 17 00:00:00 2001
From: Adel Gadllah <[email protected]>
Date: Sun, 14 Mar 2010 19:16:25 +0100
Subject: [PATCH] iwlwifi: Silence tfds_in_queue message

Commit a239a8b47cc0e5e6d7416a89f340beac06d5edaa introduced a noisy message, that fills up the log very fast.

The error seems not to be fatal (the connection is stable and performance is ok), so make it IWL_DEBUG_TX rather than IWL_ERR.

Quoted 7 lines
Quoted 5 lines
Cc Reinette Chatre <[email protected]>
Cc John W. Linville <[email protected]>
Quoted 7 lines

Actually I would like to NACK the patch.

We did mistake during backporting to 2.6.32 . In iwl_tx_queue_reclaim() we make make double nfreed--. I don't know how we miss that :(

Greg please take patch from the next email if Adel conform that it fix the issue.

Yeah not sure that making it a debug message is a bad idea though (but even if we want that it doesn't matter much for stable).
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

#10 lore raw
Quoted 6 lines · Sedat Dilek

only to clarify:
There is no need for "iwlwifi: Silence tfds_in_queue message" patch from wireless-2.6 GIT?

I mean "[2.6.32] iwlwifi: fix nfreed--" is enough for solving the mentionned problem?

Yes. That was confirmed by Adel.

Cheers
Stanislaw