73794857 | 10-Aug-2023 |
Jia Ding <quic_jiad@quicinc.com> |
qcacmn: Set ipa bandwidth mbps max to UINT_MAX
Currently max values of below mentioned INIs are no longer applicable to WiFi 6 and WiFi 7.
Hence enlarge the max value to UINT_MAX for them. CFG_DP_I
qcacmn: Set ipa bandwidth mbps max to UINT_MAX
Currently max values of below mentioned INIs are no longer applicable to WiFi 6 and WiFi 7.
Hence enlarge the max value to UINT_MAX for them. CFG_DP_IPA_HIGH_BANDWIDTH_MBPS CFG_DP_IPA_MEDIUM_BANDWIDTH_MBPS CFG_DP_IPA_LOW_BANDWIDTH_MBPS
Change-Id: Id5ff4d5524f0185f7c3fde5e6c53aa45c1f4f045 CRs-Fixed: 3555022
show more ...
|
8de279ea | 20-Jul-2023 |
Namita Nair <quic_namibala@quicinc.com> |
qcacmn: Handle ipa_mapped flag correctly to prevent race
Currently soc->ipa_mapped flag is set to true only after all the buffers are SMMU mapped to IPA. This leads to a race window where Rx buffers
qcacmn: Handle ipa_mapped flag correctly to prevent race
Currently soc->ipa_mapped flag is set to true only after all the buffers are SMMU mapped to IPA. This leads to a race window where Rx buffers routed to WLAN HOST in the replenish path are not mapped to IPA, as the ipa_mapped flag is still set to 0. The fix is to set the ipa_mapped flag to 1, right when the IPA pipes are enabled, before waiting for the complete buffer pool to be IPA SMMU mapped. With this fix, RX buffers can be unmapped and mapped to IPA domain in dp_pdev_rx_buffers_attach() and dp_pdev_nbuf_alloc_and_map_replenish() in WLAN host RX path when ipa pipes are enabled.
This change also renames ipa_mapped flag to ipa_map_allowed.
Change-Id: Ibbe50cb211f858a3372e31644df2f5e98f99a292 CRs-Fixed: 3569745
show more ...
|
442d7780 | 30-Jun-2023 |
Jia Ding <quic_jiad@quicinc.com> |
qcacmn: Fix buffer overflow for ipa_ctx->sys_pipe
ipa_ctx->sys_pipe[] is an array with size WLAN_IPA_MAX_SYSBAM_PIPE (4). On MDM platforms, WLAN_IPA_MAX_IFACE could be set to 4 in defconfig. E.g. on
qcacmn: Fix buffer overflow for ipa_ctx->sys_pipe
ipa_ctx->sys_pipe[] is an array with size WLAN_IPA_MAX_SYSBAM_PIPE (4). On MDM platforms, WLAN_IPA_MAX_IFACE could be set to 4 in defconfig. E.g. on sdxpinn/hmt platform, CONFIG_NUM_IPA_IFACE is set to 4.
kiwi_v2_defconfig CONFIG_NUM_IPA_IFACE := 4
With this, WLAN_IPA_RX_PIPE will be equal to 4, leading to array index out of bounds buffer overflow.
Fix is to set WLAN_IPA_RX_PIPE to WLAN_IPA_MAX_SYSBAM_PIPE - 1 to point to last index of ipa_ctx->sys_pipe[].
Change-Id: I4929aec92ed2064c5194ec18ad7b33574ba3c3e7 CRs-Fixed: 3545420
show more ...
|
ce14cb44 | 21-Jun-2023 |
Nijun Gong <quic_ngong@quicinc.com> |
qcacmn: Enable IPA pipe for second SAP
On sdxpinn target (first multi-core MDM platform) with rome chip attached, it's required to enable IPA pipe for both SAP in AP-AP mode, but currently only firs
qcacmn: Enable IPA pipe for second SAP
On sdxpinn target (first multi-core MDM platform) with rome chip attached, it's required to enable IPA pipe for both SAP in AP-AP mode, but currently only first AP has IPA pipe enabled. The second AP always goes with sw path because wlan firmware isn't notified to choose IPA path by wlan_ipa_uc_offload_enable_disable().
The fix is to always enable IPA for each SAP no matter how many SAP are started if MDM_PLATFORM is defined.
Change-Id: I8a2048aae04e14aa840d7d9a2ccb287201336cf3 CRs-Fixed: 3532926
show more ...
|