diff options
author | Lendacky, Thomas <[email protected]> | 2015-07-06 11:57:37 -0500 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-07-08 15:57:14 -0700 |
commit | cfbfd86bfde15020bccde377e11586ee5c8b701d (patch) | |
tree | 6b129aeb7b38ea566f1548463ec32a7a9550dcf5 /lib/memory-notifier-error-inject.c | |
parent | 95ec655bc465ccb2a3329d4aff9a45e3c8188db5 (diff) |
amd-xgbe: Fix DMA API debug warning
When running a kernel configured with CONFIG_DMA_API_DEBUG=y a warning
is issued:
DMA-API: device driver tries to sync DMA memory it has not allocated
This warning is the result of mapping the full range of the Rx buffer
pages allocated and then performing a dma_sync_single_for_cpu against
a calculated DMA address. The proper thing to do is to use the
dma_sync_single_range_for_cpu with a base DMA address and an offset.
Reported-by: Kim Phillips <[email protected]>
Signed-off-by: Tom Lendacky <[email protected]>
Tested-by: Kim Phillips <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions