mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: Remove improper kernel API for coherent memory
Memory allocated by dma_alloc_coherent() doesn't need cache sync, which is only needed for stream dma mapping, eg, mapping passed-in memory using dma_map_single(). More seriously, when SMMU enabled, physical memory returned by dma_alloc_coherent() is no longer continuous. If pass this memory to dma_sync_single_for_device(), a do_bad_area exception will hang system, noting that dma_sync_single_for_device() only handles single contiguous memory. Refer to Documentation/DMA-API.txt for more info. Change-Id: Ia0b5bdcc2cb9335aa2e309efccd91e57e844c7cc CRs-Fixed: 2381886
This commit is contained in:
parent
03bd4b6b30
commit
1eb84e39fe
1 changed files with 0 additions and 2 deletions
|
|
@ -224,8 +224,6 @@ QDF_STATUS hif_diag_read_mem(struct hif_opaque_softc *hif_ctx,
|
|||
goto done;
|
||||
}
|
||||
qdf_mem_zero(data_buf, orig_nbytes);
|
||||
qdf_mem_dma_sync_single_for_device(scn->qdf_dev, CE_data_base,
|
||||
orig_nbytes, DMA_FROM_DEVICE);
|
||||
|
||||
remaining_bytes = orig_nbytes;
|
||||
CE_data = CE_data_base;
|
||||
|
|
|
|||
Loading…
Reference in a new issue