Skip to content

Commit

Permalink
qcacld: qca6390_defconfig: tone down debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Filter Oneplus 8 Pro specific logspam: Kristof Petho <kristof.petho@gmail.com>
  • Loading branch information
arter97 authored and acuicultor committed Feb 12, 2021
1 parent efbd3f2 commit a995d2c
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/qca-wifi-host-cmn/hif/src/hif_main.c
Expand Up @@ -1599,7 +1599,7 @@ irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
struct hif_softc *scn = context;
struct hif_opaque_softc *hif_ctx = GET_HIF_OPAQUE_HDL(scn);

HIF_INFO("wake interrupt received on irq %d", irq);
HIF_DBG("wake interrupt received on irq %d", irq);

if (hif_pm_runtime_get_monitor_wake_intr(hif_ctx)) {
hif_pm_runtime_set_monitor_wake_intr(hif_ctx, 0);
Expand Down
Expand Up @@ -1442,7 +1442,7 @@ static QDF_STATUS send_enable_disable_packet_filter_cmd_tlv(
else
cmd->enable = PACKET_FILTER_SET_DISABLE;

WMI_LOGE("%s: Packet filter enable %d for vdev_id %d",
WMI_LOGD("%s: Packet filter enable %d for vdev_id %d",
__func__, cmd->enable, vdev_id);

wmi_mtrace(WMI_PACKET_FILTER_ENABLE_CMDID, cmd->vdev_id, 0);
Expand Down Expand Up @@ -1520,7 +1520,7 @@ static QDF_STATUS send_config_packet_filter_cmd_tlv(wmi_unified_t wmi_handle,
}
}

WMI_LOGE("Packet filter action %d filter with id: %d, num_params=%d",
WMI_LOGD("Packet filter action %d filter with id: %d, num_params=%d",
cmd->filter_action, cmd->filter_id, cmd->num_params);
/* send the command along with data */
wmi_mtrace(WMI_PACKET_FILTER_CONFIG_CMDID, cmd->vdev_id, 0);
Expand Down
Expand Up @@ -1362,7 +1362,7 @@ static QDF_STATUS extract_sar2_result_event_tlv(void *handle,
return QDF_STATUS_E_INVAL;
}

WMI_LOGI("SAR2 result: %s",
WMI_LOGD("SAR2 result: %s",
wmi_sar2_result_string(sar2_fixed_param->result));

return QDF_STATUS_SUCCESS;
Expand Down
Expand Up @@ -1813,7 +1813,7 @@ static QDF_STATUS send_wow_enable_cmd_tlv(wmi_unified_t wmi_handle,
cmd->pause_iface_config = WOW_IFACE_PAUSE_DISABLED;
cmd->flags = param->flags;

WMI_LOGI("suspend type: %s",
WMI_LOGD("suspend type: %s",
cmd->pause_iface_config == WOW_IFACE_PAUSE_ENABLED ?
"WOW_IFACE_PAUSE_ENABLED" : "WOW_IFACE_PAUSE_DISABLED");

Expand Down
Expand Up @@ -257,7 +257,7 @@ QDF_STATUS pmo_get_vdev_bss_peer_mac_addr(struct wlan_objmgr_vdev *vdev,

peer = wlan_objmgr_vdev_try_get_bsspeer(vdev, WLAN_PMO_ID);
if (!peer) {
pmo_err("peer is null");
pmo_debug("peer is null");
return QDF_STATUS_E_INVAL;
}
wlan_peer_obj_lock(peer);
Expand Down
Expand Up @@ -801,13 +801,13 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,

if (htc_can_suspend_link(pmo_core_psoc_get_htc_handle(psoc))) {
if (qdf_is_drv_connected()) {
pmo_info("drv wow is enabled");
pmo_debug("drv wow is enabled");
param.flags |= WMI_WOW_FLAG_ENABLE_DRV_PCIE_L1SS_SLEEP;
} else {
pmo_info("non-drv wow is enabled");
pmo_debug("non-drv wow is enabled");
}
} else {
pmo_info("Prevent link down, non-drv wow is enabled");
pmo_debug("Prevent link down, non-drv wow is enabled");
}

status = pmo_tgt_psoc_send_wow_enable_req(psoc, &param);
Expand Down
Expand Up @@ -316,7 +316,7 @@ bool pmo_core_is_wow_applicable(struct wlan_objmgr_psoc *psoc)
}

if (pmo_core_is_lpass_enabled(psoc)) {
pmo_info("lpass enabled, enabling wow");
pmo_debug("lpass enabled, enabling wow");
return true;
}

Expand Down
20 changes: 10 additions & 10 deletions drivers/staging/qcacld-3.0/configs/qca6390_defconfig
Expand Up @@ -59,7 +59,7 @@ ifeq ($(CONFIG_ICNSS), y)
CONFIG_HELIUMPLUS := y
CONFIG_64BIT_PADDR := y
CONFIG_FEATURE_TSO := y
CONFIG_FEATURE_TSO_DEBUG := y
CONFIG_FEATURE_TSO_DEBUG := n
ifeq ($(CONFIG_INET_LRO), y)
CONFIG_WLAN_LRO := y
else
Expand Down Expand Up @@ -338,7 +338,7 @@ CONFIG_DP_INTR_POLL_BASED := y
CONFIG_TX_PER_PDEV_DESC_POOL := y
CONFIG_DP_TRACE := y
CONFIG_FEATURE_TSO := y
CONFIG_TSO_DEBUG_LOG_ENABLE := y
CONFIG_TSO_DEBUG_LOG_ENABLE := n
CONFIG_DP_LFR := y
CONFIG_HTT_PADDR64 := y
CONFIG_RX_OL := y
Expand Down Expand Up @@ -403,9 +403,9 @@ CONFIG_WLAN_LOG_FATAL := y
CONFIG_WLAN_LOG_ERROR := y
CONFIG_WLAN_LOG_WARN := y
CONFIG_WLAN_LOG_INFO := y
CONFIG_WLAN_LOG_DEBUG := y
CONFIG_WLAN_LOG_ENTER := y
CONFIG_WLAN_LOG_EXIT := y
CONFIG_WLAN_LOG_DEBUG := n
CONFIG_WLAN_LOG_ENTER := n
CONFIG_WLAN_LOG_EXIT := n

#Enable OL debug and wmi unified functions
CONFIG_ATH_PERF_PWR_OFFLOAD := y
Expand Down Expand Up @@ -587,10 +587,10 @@ CONFIG_FEATURE_HTC_CREDIT_HISTORY := y
CONFIG_TRACE_RECORD_FEATURE := y

#Flag to enable p2p debug feature
CONFIG_WLAN_FEATURE_P2P_DEBUG := y
CONFIG_WLAN_FEATURE_P2P_DEBUG := n

#Flag to enable roam debug log
CONFIG_FEATURE_ROAM_DEBUG := y
CONFIG_FEATURE_ROAM_DEBUG := n

#Flag to enable DFS Master feature
CONFIG_WLAN_DFS_MASTER_ENABLE := y
Expand All @@ -599,7 +599,7 @@ CONFIG_WLAN_DFS_MASTER_ENABLE := y
CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y

#Flag to enable/disable MTRACE feature
CONFIG_ENABLE_MTRACE_LOG := y
CONFIG_ENABLE_MTRACE_LOG := n

#Flag to enable nud tracking feature
CONFIG_WLAN_NUD_TRACKING := y
Expand All @@ -625,7 +625,7 @@ CONFIG_FEATURE_WLAN_WAPI := y
CONFIG_AGEIE_ON_SCAN_RESULTS := y

#Flag to enable FW log parsing support feature
CONFIG_FEATURE_FW_LOG_PARSING := y
CONFIG_FEATURE_FW_LOG_PARSING := n

CONFIG_PTT_SOCK_SVC_ENABLE := y
CONFIG_SOFTAP_CHANNEL_RANGE := y
Expand Down Expand Up @@ -714,7 +714,7 @@ ifeq ($(CONFIG_LITHIUM), y)
endif

#Flag to enable hdd memory dump feature
CONFIG_FEATURE_MEMDUMP_ENABLE := y
CONFIG_FEATURE_MEMDUMP_ENABLE := n

#Flag to enable/disable WLAN D0-WOW
ifeq ($(CONFIG_PCI_MSM), y)
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_driver_ops.c
Expand Up @@ -1008,7 +1008,7 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params)
void *dp_soc;
struct pmo_wow_enable_params pmo_params;

hdd_info("starting bus suspend");
hdd_debug("starting bus suspend");

hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
err = wlan_hdd_validate_context(hdd_ctx);
Expand Down Expand Up @@ -1074,7 +1074,7 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params)
*/
pld_request_bus_bandwidth(hdd_ctx->parent_dev, PLD_BUS_WIDTH_NONE);

hdd_info("bus suspend succeeded");
hdd_debug("bus suspend succeeded");
return 0;

resume_pmo:
Expand Down Expand Up @@ -1201,7 +1201,7 @@ int wlan_hdd_bus_resume(void)
if (cds_is_driver_recovering())
return 0;

hdd_info("starting bus resume");
hdd_debug("starting bus resume");

status = wlan_hdd_validate_context(hdd_ctx);
if (status) {
Expand Down Expand Up @@ -1260,7 +1260,7 @@ int wlan_hdd_bus_resume(void)
goto out;
}

hdd_info("bus resume succeeded");
hdd_debug("bus resume succeeded");
return 0;

out:
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_main.c
Expand Up @@ -4490,7 +4490,7 @@ static void __hdd_set_multicast_list(struct net_device *dev)
int mc_count = 0;

if (hdd_ctx->hdd_wlan_suspended) {
hdd_err_rl("Device is system suspended");
hdd_debug_rl("Device is system suspended");
return;
}

Expand Down
Expand Up @@ -46,7 +46,7 @@ int hdd_enable_default_pkt_filters(struct hdd_adapter *adapter)

while (filters != 0) {
if (filters & 0x1) {
hdd_err("setting filter[%d], of id = %d",
hdd_debug("setting filter[%d], of id = %d",
i+1, filter_id);
packet_filter_default_rules[i].filter_id = filter_id;
wlan_hdd_set_filter(hdd_ctx,
Expand Down Expand Up @@ -83,7 +83,7 @@ int hdd_disable_default_pkt_filters(struct hdd_adapter *adapter)

while (filters != 0) {
if (filters & 0x1) {
hdd_err("Clearing filter[%d], of id = %d",
hdd_debug("Clearing filter[%d], of id = %d",
i+1, filter_id);
packet_filter_default_rules.filter_action =
HDD_RCV_FILTER_CLEAR;
Expand Down Expand Up @@ -217,7 +217,7 @@ int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
pmo_set_pkt_fltr_req,
vdev_id);
if (QDF_IS_STATUS_ERROR(status)) {
hdd_err("Failure to execute Set Filter");
hdd_debug("Failure to execute Set Filter");
status = QDF_STATUS_E_INVAL;
goto out;
}
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_power.c
Expand Up @@ -663,13 +663,13 @@ void hdd_disable_host_offloads(struct hdd_adapter *adapter,
hdd_enter();

if (!ucfg_pmo_is_vdev_supports_offload(adapter->vdev)) {
hdd_info("offload is not supported on this vdev opmode: %d",
hdd_debug("offload is not supported on this vdev opmode: %d",
adapter->device_mode);
goto out;
}

if (!ucfg_pmo_is_vdev_connected(adapter->vdev)) {
hdd_info("vdev is not connected");
hdd_debug("vdev is not connected");
goto out;
}

Expand Down Expand Up @@ -1204,7 +1204,7 @@ hdd_suspend_wlan(void)
struct hdd_adapter *adapter = NULL;
uint32_t conn_state_mask = 0;

hdd_info("WLAN being suspended by OS");
hdd_debug("WLAN being suspended by OS");

hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (!hdd_ctx) {
Expand Down Expand Up @@ -1262,7 +1262,7 @@ static int hdd_resume_wlan(void)
struct hdd_adapter *adapter;
QDF_STATUS status;

hdd_info("WLAN being resumed by OS");
hdd_debug("WLAN being resumed by OS");

hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (!hdd_ctx) {
Expand Down
20 changes: 10 additions & 10 deletions drivers/staging/qcacld-3.0/core/wma/src/wma_features.c
Expand Up @@ -1594,8 +1594,8 @@ static void wma_inc_wow_stats(t_wma_handle *wma,

static void wma_wow_stats_display(struct wake_lock_stats *stats)
{
WMA_LOGA("WLAN wake reason counters:");
WMA_LOGA("uc:%d bc:%d v4_mc:%d v6_mc:%d ra:%d ns:%d na:%d "
WMA_LOGD("WLAN wake reason counters:");
WMA_LOGD("uc:%d bc:%d v4_mc:%d v6_mc:%d ra:%d ns:%d na:%d "
"icmp:%d icmpv6:%d",
stats->ucast_wake_up_count,
stats->bcast_wake_up_count,
Expand All @@ -1607,7 +1607,7 @@ static void wma_wow_stats_display(struct wake_lock_stats *stats)
stats->icmpv4_count,
stats->icmpv6_count);

WMA_LOGA("assoc:%d disassoc:%d assoc_resp:%d reassoc:%d "
WMA_LOGD("assoc:%d disassoc:%d assoc_resp:%d reassoc:%d "
"reassoc_resp:%d auth:%d deauth:%d action:%d",
stats->mgmt_assoc,
stats->mgmt_disassoc,
Expand All @@ -1618,7 +1618,7 @@ static void wma_wow_stats_display(struct wake_lock_stats *stats)
stats->mgmt_deauth,
stats->mgmt_action);

WMA_LOGA("pno_match:%d pno_complete:%d gscan:%d "
WMA_LOGD("pno_match:%d pno_complete:%d gscan:%d "
"low_rssi:%d rssi_breach:%d oem:%d scan_11d:%d",
stats->pno_match_wake_up_count,
stats->pno_complete_wake_up_count,
Expand Down Expand Up @@ -2063,7 +2063,7 @@ static void wma_log_pkt_ipv4(uint8_t *data, uint32_t length)
ip_addr[2], ip_addr[3]);
src_port = *(uint16_t *)(data + IPV4_SRC_PORT_OFFSET);
dst_port = *(uint16_t *)(data + IPV4_DST_PORT_OFFSET);
WMA_LOGI("Pkt_len: %u, src_port: %u, dst_port: %u",
WMA_LOGD("Pkt_len: %u, src_port: %u, dst_port: %u",
qdf_cpu_to_be16(pkt_len),
qdf_cpu_to_be16(src_port),
qdf_cpu_to_be16(dst_port));
Expand Down Expand Up @@ -2094,7 +2094,7 @@ static void wma_log_pkt_ipv6(uint8_t *data, uint32_t length)
ip_addr[15]);
src_port = *(uint16_t *)(data + IPV6_SRC_PORT_OFFSET);
dst_port = *(uint16_t *)(data + IPV6_DST_PORT_OFFSET);
WMA_LOGI("Pkt_len: %u, src_port: %u, dst_port: %u",
WMA_LOGD("Pkt_len: %u, src_port: %u, dst_port: %u",
qdf_cpu_to_be16(pkt_len),
qdf_cpu_to_be16(src_port),
qdf_cpu_to_be16(dst_port));
Expand Down Expand Up @@ -2167,15 +2167,15 @@ static void wma_wow_parse_data_pkt(t_wma_handle *wma,

src_mac = data + QDF_NBUF_SRC_MAC_OFFSET;
dest_mac = data + QDF_NBUF_DEST_MAC_OFFSET;
wma_info("Src_mac: " QDF_MAC_ADDR_STR ", Dst_mac: " QDF_MAC_ADDR_STR,
wma_debug("Src_mac: " QDF_MAC_ADDR_STR ", Dst_mac: " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(src_mac), QDF_MAC_ADDR_ARRAY(dest_mac));

wma_wow_inc_wake_lock_stats_by_dst_addr(wma, vdev_id, dest_mac);

proto_subtype = wma_wow_get_pkt_proto_subtype(data, length);
proto_subtype_name = wma_pkt_proto_subtype_to_string(proto_subtype);
if (proto_subtype_name)
WMA_LOGI("WOW Wakeup: %s rcvd", proto_subtype_name);
WMA_LOGD("WOW Wakeup: %s rcvd", proto_subtype_name);

switch (proto_subtype) {
case QDF_PROTO_EAPOL_M1:
Expand Down Expand Up @@ -2708,14 +2708,14 @@ static void wma_wake_event_log_reason(t_wma_handle *wma,
/* "Unspecified" means APPS triggered wake, else firmware triggered */
if (wake_info->wake_reason != WOW_REASON_UNSPECIFIED) {
vdev = &wma->interfaces[wake_info->vdev_id];
WMA_LOGA("WLAN triggered wakeup: %s (%d), vdev: %d (%s)",
WMA_LOGD("WLAN triggered wakeup: %s (%d), vdev: %d (%s)",
wma_wow_wake_reason_str(wake_info->wake_reason),
wake_info->wake_reason,
wake_info->vdev_id,
wma_vdev_type_str(vdev->type));
wma_debug_assert_page_fault_wakeup(wake_info->wake_reason);
} else if (!wmi_get_runtime_pm_inprogress(wma->wmi_handle)) {
WMA_LOGA("Non-WLAN triggered wakeup: %s (%d)",
WMA_LOGD("Non-WLAN triggered wakeup: %s (%d)",
wma_wow_wake_reason_str(wake_info->wake_reason),
wake_info->wake_reason);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/qcacld-3.0/core/wma/src/wma_power.c
Expand Up @@ -873,7 +873,7 @@ QDF_STATUS wma_set_power_config(uint8_t vdev_id, enum powersave_mode power)
return QDF_STATUS_E_INVAL;
}

WMA_LOGI("configuring power: %d", power);
WMA_LOGD("configuring power: %d", power);
wma->powersave_mode = power;
return wma_unified_set_sta_ps_param(wma->wmi_handle,
vdev_id,
Expand Down

0 comments on commit a995d2c

Please sign in to comment.