qcacld-3.0: WMA: Reduce the log spam in kmsg

Move the logs to appropriate log levels to reduce
the log spam in kmsg.

Change-Id: I195a0a16f5b6baa61243ddabc43beccf24594270
CRs-Fixed: 2014745
This commit is contained in:
Srinivas Girigowda
2017-03-09 15:44:12 -08:00
committed by Sandeep Puligilla
parent 7f48157556
commit f1472126a0
7 changed files with 49 additions and 51 deletions

View File

@@ -2769,7 +2769,7 @@ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen,
if ((pFc->type == SIR_MAC_MGMT_FRAME) &&
(pFc->subType != SIR_MAC_MGMT_PROBE_REQ) &&
(pFc->subType != SIR_MAC_MGMT_PROBE_RSP)) {
WMA_LOGE("TX MGMT - Type %hu, SubType %hu seq_num[%d]",
WMA_LOGD("TX MGMT - Type %hu, SubType %hu seq_num[%d]",
pFc->type, pFc->subType,
((mHdr->seqControl.seqNumHi << 4) |
mHdr->seqControl.seqNumLo));
@@ -3010,7 +3010,7 @@ void wma_tx_abort(uint8_t vdev_id)
__func__, iface->handle);
return;
}
WMA_LOGI("%s: vdevid %d bssid %pM", __func__, vdev_id, iface->bssid);
WMA_LOGD("%s: vdevid %d bssid %pM", __func__, vdev_id, iface->bssid);
wma_vdev_set_pause_bit(vdev_id, PAUSE_TYPE_HOST);
cdp_fc_vdev_pause(cds_get_context(QDF_MODULE_ID_SOC),
iface->handle,

View File

@@ -2184,7 +2184,7 @@ int wma_peer_assoc_conf_handler(void *handle, uint8_t *cmd_param_info,
/* peer assoc conf event means the cmd succeeds */
params->status = QDF_STATUS_SUCCESS;
WMA_LOGE(FL("Send ADD_STA_RSP: statype %d vdev_id %d aid %d bssid %pM staIdx %d status %d"),
WMA_LOGD(FL("Send ADD_STA_RSP: statype %d vdev_id %d aid %d bssid %pM staIdx %d status %d"),
params->staType, params->smesessionId,
params->assocId, params->bssId, params->staIdx,
params->status);
@@ -2200,7 +2200,8 @@ int wma_peer_assoc_conf_handler(void *handle, uint8_t *cmd_param_info,
/* peer assoc conf event means the cmd succeeds */
params->status = QDF_STATUS_SUCCESS;
WMA_LOGE(FL("Send ADD BSS RSP: opermode %d update_bss %d nw_type %d bssid %pM"
WMA_LOGD(FL("Send ADD BSS RSP: opermode: %d update_bss: %d"
" nw_type: %d bssid: %pM"
" staIdx %d status %d"), params->operMode,
params->updateBss, params->nwType, params->bssId,
params->staContext.staIdx, params->status);

View File

@@ -511,7 +511,7 @@ QDF_STATUS wma_process_dhcp_ind(tp_wma_handle wma_handle,
return QDF_STATUS_E_FAILURE;
}
WMA_LOGI("%s: WMA --> WMI_PEER_SET_PARAM triggered by DHCP, "
WMA_LOGD("%s: WMA --> WMI_PEER_SET_PARAM triggered by DHCP, "
"msgType=%s,"
"device_mode=%d, macAddr=" MAC_ADDRESS_STR,
__func__,
@@ -1264,7 +1264,7 @@ int wma_oem_data_response_handler(void *handle,
qdf_mem_copy(oem_rsp->data, data, datalen);
WMA_LOGI(FL("Sending OEM_DATA_RSP(len: %d) to upper layer"), datalen);
WMA_LOGD("Sending OEM_DATA_RSP(len: %d) to upper layer", datalen);
pmac->sme.oem_data_rsp_callback(oem_rsp);
@@ -3189,7 +3189,6 @@ void wma_del_ts_req(tp_wma_handle wma, tDelTsParams *msg)
if (msg->setRICparams == true)
wma_set_ric_req(wma, msg, false);
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
qdf_mem_free(msg);
}
@@ -4367,14 +4366,14 @@ QDF_STATUS wma_process_ch_avoid_update_req(tp_wma_handle wma_handle,
return QDF_STATUS_E_FAILURE;
}
WMA_LOGI("%s: WMA --> WMI_CHAN_AVOID_UPDATE", __func__);
WMA_LOGD("%s: WMA --> WMI_CHAN_AVOID_UPDATE", __func__);
status = wmi_unified_process_ch_avoid_update_cmd(
wma_handle->wmi_handle);
if (QDF_IS_STATUS_ERROR(status))
return status;
WMA_LOGI("%s: WMA --> WMI_CHAN_AVOID_UPDATE sent through WMI",
WMA_LOGD("%s: WMA --> WMI_CHAN_AVOID_UPDATE sent through WMI",
__func__);
return status;
}
@@ -5784,7 +5783,7 @@ QDF_STATUS wma_set_tx_rx_aggregation_size(
cmd->tx_aggr_size = tx_rx_aggregation_size->tx_aggregation_size;
cmd->rx_aggr_size = tx_rx_aggregation_size->rx_aggregation_size;
WMA_LOGI("tx aggr: %d rx aggr: %d vdev: %d",
WMA_LOGD("tx aggr: %d rx aggr: %d vdev: %d",
cmd->tx_aggr_size, cmd->rx_aggr_size, cmd->vdev_id);
ret = wmi_unified_cmd_send(wma_handle->wmi_handle, buf, len,

View File

@@ -859,7 +859,7 @@ static void wma_set_dtim_period(tp_wma_handle wma,
struct wma_txrx_node *iface =
&wma->interfaces[vdev_id];
WMA_LOGI("%s: set dtim_period %d", __func__,
WMA_LOGD("%s: set dtim_period %d", __func__,
dtim_params->dtim_period);
iface->dtimPeriod = dtim_params->dtim_period;
ret = wma_vdev_set_param(wma->wmi_handle,
@@ -1744,7 +1744,7 @@ static void wma_cleanup_vdev_resp_queue(tp_wma_handle wma)
qdf_spin_lock_bh(&wma->vdev_respq_lock);
if (!qdf_list_size(&wma->vdev_resp_queue)) {
qdf_spin_unlock_bh(&wma->vdev_respq_lock);
WMA_LOGI(FL("request queue maybe empty"));
WMA_LOGD(FL("request queue maybe empty"));
return;
}
@@ -2057,11 +2057,11 @@ static int wma_flush_complete_evt_handler(void *handle,
* reason_code = other value; Asynchronous flush event for fatal events
*/
if (!reason_code && (cds_is_log_report_in_progress() == false)) {
WMA_LOGE("Received WMI flush event without sending CMD");
WMA_LOGD("Received WMI flush event without sending CMD");
return -EINVAL;
} else if (!reason_code && cds_is_log_report_in_progress() == true) {
/* Flush event in response to flush command */
WMA_LOGI("Received WMI flush event in response to flush CMD");
WMA_LOGD("Received WMI flush event in response to flush CMD");
status = qdf_mc_timer_stop(&wma->log_completion_timer);
if (status != QDF_STATUS_SUCCESS)
WMA_LOGE("Failed to stop the log completion timeout");
@@ -2082,7 +2082,7 @@ static int wma_flush_complete_evt_handler(void *handle,
/* Asynchronous flush event for fatal event,
* but, report in progress already
*/
WMA_LOGI("%s: Bug report already in progress - dropping! type:%d, indicator=%d reason_code=%d",
WMA_LOGD("%s: Bug report already in progress - dropping! type:%d, indicator=%d reason_code=%d",
__func__, WLAN_LOG_TYPE_FATAL,
WLAN_LOG_INDICATOR_FIRMWARE, reason_code);
return QDF_STATUS_E_FAILURE;
@@ -3152,7 +3152,7 @@ QDF_STATUS wma_start(void *cds_ctx)
#if defined(QCA_LL_LEGACY_TX_FLOW_CONTROL) || \
defined(QCA_LL_TX_FLOW_CONTROL_V2) || defined(CONFIG_HL_SUPPORT)
WMA_LOGE("MCC TX Pause Event Handler register");
WMA_LOGD("MCC TX Pause Event Handler register");
status = wmi_unified_register_event_handler(wma_handle->wmi_handle,
WMI_TX_PAUSE_EVENTID,
wma_mcc_vdev_tx_pause_evt_handler,
@@ -4647,23 +4647,23 @@ int wma_rx_service_ready_event(void *handle, uint8_t *cmd_param_info,
WMA_LOGD("%s: Firmware default hw mode index : %d",
__func__, ev->default_dbs_hw_mode_index);
WMA_LOGE("%s: Firmware build version : %08x",
WMA_LOGI("%s: Firmware build version : %08x",
__func__, ev->fw_build_vers);
WMA_LOGD(FL("FW fine time meas cap: 0x%x"), ev->wmi_fw_sub_feat_caps);
WMA_LOGD("FW fine time meas cap: 0x%x", ev->wmi_fw_sub_feat_caps);
if (ev->hw_bd_id) {
wma_handle->hw_bd_id = ev->hw_bd_id;
qdf_mem_copy(wma_handle->hw_bd_info,
ev->hw_bd_info, sizeof(ev->hw_bd_info));
WMA_LOGE("%s: Board version: %x.%x",
WMA_LOGI("%s: Board version: %x.%x",
__func__,
wma_handle->hw_bd_info[0], wma_handle->hw_bd_info[1]);
} else {
wma_handle->hw_bd_id = 0;
qdf_mem_zero(wma_handle->hw_bd_info,
sizeof(wma_handle->hw_bd_info));
WMA_LOGE("%s: Board version is unknown!", __func__);
WMA_LOGW("%s: Board version is unknown!", __func__);
}
wma_handle->dfs_ic->dfs_hw_bd_id = wma_handle->hw_bd_id;
@@ -4722,7 +4722,7 @@ int wma_rx_service_ready_event(void *handle, uint8_t *cmd_param_info,
if (WMI_SERVICE_IS_ENABLED(wma_handle->wmi_service_bitmap,
WMI_SERVICE_MGMT_TX_WMI)) {
WMA_LOGE("Firmware supports management TX over WMI,use WMI interface instead of HTT for management Tx");
WMA_LOGD("Firmware supports management TX over WMI,use WMI interface instead of HTT for management Tx");
/*
* Register Tx completion event handler for MGMT Tx over WMI
* case
@@ -4880,7 +4880,7 @@ int wma_rx_service_ready_event(void *handle, uint8_t *cmd_param_info,
if (!QDF_IS_STATUS_SUCCESS(ret))
WMA_LOGP("Failed to start the service ready ext timer");
WMA_LOGA("%s: WMA waiting for WMI_SERVICE_READY_EXT_EVENTID",
WMA_LOGD("%s: WMA waiting for WMI_SERVICE_READY_EXT_EVENTID",
__func__);
}
@@ -5300,7 +5300,7 @@ static QDF_STATUS wma_update_hw_mode_list(t_wma_handle *wma_handle)
return QDF_STATUS_E_FAILURE;
}
WMA_LOGA("%s: Updated HW mode list: Num modes:%d",
WMA_LOGD("%s: Updated HW mode list: Num modes:%d",
__func__, wma_handle->num_dbs_hw_modes);
for (i = 0; i < wma_handle->num_dbs_hw_modes; i++) {

View File

@@ -797,7 +797,7 @@ int wma_vdev_install_key_complete_event_handler(void *handle,
/*
* Do nothing for now. Completion of set key is already indicated to lim
*/
WMA_LOGI("%s: WMI_VDEV_INSTALL_KEY_COMPLETE_EVENTID", __func__);
WMA_LOGD("%s: WMI_VDEV_INSTALL_KEY_COMPLETE_EVENTID", __func__);
return 0;
}
/*
@@ -2483,7 +2483,7 @@ void wma_send_probe_rsp_tmpl(tp_wma_handle wma,
if (WMI_SERVICE_IS_ENABLED(wma->wmi_service_bitmap,
WMI_SERVICE_BEACON_OFFLOAD)) {
WMA_LOGI("Beacon Offload Enabled Sending Unified command");
WMA_LOGD("Beacon Offload Enabled Sending Unified command");
if (wmi_unified_probe_rsp_tmpl_send(wma, vdev_id,
probe_rsp_info) < 0) {
WMA_LOGE(FL("wmi_unified_probe_rsp_tmpl_send Failed "));
@@ -2520,7 +2520,7 @@ void wma_send_beacon(tp_wma_handle wma, tpSendbeaconParams bcn_info)
if (WMI_SERVICE_IS_ENABLED(wma->wmi_service_bitmap,
WMI_SERVICE_BEACON_OFFLOAD)) {
WMA_LOGI("Beacon Offload Enabled Sending Unified command");
WMA_LOGD("Beacon Offload Enabled Sending Unified command");
status = wma_unified_bcn_tmpl_send(wma, vdev_id, bcn_info, 4);
if (QDF_IS_STATUS_ERROR(status)) {
WMA_LOGE("%s : wmi_unified_bcn_tmpl_send Failed ",
@@ -2642,8 +2642,7 @@ static int wma_process_mgmt_tx_completion(tp_wma_handle wma_handle,
return -EINVAL;
}
WMA_LOGI("%s: status:%d desc id:%d", __func__, status, desc_id);
WMA_LOGD("%s: status: %d wmi_desc_id: %d", __func__, status, desc_id);
psoc = wma_handle->psoc;
if (psoc == NULL) {

View File

@@ -331,7 +331,7 @@ void wma_update_edca_params_for_ac(tSirMacEdcaParamRecord *edca_param,
/* TODO: No ack is not present in EdcaParamRecord */
wmm_param->no_ack = 0;
WMA_LOGI("WMM PARAMS AC[%d]: AIFS %d Min %d Max %d TXOP %d ACM %d NOACK %d",
WMA_LOGD("WMM PARAMS AC[%d]: AIFS %d Min %d Max %d TXOP %d ACM %d NOACK %d",
ac, wmm_param->aifs, wmm_param->cwmin, wmm_param->cwmax,
wmm_param->txoplimit, wmm_param->acm, wmm_param->no_ack);
}

View File

@@ -120,7 +120,7 @@ static void wma_dec_pending_scans(tp_wma_handle wma)
}
qdf_atomic_dec(&wma->num_pending_scans);
WMA_LOGI("Ending pending scan: %d <- %d", scan_cnt, scan_cnt - 1);
WMA_LOGD("Ending pending scan: %d <- %d", scan_cnt, scan_cnt - 1);
}
/**
@@ -132,7 +132,7 @@ static void wma_dec_pending_scans(tp_wma_handle wma)
static void wma_inc_pending_scans(tp_wma_handle wma)
{
int32_t scan_cnt = qdf_atomic_inc_return(&wma->num_pending_scans);
WMA_LOGI("Starting pending scan: %d -> %d", scan_cnt - 1, scan_cnt);
WMA_LOGD("Starting pending scan: %d -> %d", scan_cnt - 1, scan_cnt);
}
/**
@@ -482,10 +482,10 @@ QDF_STATUS wma_get_buf_start_scan_cmd(tp_wma_handle wma_handle,
cmd->repeat_probe_time : 0;
}
}
WMA_LOGI("Scan Type 0x%x, Active dwell time %u, Passive dwell time %u",
WMA_LOGD("Scan Type 0x%x, Active dwell time %u, Passive dwell time %u",
scan_req->scanType, cmd->dwell_time_active,
cmd->dwell_time_passive);
WMA_LOGI("Scan repeat_probe_time %u n_probes %u num_ssids %u num_bssid %u",
WMA_LOGD("Scan repeat_probe_time %u n_probes %u num_ssids %u num_bssid %u",
cmd->repeat_probe_time,
cmd->n_probes,
cmd->num_ssids,
@@ -554,7 +554,7 @@ QDF_STATUS wma_start_scan(tp_wma_handle wma_handle,
*/
vdev_id = cmd.vdev_id;
scan_id = cmd.scan_id;
WMA_LOGI("ActiveDwell %d, PassiveDwell %d, ScanFlags 0x%x NumChan %d",
WMA_LOGD("ActiveDwell %d, PassiveDwell %d, ScanFlags 0x%x NumChan %d",
cmd.dwell_time_active, cmd.dwell_time_passive,
cmd.scan_flags, cmd.num_chan);
@@ -566,7 +566,7 @@ QDF_STATUS wma_start_scan(tp_wma_handle wma_handle,
goto dec_scans;
}
WMA_LOGI("WMA --> WMI_START_SCAN_CMDID");
WMA_LOGD("WMA --> WMI_START_SCAN_CMDID");
return QDF_STATUS_SUCCESS;
@@ -815,7 +815,7 @@ QDF_STATUS wma_roam_scan_offload_mode(tp_wma_handle wma_handle,
if (QDF_IS_STATUS_ERROR(status))
return status;
WMA_LOGI("%s: WMA --> WMI_ROAM_SCAN_MODE", __func__);
WMA_LOGD("%s: WMA --> WMI_ROAM_SCAN_MODE", __func__);
qdf_mem_free(params);
return status;
}
@@ -923,12 +923,12 @@ QDF_STATUS wma_roam_scan_offload_rssi_thresh(tp_wma_handle wma_handle,
return status;
}
WMA_LOGI(FL("roam_scan_rssi_thresh=%d, roam_rssi_thresh_diff=%d"),
WMA_LOGD(FL("roam_scan_rssi_thresh=%d, roam_rssi_thresh_diff=%d"),
rssi_thresh, rssi_thresh_diff);
WMA_LOGI(
WMA_LOGD(
FL("hirssi_scan max_count=%d, delta=%d, hirssi_upper_bound=%d"),
hirssi_scan_max_count, hirssi_scan_delta, hirssi_upper_bound);
WMA_LOGI(
WMA_LOGD(
FL("dense_rssi_thresh_offset=%d, dense_min_aps_cnt=%d, traffic_threshold=%d initial_dense_status=%d"),
roam_params->dense_rssi_thresh_offset,
roam_params->dense_min_aps_cnt,
@@ -1021,7 +1021,7 @@ QDF_STATUS wma_roam_scan_offload_chan_list(tp_wma_handle wma_handle,
for (i = 0; ((i < chan_count) &&
(i < SIR_ROAM_MAX_CHANNELS)); i++) {
chan_list_mhz[i] = cds_chan_to_freq(chan_list[i]);
WMA_LOGI("%d,", chan_list_mhz[i]);
WMA_LOGD("%d,", chan_list_mhz[i]);
}
status = wmi_unified_roam_scan_offload_chan_list_cmd(wma_handle->wmi_handle,
@@ -1367,13 +1367,13 @@ void wma_roam_scan_fill_scan_params(tp_wma_handle wma_handle,
WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ;
if (roam_req != NULL) {
/* Parameters updated after association is complete */
WMA_LOGI("%s: Input parameters: NeighborScanChannelMinTime"
" = %d, NeighborScanChannelMaxTime = %d",
WMA_LOGD("%s: NeighborScanChannelMinTime: %d"
" NeighborScanChannelMaxTime: %d",
__func__,
roam_req->NeighborScanChannelMinTime,
roam_req->NeighborScanChannelMaxTime);
WMA_LOGI("%s: Input parameters: NeighborScanTimerPeriod ="
" %d, HomeAwayTime = %d, nProbes = %d",
WMA_LOGD("%s: NeighborScanTimerPeriod: %d"
" HomeAwayTime: %d nProbes: %d",
__func__,
roam_req->NeighborScanTimerPeriod,
roam_req->HomeAwayTime, roam_req->nProbes);
@@ -1506,18 +1506,18 @@ void wma_roam_scan_fill_scan_params(tp_wma_handle wma_handle,
scan_params->n_probes = 0;
}
WMA_LOGI("%s: Rome roam scan parameters:"
WMA_LOGD("%s: Rome roam scan parameters:"
" dwell_time_active = %d, dwell_time_passive = %d",
__func__,
scan_params->dwell_time_active,
scan_params->dwell_time_passive);
WMA_LOGI("%s: min_rest_time = %d, max_rest_time = %d,"
WMA_LOGD("%s: min_rest_time = %d, max_rest_time = %d,"
" repeat_probe_time = %d n_probes = %d",
__func__,
scan_params->min_rest_time,
scan_params->max_rest_time,
scan_params->repeat_probe_time, scan_params->n_probes);
WMA_LOGI("%s: max_scan_time = %d, idle_time = %d,"
WMA_LOGD("%s: max_scan_time = %d, idle_time = %d,"
" burst_duration = %d, scan_ctrl_flags = 0x%x",
__func__,
scan_params->max_scan_time,
@@ -1666,7 +1666,7 @@ QDF_STATUS wma_roam_scan_bmiss_cnt(tp_wma_handle wma_handle,
{
QDF_STATUS status;
WMA_LOGI("%s: first_bcnt=%d, final_bcnt=%d", __func__, first_bcnt,
WMA_LOGD("%s: first_bcnt: %d, final_bcnt: %d", __func__, first_bcnt,
final_bcnt);
status = wma_vdev_set_param(wma_handle->wmi_handle,
@@ -1728,7 +1728,7 @@ QDF_STATUS wma_process_roaming_config(tp_wma_handle wma_handle,
uint32_t mode = 0;
struct wma_txrx_node *intr = NULL;
WMA_LOGI("%s: command 0x%x, reason %d", __func__, roam_req->Command,
WMA_LOGD("%s: command 0x%x, reason %d", __func__, roam_req->Command,
roam_req->reason);
if (NULL == pMac) {
@@ -4006,7 +4006,6 @@ int wma_extscan_capabilities_event_handler(void *handle,
pMac->sme.pExtScanIndCb(pMac->hHdd,
eSIR_EXTSCAN_GET_CAPABILITIES_IND, dest_capab);
WMA_LOGI("%s: sending capabilities event to hdd", __func__);
qdf_mem_free(dest_capab);
return 0;
}
@@ -5605,7 +5604,7 @@ int wma_scan_event_callback(WMA_HANDLE handle, uint8_t *data,
return -ENOMEM;
}
WMA_LOGI("scan event %u, id 0x%x, requestor 0x%x, freq %u, reason %u",
WMA_LOGD("scan_event: %u, id: 0x%x, requestor: 0x%x, freq: %u, reason: %u",
wmi_event->event, wmi_event->scan_id, wmi_event->requestor,
wmi_event->channel_freq, wmi_event->reason);