summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorCarl Huang <cjhuang@codeaurora.org>2018-10-11 15:55:26 +0800
committerKalle Valo <kvalo@codeaurora.org>2018-10-13 20:25:49 +0300
commit0738b4998c6d1caf9ca2447b946709a7278c70f1 (patch)
treeb997f74e72a793f724d10561d379262212d7593b /drivers/gpu
parent9de4162f099948ad85871b8b2ed61e84f139cb5a (diff)
ath10k: allocate small size dma memory in ath10k_pci_diag_write_mem
ath10k_pci_diag_write_mem may allocate big size of the dma memory based on the parameter nbytes. Take firmware diag download as example, the biggest size is about 500K. In some systems, the allocation is likely to fail because it can't acquire such a large contiguous dma memory. The fix is to allocate a small size dma memory. In the loop, driver copies the data to the allocated dma memory and writes to the destination until all the data is written. Tested with QCA6174 PCI with firmware-6.bin_WLAN.RM.4.4.1-00119-QCARMSWP-1, this also affects QCA9377 PCI. Signed-off-by: Carl Huang <cjhuang@codeaurora.org> Reviewed-by: Brian Norris <briannorris@chomium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions