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
This commit is contained in:
Sravan Kumar Kairam 2017-04-24 18:25:23 +05:30 • committed by snandini
commit 4e82af92a9

View file

@ -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;