From 4e82af92a968fb0554277c9f6bbc847962ce17de Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Mon, 24 Apr 2017 18:25:23 +0530 Subject: [PATCH] qcacld-3.0: Fix 32 bit host arch wlan crash during load Currently during IPA pipes connect host is passing size of each TX completion ring size as 4 bytes instead of 8 bytes which is expected by IPA driver. Reason is host passes size of each ring as size of dma_addr_t which is 4 bytes for 32 bit host architecture where as bus addresses are of 8 bytes on MAC and IPA. Fix this by passing the size which is correct and expected by the IPA driver. Change-Id: Ib081a3819d3a5e4f7ac61606d5ecb9aa5f3242c8 CRs-Fixed: 2037661 --- core/hdd/src/wlan_hdd_ipa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index e513a06d13f7..e2007a23a900 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -3003,7 +3003,7 @@ QDF_STATUS hdd_ipa_uc_ol_init(hdd_context_t *hdd_ctx) /* IPA requires total byte counts of Tx comp ring */ pipe_in.u.dl.comp_ring_size = ipa_ctxt->ipa_resource.tx_comp_ring_size * - sizeof(qdf_dma_addr_t); + sizeof(target_paddr_t); pipe_in.u.dl.ce_ring_base_pa = ipa_ctxt->ipa_resource.ce_sr_base_paddr; pipe_in.u.dl.ce_door_bell_pa = ipa_ctxt->ipa_resource.ce_reg_paddr;