qcacmn: HIF: Reduce the log spam in kmsg

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

Change-Id: I29121bb4cc1272aa1fb88183914530dd21c64272
CRs-Fixed: 2017427
This commit is contained in:
Srinivas Girigowda
2017-03-09 15:49:59 -08:00
committato da snandini
parent 36f68ad7cb
commit 6e0cfd9494
6 ha cambiato i file con 28 aggiunte e 28 eliminazioni

Vedi File

@@ -1113,7 +1113,7 @@ void hif_enable_fastpath(struct hif_opaque_softc *hif_ctx)
HIF_INFO("%s, srng rings do not support fastpath", __func__); HIF_INFO("%s, srng rings do not support fastpath", __func__);
return; return;
} }
HIF_INFO("%s, Enabling fastpath mode", __func__); HIF_DBG("%s, Enabling fastpath mode", __func__);
scn->fastpath_mode_on = true; scn->fastpath_mode_on = true;
} }
@@ -1172,7 +1172,7 @@ void ce_h2t_tx_ce_cleanup(struct CE_handle *ce_hdl)
return; return;
if (sc->fastpath_mode_on && ce_state->htt_tx_data) { if (sc->fastpath_mode_on && ce_state->htt_tx_data) {
HIF_INFO("%s %d Fastpath mode ON, Cleaning up HTT Tx CE", HIF_DBG("%s %d Fastpath mode ON, Cleaning up HTT Tx CE",
__func__, __LINE__); __func__, __LINE__);
sw_index = src_ring->sw_index; sw_index = src_ring->sw_index;
write_index = src_ring->sw_index; write_index = src_ring->sw_index;
@@ -1666,7 +1666,7 @@ static int hif_completion_thread_startup(struct HIF_CE_state *hif_state)
attr = hif_state->host_ce_config[pipe_num]; attr = hif_state->host_ce_config[pipe_num];
if (attr.src_nentries) { if (attr.src_nentries) {
/* pipe used to send to target */ /* pipe used to send to target */
HIF_INFO_MED("%s: pipe_num:%d pipe_info:0x%p", HIF_DBG("%s: pipe_num:%d pipe_info:0x%p",
__func__, pipe_num, pipe_info); __func__, pipe_num, pipe_info);
ce_send_cb_register(pipe_info->ce_hdl, ce_send_cb_register(pipe_info->ce_hdl,
hif_pci_ce_send_done, pipe_info, hif_pci_ce_send_done, pipe_info,
@@ -2499,17 +2499,17 @@ int hif_config_ce(struct hif_softc *scn)
} }
scn->athdiag_procfs_inited = true; scn->athdiag_procfs_inited = true;
HIF_INFO_MED("%s: ce_init done", __func__); HIF_DBG("%s: ce_init done", __func__);
init_tasklet_workers(hif_hdl); init_tasklet_workers(hif_hdl);
hif_fake_apps_init_ctx(scn); hif_fake_apps_init_ctx(scn);
HIF_TRACE("%s: X, ret = %d", __func__, rv); HIF_DBG("%s: X, ret = %d", __func__, rv);
#ifdef ADRASTEA_SHADOW_REGISTERS #ifdef ADRASTEA_SHADOW_REGISTERS
HIF_INFO("%s, Using Shadow Registers instead of CE Registers", __func__); HIF_DBG("%s, Using Shadow Registers instead of CE Registers", __func__);
for (i = 0; i < NUM_SHADOW_REGISTERS; i++) { for (i = 0; i < NUM_SHADOW_REGISTERS; i++) {
HIF_INFO("%s Shadow Register%d is mapped to address %x", HIF_DBG("%s Shadow Register%d is mapped to address %x",
__func__, i, __func__, i,
(A_TARGET_READ(scn, (SHADOW_ADDRESS(i))) << 2)); (A_TARGET_READ(scn, (SHADOW_ADDRESS(i))) << 2));
} }
@@ -3010,7 +3010,7 @@ static inline void hif_config_rri_on_ddr(struct hif_softc *scn)
low_paddr = BITS0_TO_31(paddr_rri_on_ddr); low_paddr = BITS0_TO_31(paddr_rri_on_ddr);
high_paddr = BITS32_TO_35(paddr_rri_on_ddr); high_paddr = BITS32_TO_35(paddr_rri_on_ddr);
HIF_INFO("%s using srri and drri from DDR", __func__); HIF_DBG("%s using srri and drri from DDR", __func__);
WRITE_CE_DDR_ADDRESS_FOR_RRI_LOW(scn, low_paddr); WRITE_CE_DDR_ADDRESS_FOR_RRI_LOW(scn, low_paddr);
WRITE_CE_DDR_ADDRESS_FOR_RRI_HIGH(scn, high_paddr); WRITE_CE_DDR_ADDRESS_FOR_RRI_HIGH(scn, high_paddr);

Vedi File

@@ -39,7 +39,7 @@
*/ */
void hif_dummy_bus_prevent_linkdown(struct hif_softc *scn, bool flag) void hif_dummy_bus_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
HIF_ERROR("wlan: %s pcie power collapse ignored", HIF_DBG("wlan: %s pcie power collapse ignored",
(flag ? "disable" : "enable")); (flag ? "disable" : "enable"));
} }

Vedi File

@@ -544,7 +544,7 @@ QDF_STATUS hif_enable(struct hif_opaque_softc *hif_ctx, struct device *dev,
scn->hif_init_done = true; scn->hif_init_done = true;
HIF_TRACE("%s: OK", __func__); HIF_DBG("%s: OK", __func__);
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
@@ -568,7 +568,7 @@ void hif_disable(struct hif_opaque_softc *hif_ctx, enum hif_disable_type type)
scn->notice_send = false; scn->notice_send = false;
HIF_INFO("%s: X", __func__); HIF_DBG("%s: X", __func__);
} }
void hif_display_stats(struct hif_opaque_softc *hif_ctx) void hif_display_stats(struct hif_opaque_softc *hif_ctx)

Vedi File

@@ -140,7 +140,7 @@ int hif_napi_create(struct hif_opaque_softc *hif_ctx,
goto hnc_err; goto hnc_err;
} }
HIF_INFO("%s: NAPI structures initialized, rc=%d", HIF_DBG("%s: NAPI structures initialized, rc=%d",
__func__, rc); __func__, rc);
} }
for (i = 0; i < hif->ce_count; i++) { for (i = 0; i < hif->ce_count; i++) {
@@ -186,7 +186,7 @@ int hif_napi_create(struct hif_opaque_softc *hif_ctx,
* protection as there should be no-one around yet * protection as there should be no-one around yet
*/ */
napid->ce_map |= (0x01 << i); napid->ce_map |= (0x01 << i);
HIF_INFO("%s: NAPI id %d created for pipe %d", __func__, HIF_DBG("%s: NAPI id %d created for pipe %d", __func__,
napii->id, i); napii->id, i);
} }
NAPI_DEBUG("NAPI ids created for all applicable pipes"); NAPI_DEBUG("NAPI ids created for all applicable pipes");
@@ -242,7 +242,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
if (hif->napi_data.state == HIF_NAPI_CONF_UP) { if (hif->napi_data.state == HIF_NAPI_CONF_UP) {
if (force) { if (force) {
napi_disable(&(napii->napi)); napi_disable(&(napii->napi));
HIF_INFO("%s: NAPI entry %d force disabled", HIF_DBG("%s: NAPI entry %d force disabled",
__func__, id); __func__, id);
NAPI_DEBUG("NAPI %d force disabled", id); NAPI_DEBUG("NAPI %d force disabled", id);
} else { } else {
@@ -265,7 +265,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
napid->ce_map &= ~(0x01 << ce); napid->ce_map &= ~(0x01 << ce);
napii->scale = 0; napii->scale = 0;
HIF_INFO("%s: NAPI %d destroyed\n", __func__, id); HIF_DBG("%s: NAPI %d destroyed\n", __func__, id);
/* if there are no active instances and /* if there are no active instances and
* if they are all destroyed, * if they are all destroyed,
@@ -278,7 +278,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
qdf_spinlock_destroy(&(napid->lock)); qdf_spinlock_destroy(&(napid->lock));
memset(napid, memset(napid,
0, sizeof(struct qca_napi_data)); 0, sizeof(struct qca_napi_data));
HIF_INFO("%s: no NAPI instances. Zapped.", HIF_DBG("%s: no NAPI instances. Zapped.",
__func__); __func__);
} }
} }
@@ -323,7 +323,7 @@ int hif_napi_lro_flush_cb_register(struct hif_opaque_softc *hif_hdl,
napii = &(napid->napis[i]); napii = &(napid->napis[i]);
napii->lro_flush_cb = lro_flush_handler; napii->lro_flush_cb = lro_flush_handler;
napii->lro_ctx = data; napii->lro_ctx = data;
HIF_ERROR("Registering LRO for ce_id %d NAPI callback for %d flush_cb %p, lro_data %p\n", HIF_DBG("Registering LRO for ce_id %d NAPI callback for %d flush_cb %p, lro_data %p\n",
i, napii->id, napii->lro_flush_cb, i, napii->id, napii->lro_flush_cb,
napii->lro_ctx); napii->lro_ctx);
rc++; rc++;
@@ -359,7 +359,7 @@ void hif_napi_lro_flush_cb_deregister(struct hif_opaque_softc *hif_hdl,
ce_state = scn->ce_id_to_state[i]; ce_state = scn->ce_id_to_state[i];
if ((ce_state != NULL) && (ce_state->htt_rx_data)) { if ((ce_state != NULL) && (ce_state->htt_rx_data)) {
napii = &(napid->napis[i]); napii = &(napid->napis[i]);
HIF_ERROR("deRegistering LRO for ce_id %d NAPI callback for %d flush_cb %p, lro_data %p\n", HIF_DBG("deRegistering LRO for ce_id %d NAPI callback for %d flush_cb %p, lro_data %p\n",
i, napii->id, napii->lro_flush_cb, i, napii->id, napii->lro_flush_cb,
napii->lro_ctx); napii->lro_ctx);
qdf_spin_lock_bh(&napii->lro_unloading_lock); qdf_spin_lock_bh(&napii->lro_unloading_lock);
@@ -492,25 +492,25 @@ int hif_napi_event(struct hif_opaque_softc *hif_ctx, enum qca_napi_event event,
case NAPI_EVT_INT_STATE: { case NAPI_EVT_INT_STATE: {
int on = (data != ((void *)0)); int on = (data != ((void *)0));
HIF_INFO("%s: recved evnt: STATE_CMD %d; v = %d (state=0x%0x)", HIF_DBG("%s: recved evnt: STATE_CMD %d; v = %d (state=0x%0x)",
__func__, event, __func__, event,
on, prev_state); on, prev_state);
if (on) if (on)
if (prev_state & HIF_NAPI_CONF_UP) { if (prev_state & HIF_NAPI_CONF_UP) {
HIF_INFO("%s: duplicate NAPI conf ON msg", HIF_DBG("%s: duplicate NAPI conf ON msg",
__func__); __func__);
} else { } else {
HIF_INFO("%s: setting state to ON", HIF_DBG("%s: setting state to ON",
__func__); __func__);
napid->state |= HIF_NAPI_CONF_UP; napid->state |= HIF_NAPI_CONF_UP;
} }
else /* off request */ else /* off request */
if (prev_state & HIF_NAPI_CONF_UP) { if (prev_state & HIF_NAPI_CONF_UP) {
HIF_INFO("%s: setting state to OFF", HIF_DBG("%s: setting state to OFF",
__func__); __func__);
napid->state &= ~HIF_NAPI_CONF_UP; napid->state &= ~HIF_NAPI_CONF_UP;
} else { } else {
HIF_INFO("%s: duplicate NAPI conf OFF msg", HIF_DBG("%s: duplicate NAPI conf OFF msg",
__func__); __func__);
} }
break; break;
@@ -640,7 +640,7 @@ int hif_napi_event(struct hif_opaque_softc *hif_ctx, enum qca_napi_event event,
} }
} }
} else { } else {
HIF_INFO("%s: no change in hif napi state (still %d)", HIF_DBG("%s: no change in hif napi state (still %d)",
__func__, prev_state); __func__, prev_state);
} }
@@ -1520,7 +1520,7 @@ static inline void hif_napi_bl_irq(struct qca_napi_data *napid, bool bl_flag)
else else
irq_modify_status(napid->napis[i].irq, irq_modify_status(napid->napis[i].irq,
IRQ_NO_BALANCING, 0); IRQ_NO_BALANCING, 0);
HIF_INFO("%s: bl_flag %d CE %d", __func__, bl_flag, i); HIF_DBG("%s: bl_flag %d CE %d", __func__, bl_flag, i);
} }
} }

