
Two SMMU issues are seen on IPA domain with regard to RX. 1. map without unmap 2. Buffers not mapped into IPA. With If198a6c5f22af58fdaf9d9c020c74b1f76002e37, mapping RX buffers to IPA domain are deferred to IPA enable pipes phase with soc->ipa_mapped flag check added. This leads to a race window where RX packets are routed to WLAN Host first with soc->ipa_mapped still being 0. In such case, RX buffers handled by WLAN driver will neither unmap from IPA domain nor map into IPA domain. For !ipa_config_is_opt_wifi_dp_enabled(), fix is to set soc->ipa_mapped to 1 earlier in soc attach phase instead of IPA enable pipes phase. With this fix, RX buffers can be unmapped from IPA domain and mapped to IPA domain in dp_pdev_rx_buffers_attach() and dp_pdev_nbuf_alloc_and_map_replenish() in WLAN host RX path so as to avoid above two SMMU issues. Change-Id: Idcb86db99f522959b639865f77178cd47a234277 CRs-Fixed: 3560191
123 KiB
123 KiB