diff options
| author | Ashok Raj Nagarajan <arnagara@qti.qualcomm.com> | 2016-05-28 11:25:40 +0300 |
|---|---|---|
| committer | Govind Singh <govinds@codeaurora.org> | 2017-01-06 15:58:56 +0530 |
| commit | edf223d0f667d67b68766ea3473fbd2d83ccfc23 (patch) | |
| tree | 2ef600e2c40c4186b500efe9d399396954dbc9a4 /tools/perf/scripts/python | |
| parent | 6496e6b1177ec9762ebf94ed0406ce8ae1cd61a9 (diff) | |
ath10k: fix diag_read to collect data for larger memory
diag_read uses dma_alloc_coherent to allocate memory requested by the
caller. If this memory requested is larger, more than DIAG_TRANSFER_LIMIT
(2K), then it is likely that we may not get the requested memory and we
would fail.
To solve this, request dma_alloc_coherent for only DIAG_TRANSFER_LIMIT, and
reuse this buffer multiple times as needed to copy the data requested in
smaller chunks of size not more than DIAG_TRANSFER_LIMIT. Previously we
were reading into the caller's only after getting the complete requested
data.
Fixes: 68c03249f388 ('ath10k: convert pci_alloc_consistent() to dma_alloc_coherent()')
Signed-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