Vedi File

@@ -2723,7 +2723,7 @@ static void hif_runtime_prevent_linkdown(struct hif_softc *scn, bool flag)
*/ */
void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag) void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
HIF_ERROR("wlan: %s pcie power collapse", HIF_DBG("wlan: %s pcie power collapse",
(flag ? "disable" : "enable")); (flag ? "disable" : "enable"));
hif_runtime_prevent_linkdown(scn, flag); hif_runtime_prevent_linkdown(scn, flag);
pld_wlan_pm_control(scn->qdf_dev->dev, flag); pld_wlan_pm_control(scn->qdf_dev->dev, flag);
@@ -2731,7 +2731,7 @@ void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag)
#else #else
void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag) void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
HIF_ERROR("wlan: %s pcie power collapse", HIF_DBG("wlan: %s pcie power collapse",
(flag ? "disable" : "enable")); (flag ? "disable" : "enable"));
hif_runtime_prevent_linkdown(scn, flag); hif_runtime_prevent_linkdown(scn, flag);
} }

Vedi File

@@ -289,7 +289,7 @@ QDF_STATUS hif_snoc_enable_bus(struct hif_softc *ol_sc,
/* the bus should remain on durring suspend for snoc */ /* the bus should remain on durring suspend for snoc */
hif_vote_link_up(GET_HIF_OPAQUE_HDL(ol_sc)); hif_vote_link_up(GET_HIF_OPAQUE_HDL(ol_sc));
HIF_TRACE("%s: X - hif_type = 0x%x, target_type = 0x%x", HIF_DBG("%s: X - hif_type = 0x%x, target_type = 0x%x",
__func__, hif_type, target_type); __func__, hif_type, target_type);
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;