Skip to contentSkip to conversation

brcmsmac: Further reduce log spam from tx phy messages

PATCH Superseded John Greene 2 participants 4 messages Jul 12, 2013 – Jul 15, 2013 Networking drivers (wireless)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 brcmsmac: Further reduce log spam from tx phy messages

Relegate 2 phy messages to debug status as they create excessive log spam, noted in multiple bugzillas for brcmsmac v3.8 and up. This is a follow on to net-next 99e94940697adec4f84758adb2db71f4a82c7ba5:
brcmsmac: Reduce log spam in heavy tx, make err print in debug

brcmsmac bcma0:0: phyerr 0x10, rate 0x14 brcmsmac bcma0:0: brcms_c_ampdu_dotxstatus_complete:
ampdu tx phy error (0x10)

---
 drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 2 +-
 drivers/net/wireless/brcm80211/brcmsmac/main.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
index bd98285..42efac7 100644
@@ -928,7 +928,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,
 			}
 		} else if (txs->phyerr) {
 			update_rate = false;
-			brcms_err(wlc->hw->d11core,
+			brcms_dbg_ht(wlc->hw->d11core,
 				  "%s: ampdu tx phy error (0x%x)\n",
 				  __func__, txs->phyerr);
 		}
drivers/net/wireless/brcm80211/brcmsmac/main.c +1 -1
index 9fd6f2f..fdb4c3f 100644
@@ -882,7 +882,7 @@ brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs)
 	mcl = le16_to_cpu(txh->MacTxControlLow);
 
 	if (txs->phyerr)
-		brcms_err(wlc->hw->d11core, "phyerr 0x%x, rate 0x%x\n",
+		brcms_dbg_tx(wlc->hw->d11core, "phyerr 0x%x, rate 0x%x\n",
 			  txs->phyerr, txh->MainRates);
 
 	if (txs->frameid != le16_to_cpu(txh->TxFrameID)) {
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 2 lines · John Greene

Relegate 2 phy messages to debug status as they create excessive log spam, noted in multiple bugzillas for brcmsmac v3.8 and up.

Hi John,

Just trivia:

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0

[]

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0
@@ -928,7 +928,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,

[]

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, · line 933

Quoted 4 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
-			brcms_err(wlc->hw->d11core,
+			brcms_dbg_ht(wlc->hw->d11core,
 				  "%s: ampdu tx phy error (0x%x)\n",
 				  __func__, txs->phyerr);

Please keep the indentation of the arguments of the same statement aligned to the open parenthesis.

drivers/net/wireless/brcm80211/brcmsmac/main.c

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/main.c +0 -0

[]

drivers/net/wireless/brcm80211/brcmsmac/main.c brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs)

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/main.c +0 -0
@@ -882,7 +882,7 @@ brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs)

[]

drivers/net/wireless/brcm80211/brcmsmac/main.c brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs) · line 886

Quoted 3 lines
drivers/net/wireless/brcm80211/brcmsmac/main.c +1 -1
-		brcms_err(wlc->hw->d11core, "phyerr 0x%x, rate 0x%x\n",
+		brcms_dbg_tx(wlc->hw->d11core, "phyerr 0x%x, rate 0x%x\n",
 			  txs->phyerr, txh->MainRates);

Here too.

#2 lore raw
Quoted 31 lines · Joe Perches
Quoted 2 lines · John Greene

Relegate 2 phy messages to debug status as they create excessive log spam, noted in multiple bugzillas for brcmsmac v3.8 and up.

Hi John,

Just trivia:

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0

[]

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0
@@ -928,7 +928,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,

[]

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, · line 933

Quoted 4 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
-			brcms_err(wlc->hw->d11core,
+			brcms_dbg_ht(wlc->hw->d11core,
  				  "%s: ampdu tx phy error (0x%x)\n",
  				  __func__, txs->phyerr);

Please keep the indentation of the arguments of the same statement aligned to the open parenthesis.

drivers/net/wireless/brcm80211/brcmsmac/main.c

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/main.c +0 -0

[]

drivers/net/wireless/brcm80211/brcmsmac/main.c brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs)

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/main.c +0 -0
@@ -882,7 +882,7 @@ brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs)

[]

drivers/net/wireless/brcm80211/brcmsmac/main.c brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs) · line 886

Quoted 3 lines
drivers/net/wireless/brcm80211/brcmsmac/main.c +1 -1
-		brcms_err(wlc->hw->d11core, "phyerr 0x%x, rate 0x%x\n",
+		brcms_dbg_tx(wlc->hw->d11core, "phyerr 0x%x, rate 0x%x\n",
  			  txs->phyerr, txh->MainRates);

Here too.

Quoted 5 lines

--
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

Thanks Joe. My oversight. I wish the checkpatch flagged this stuff. I'll fix this and post v2.

Signature · 1 line
John Greene
#3 lore raw
Quoted 2 lines · John Greene
Quoted 1 line · Joe Perches

On Fri, 2013-07-12 at 10:55 -0400, John Greene wrote:

[]

Quoted 5 lines
Quoted 5 lines

Just trivia:

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0

[]

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,

Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0
@@ -928,7 +928,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,

[]

Quoted 7 lines
Quoted 7 lines

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, · line 933

Quoted 4 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
-			brcms_err(wlc->hw->d11core,
+			brcms_dbg_ht(wlc->hw->d11core,
  				  "%s: ampdu tx phy error (0x%x)\n",
  				  __func__, txs->phyerr);

Please keep the indentation of the arguments of the same statement aligned to the open parenthesis.

[]

Quoted 1 line

Thanks Joe. My oversight. I wish the checkpatch flagged this stuff.

It does if you use the --strict option.