qcacmn: Memory optimize for QCS403 platform

Memory optimize for QCS403 platform, 1x1 chip. Reduce CE1 htt data
dest ring buffer from 512 to 256, reduce CE2 wmi dest ring buffer from
128 to 64, reduce CE9 & CE10 desg ring buffer from 512 to 64, disable
CE11 pktlog. Note: this change only affect specific WLAN build config for
extremely saving memory, for debug purose, there is another build
selecting default WLAN config for reference HW.

Change-Id: I868e74b09cdb11df3dccaa3f9e051da55724983d
CRs-Fixed: 2432632
This commit is contained in:
hangtian
2019-04-10 11:19:59 +08:00
committed by nshrivas
parent 93549e15a1
commit c572f5f517
2 changed files with 103 additions and 0 deletions

View File

@@ -3113,6 +3113,19 @@ void hif_ce_prepare_config(struct hif_softc *scn)
scn->ce_count = QCA_6390_CE_COUNT;
break;
case TARGET_TYPE_ADRASTEA:
if (hif_is_attribute_set(scn, HIF_LOWDESC_CE_NO_PKTLOG_CFG))
hif_state->host_ce_config =
host_lowdesc_ce_config_wlan_adrastea_nopktlog;
else
hif_state->host_ce_config =
host_ce_config_wlan_adrastea;
hif_state->target_ce_config = target_ce_config_wlan_adrastea;
hif_state->target_ce_config_sz =
sizeof(target_ce_config_wlan_adrastea);
break;
}
QDF_BUG(scn->ce_count <= CE_COUNT_MAX);
}