From 30a641748731c7f5a20c936e1256eca73226753e Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Wed, 10 May 2023 17:51:20 -0700 Subject: [PATCH] qcacmn: Change logs to appropriate log levels Change logs to appropriate log levels. Change-Id: I5e0816105282fccad8d17440eee363803f31429e CRs-Fixed: 3494141 --- dp/wifi3.0/dp_main.c | 6 +++--- dp/wifi3.0/dp_peer.c | 8 ++++---- dp/wifi3.0/dp_rx_buffer_pool.c | 4 ++-- dp/wifi3.0/dp_tx.c | 4 +--- hal/wifi3.0/hal_srng.c | 2 +- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index a126c78862..c912fd1715 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -1770,13 +1770,13 @@ static QDF_STATUS dp_lro_hash_setup(struct dp_soc *soc, struct dp_pdev *pdev) lro_hash.tcp_flag_mask); dp_info("toeplitz_hash_ipv4:"); - qdf_trace_hex_dump(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO, + qdf_trace_hex_dump(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG, lro_hash.toeplitz_hash_ipv4, (sizeof(lro_hash.toeplitz_hash_ipv4[0]) * LRO_IPV4_SEED_ARR_SZ)); dp_info("toeplitz_hash_ipv6:"); - qdf_trace_hex_dump(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO, + qdf_trace_hex_dump(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG, lro_hash.toeplitz_hash_ipv6, (sizeof(lro_hash.toeplitz_hash_ipv6[0]) * LRO_IPV6_SEED_ARR_SZ)); @@ -3089,7 +3089,7 @@ static QDF_STATUS dp_rxdma_ring_config(struct dp_soc *soc) dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings); dp_lpc_tx_config(pdev); - dp_err("pdev_id %d max_mac_rings %d", + dp_info("pdev_id %d max_mac_rings %d", pdev->pdev_id, max_mac_rings); for (mac_id = 0; mac_id < max_mac_rings; mac_id++) { diff --git a/dp/wifi3.0/dp_peer.c b/dp/wifi3.0/dp_peer.c index 84778ce560..96446d6cdf 100644 --- a/dp/wifi3.0/dp_peer.c +++ b/dp/wifi3.0/dp_peer.c @@ -2482,9 +2482,9 @@ static inline struct dp_peer *dp_peer_find_add_id(struct dp_soc *soc, DP_PEER_INFO_PARAMS_INIT(&peer_info, vdev_id, peer_mac_addr, false, peer_type); peer = dp_peer_hash_find_wrapper(soc, &peer_info, DP_MOD_ID_CONFIG); - dp_peer_err("%pK: peer %pK ID %d vid %d mac " QDF_MAC_ADDR_FMT, - soc, peer, peer_id, vdev_id, - QDF_MAC_ADDR_REF(peer_mac_addr)); + dp_peer_debug("%pK: peer %pK ID %d vid %d mac " QDF_MAC_ADDR_FMT, + soc, peer, peer_id, vdev_id, + QDF_MAC_ADDR_REF(peer_mac_addr)); if (peer) { /* peer's ref count was already incremented by @@ -3604,7 +3604,7 @@ void dp_local_peer_id_pool_init(struct dp_pdev *pdev) pdev->local_peer_ids.pool[i] = i; qdf_spinlock_create(&pdev->local_peer_ids.lock); - DP_TRACE(INFO, "Peer pool init"); + dp_info("Peer pool init"); } void dp_local_peer_id_alloc(struct dp_pdev *pdev, struct dp_peer *peer) diff --git a/dp/wifi3.0/dp_rx_buffer_pool.c b/dp/wifi3.0/dp_rx_buffer_pool.c index 569e385a6f..61ad7098f2 100644 --- a/dp/wifi3.0/dp_rx_buffer_pool.c +++ b/dp/wifi3.0/dp_rx_buffer_pool.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -343,7 +343,7 @@ void dp_rx_buffer_pool_init(struct dp_soc *soc, u8 mac_id) dp_rx_refill_buff_pool_init(soc, mac_id); if (!wlan_cfg_is_rx_buffer_pool_enabled(soc->wlan_cfg_ctx)) { - dp_err("RX buffer pool support is disabled"); + dp_info("RX buffer pool support is disabled"); buff_pool->is_initialized = false; return; } diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index ba1fdd29e8..f50be74404 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -6512,9 +6512,7 @@ QDF_STATUS dp_soc_tx_desc_sw_pools_alloc(struct dp_soc *soc) num_desc = wlan_cfg_get_num_tx_desc(soc->wlan_cfg_ctx); num_ext_desc = wlan_cfg_get_num_tx_ext_desc(soc->wlan_cfg_ctx); - QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO, - "%s Tx Desc Alloc num_pool = %d, descs = %d", - __func__, num_pool, num_desc); + dp_info("Tx Desc Alloc num_pool: %d descs: %d", num_pool, num_desc); if ((num_pool > MAX_TXDESC_POOLS) || (num_desc > WLAN_CFG_NUM_TX_DESC_MAX)) diff --git a/hal/wifi3.0/hal_srng.c b/hal/wifi3.0/hal_srng.c index 3dc0e08c0c..28eaf4b5a2 100644 --- a/hal/wifi3.0/hal_srng.c +++ b/hal/wifi3.0/hal_srng.c @@ -1436,7 +1436,7 @@ void hal_srng_dst_init_hp(struct hal_soc_handle *hal_soc, if (vaddr) { *srng->u.dst_ring.hp_addr = srng->u.dst_ring.cached_hp; - QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG, "hp_addr=%pK, cached_hp=%d", (void *)srng->u.dst_ring.hp_addr, srng->u.dst_ring.cached_hp);