Skip to contentSkip to conversation

brcmsmac: Reduce log spam in heavy tx, make err print in debug

PATCH In review John Greene 3 participants 5 messages Jun 3, 2013 – Jun 4, 2013 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 brcmsmac: Reduce log spam in heavy tx, make err print in debug

Move message to debug mode to reduce log spam under heavy tx (iperf) load. This message prints in ht debug mode only:
brcms_c_ampdu_dotxstatus_complete: Pkt tx suppressed, illegal channel possibly 153

---
 drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
index 1585cc5..bd98285 100644
@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,
 		if (supr_status) {
 			update_rate = false;
 			if (supr_status == TX_STATUS_SUPR_BADCH) {
-				brcms_err(wlc->hw->d11core,
+				brcms_dbg_ht(wlc->hw->d11core,
 					  "%s: Pkt tx suppressed, illegal channel possibly %d\n",
 					  __func__, CHSPEC_CHANNEL(
 					  wlc->default_bss->chanspec));
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 1 line · John Greene

Move message to debug mode to reduce log spam under heavy tx (iperf) load.

[]

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, · line 906

Quoted 9 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,
 		if (supr_status) {
 			update_rate = false;
 			if (supr_status == TX_STATUS_SUPR_BADCH) {
-				brcms_err(wlc->hw->d11core,
+				brcms_dbg_ht(wlc->hw->d11core,
 					  "%s: Pkt tx suppressed, illegal channel possibly %d\n",
 					  __func__, CHSPEC_CHANNEL(
 					  wlc->default_bss->chanspec));

net_ratelimited instead?

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

Move message to debug mode to reduce log spam under heavy tx (iperf) load.

[]

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

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

[]

Quoted 11 lines

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

Quoted 9 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,
  		if (supr_status) {
  			update_rate = false;
  			if (supr_status == TX_STATUS_SUPR_BADCH) {
-				brcms_err(wlc->hw->d11core,
+				brcms_dbg_ht(wlc->hw->d11core,
  					  "%s: Pkt tx suppressed, illegal channel possibly %d\n",
  					  __func__, CHSPEC_CHANNEL(
  					  wlc->default_bss->chanspec));

net_ratelimited instead?

Yes and only when driver debug level is set.

Regards,
Arend

#3 lore raw
Quoted 22 lines · Arend van Spriel
Quoted 7 lines · Joe Perches
Quoted 2 lines · John Greene

Move message to debug mode to reduce log spam under heavy tx (iperf) load.

[]

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

Quoted 2 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0 -0

[]

Quoted 13 lines
Quoted 11 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct
 ampdu_info *ampdu, struct scb *scb,
          if (supr_status) {
              update_rate = false;
              if (supr_status == TX_STATUS_SUPR_BADCH) {
-                brcms_err(wlc->hw->d11core,
+                brcms_dbg_ht(wlc->hw->d11core,
                        "%s: Pkt tx suppressed, illegal channel
 possibly %d\n",
                        __func__, CHSPEC_CHANNEL(
                        wlc->default_bss->chanspec));

net_ratelimited instead?

Quoted 6 lines

Yes and only when driver debug level is set.

Regards,
Arend

Thanks for the ACK, Arend. And comments..live and learn.

Certainly they would be reasonable also. Issue (confined to an annoyance level, hence the workaround) is why this comes up when the channel being flagged is the same as the one the AP I'm connected with is on. That is the root of the problem, more work needed on that point which probably would render this moot.

Signature · 1 line
John Greene
Acked-by on v1 1/1
#4 lore raw
In reply to John Greene
Quoted 4 lines · John Greene

Move message to debug mode to reduce log spam under heavy tx (iperf) load. This message prints in ht debug mode only:
brcms_c_ampdu_dotxstatus_complete: Pkt tx suppressed, illegal channel possibly 153

Quoted 5 lines
---
  drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)