linux/drivers/net/wireless/intel/iwlwifi/pcie
Shahar S Matityahu 7e316572c9 iwlwifi: fix bad dma handling in page_mem dumping flow
Prior to gen2 we allocate the paging memory via alloc_pages
which requires passing ownership on the memory between the
cpu and the device using dma_sync_single_for_cpu and
dma_sync_single_for_device.

Add missing dma_sync_single_for_device in iwl_dump_paging
after copying the memory.

since gen2, we allocate the paging memory using dma_alloc_coherent
which does not need passing ownership between the cpu and device.

Remove unneeded call to dma_sync_single_for_cpu in
iwl_trans_pcie_dump_data prior to copying the memory.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: 5538409ba3 ("iwlwifi: pcie: support page dumping in wrt in gen2")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-02-04 12:27:17 +02:00
..
ctxt-info-gen3.c iwlwifi: dbg: dump data according to the new ini TLVs 2018-12-14 13:04:44 +02:00
ctxt-info.c iwlwifi: dbg: dump data according to the new ini TLVs 2018-12-14 13:04:44 +02:00
drv.c iwlwifi: update product name for 9260 and 9560 2019-01-29 16:10:32 +02:00
internal.h iwlwifi: pcie: align licensing to dual GPL/BSD 2019-01-29 16:10:30 +02:00
rx.c iwlwifi: pcie: align licensing to dual GPL/BSD 2019-01-29 16:10:30 +02:00
trans-gen2.c iwlwifi: fw: stop and start debugging using host command 2018-09-28 08:57:21 +03:00
trans.c iwlwifi: fix bad dma handling in page_mem dumping flow 2019-02-04 12:27:17 +02:00
tx-gen2.c iwlwifi: calculate pointers from out_cmd instead of out_cmd->hdr 2019-01-29 16:10:30 +02:00
tx.c iwlwifi: pcie: align licensing to dual GPL/BSD 2019-01-29 16:10:30 +02:00