mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
wifi: rtw89: refine MCC C2H debug logs
To debug channel concurrency more centrally, we add a new debug flag, RTW89_DBG_CHAN, for channel related things, especially channel concurrency. Then, we change MCC (multi-channel concurrency) C2H (chip to host packets) debug flag to it. Besides, refine debug logs to show TSF in u64 directly. Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230119064342.65391-2-pkshih@realtek.com
This commit is contained in:
parent
24d72944d7
commit
214a98b151
@ -28,6 +28,7 @@ enum rtw89_debug_mask {
|
||||
RTW89_DBG_STATE = BIT(17),
|
||||
RTW89_DBG_WOW = BIT(18),
|
||||
RTW89_DBG_UL_TB = BIT(19),
|
||||
RTW89_DBG_CHAN = BIT(20),
|
||||
|
||||
RTW89_DBG_UNEXP = BIT(31),
|
||||
};
|
||||
|
@ -4295,12 +4295,12 @@ rtw89_mac_c2h_mcc_rcv_ack(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len
|
||||
case H2C_FUNC_MCC_SET_DURATION:
|
||||
break;
|
||||
default:
|
||||
rtw89_debug(rtwdev, RTW89_DBG_FW,
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"invalid MCC C2H RCV ACK: func %d\n", func);
|
||||
return;
|
||||
}
|
||||
|
||||
rtw89_debug(rtwdev, RTW89_DBG_FW,
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"MCC C2H RCV ACK: group %d, func %d\n", group, func);
|
||||
}
|
||||
|
||||
@ -4328,12 +4328,12 @@ rtw89_mac_c2h_mcc_req_ack(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len
|
||||
case H2C_FUNC_DEL_MCC_GROUP:
|
||||
case H2C_FUNC_RESET_MCC_GROUP:
|
||||
default:
|
||||
rtw89_debug(rtwdev, RTW89_DBG_FW,
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"invalid MCC C2H REQ ACK: func %d\n", func);
|
||||
return;
|
||||
}
|
||||
|
||||
rtw89_debug(rtwdev, RTW89_DBG_FW,
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"MCC C2H REQ ACK: group %d, func %d, return code %d\n",
|
||||
group, func, retcode);
|
||||
|
||||
@ -4361,6 +4361,11 @@ rtw89_mac_c2h_mcc_tsf_rpt(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len
|
||||
rpt->tsf_y_low = RTW89_GET_MAC_C2H_MCC_TSF_RPT_TSF_LOW_Y(c2h->data);
|
||||
rpt->tsf_y_high = RTW89_GET_MAC_C2H_MCC_TSF_RPT_TSF_HIGH_Y(c2h->data);
|
||||
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"MCC C2H TSF RPT: macid %d> %llu, macid %d> %llu\n",
|
||||
rpt->macid_x, (u64)rpt->tsf_x_high << 32 | rpt->tsf_x_low,
|
||||
rpt->macid_y, (u64)rpt->tsf_y_high << 32 | rpt->tsf_y_low);
|
||||
|
||||
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_MCC_REQ_TSF);
|
||||
rtw89_complete_cond(&rtwdev->mcc.wait, cond, &data);
|
||||
}
|
||||
@ -4418,14 +4423,14 @@ rtw89_mac_c2h_mcc_status_rpt(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32
|
||||
rsp = false;
|
||||
break;
|
||||
default:
|
||||
rtw89_debug(rtwdev, RTW89_DBG_FW,
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"invalid MCC C2H STS RPT: status %d\n", status);
|
||||
return;
|
||||
}
|
||||
|
||||
rtw89_debug(rtwdev, RTW89_DBG_FW,
|
||||
"MCC C2H STS RPT: group %d, macid %d, status %d, tsf {%d, %d}\n",
|
||||
group, macid, status, tsf_low, tsf_high);
|
||||
rtw89_debug(rtwdev, RTW89_DBG_CHAN,
|
||||
"MCC C2H STS RPT: group %d, macid %d, status %d, tsf %llu\n",
|
||||
group, macid, status, (u64)tsf_high << 32 | tsf_low);
|
||||
|
||||
if (!rsp)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user